~ubuntu-branches/ubuntu/lucid/linux-lts-backport-natty/lucid-proposed

« back to all changes in this revision

Viewing changes to arch/x86/include/asm/kvm_emulate.h

  • Committer: Package Import Robot
  • Author(s): Luis Henriques, Luis Henriques, Andy Whitcroft, Upstream Kernel Changes
  • Date: 2012-03-29 12:04:36 UTC
  • Revision ID: package-import@ubuntu.com-20120329120436-1fxurqs7wu5zclln
Tags: 2.6.38-14.58~lucid1
[Luis Henriques]

* Release Tracking Bug
  - LP: #967823

[ Andy Whitcroft ]

* [Config] restore build-% shortcut

[ Upstream Kernel Changes ]

* eCryptfs: Make truncate path killable
  - LP: #947270
* bsg: fix sysfs link remove warning
  - LP: #946928
* regset: Prevent null pointer reference on readonly regsets
  - LP: #949905
  - CVE-2012-1097
* regset: Return -EFAULT, not -EIO, on host-side memory fault
  - LP: #949905
  - CVE-2012-1097
* mm: memcg: Correct unregistring of events attached to the same eventfd
  - LP: #952828
  - CVE-2012-1146
* KVM: Remove ability to assign a device without iommu support
  - LP: #897812
  - CVE-2011-4347
* eCryptfs: Copy up lower inode attrs after setting lower xattr
* eCryptfs: Handle failed metadata read in lookup
  - LP: #509180
* eCryptfs: Improve statfs reporting
  - LP: #885744
* KVM: x86: extend "struct x86_emulate_ops" with "get_cpuid"
  - LP: #917842
  - CVE-2012-0045
* KVM: x86: fix missing checks in syscall emulation
  - LP: #917842
  - CVE-2012-0045

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
        int (*set_dr)(int dr, unsigned long value, struct kvm_vcpu *vcpu);
159
159
        int (*set_msr)(struct kvm_vcpu *vcpu, u32 msr_index, u64 data);
160
160
        int (*get_msr)(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata);
 
161
 
 
162
        bool (*get_cpuid)(struct kvm_vcpu *vcpu,
 
163
                         u32 *eax, u32 *ebx, u32 *ecx, u32 *edx);
161
164
};
162
165
 
163
166
/* Type, address-of, and value of an instruction's operand. */
258
261
#define X86EMUL_MODE_PROT32   4 /* 32-bit protected mode. */
259
262
#define X86EMUL_MODE_PROT64   8 /* 64-bit (long) mode.    */
260
263
 
 
264
/* CPUID vendors */
 
265
#define X86EMUL_CPUID_VENDOR_AuthenticAMD_ebx 0x68747541
 
266
#define X86EMUL_CPUID_VENDOR_AuthenticAMD_ecx 0x444d4163
 
267
#define X86EMUL_CPUID_VENDOR_AuthenticAMD_edx 0x69746e65
 
268
 
 
269
#define X86EMUL_CPUID_VENDOR_AMDisbetterI_ebx 0x69444d41
 
270
#define X86EMUL_CPUID_VENDOR_AMDisbetterI_ecx 0x21726574
 
271
#define X86EMUL_CPUID_VENDOR_AMDisbetterI_edx 0x74656273
 
272
 
 
273
#define X86EMUL_CPUID_VENDOR_GenuineIntel_ebx 0x756e6547
 
274
#define X86EMUL_CPUID_VENDOR_GenuineIntel_ecx 0x6c65746e
 
275
#define X86EMUL_CPUID_VENDOR_GenuineIntel_edx 0x49656e69
 
276
 
261
277
/* Host execution mode. */
262
278
#if defined(CONFIG_X86_32)
263
279
#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT32