diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-01-17 08:51:22 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:57 -0500 |
commit | 55cd8e5a4edb8e235163ffe8264b9aaa8d7c050f (patch) | |
tree | f7d0091ead058a6c5bc427253b031374b3463b8d /arch/x86/include | |
parent | 1d5103c11e32b5028262c073d56375691d51a886 (diff) |
KVM: Implement bare minimum of HYPER-V MSRs
Minimum HYPER-V implementation should have GUEST_OS_ID, HYPERCALL and
VP_INDEX MSRs.
[avi: fix build on i386]
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/kvm_para.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 93bee7abb71c..67d19e422006 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -413,6 +413,10 @@ struct kvm_arch { | |||
413 | s64 kvmclock_offset; | 413 | s64 kvmclock_offset; |
414 | 414 | ||
415 | struct kvm_xen_hvm_config xen_hvm_config; | 415 | struct kvm_xen_hvm_config xen_hvm_config; |
416 | |||
417 | /* fields used by HYPER-V emulation */ | ||
418 | u64 hv_guest_os_id; | ||
419 | u64 hv_hypercall; | ||
416 | }; | 420 | }; |
417 | 421 | ||
418 | struct kvm_vm_stat { | 422 | struct kvm_vm_stat { |
diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index c584076a47f4..ffae1420e7d7 100644 --- a/arch/x86/include/asm/kvm_para.h +++ b/arch/x86/include/asm/kvm_para.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _ASM_X86_KVM_PARA_H | 2 | #define _ASM_X86_KVM_PARA_H |
3 | 3 | ||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | #include <asm/hyperv.h> | ||
5 | 6 | ||
6 | /* This CPUID returns the signature 'KVMKVMKVM' in ebx, ecx, and edx. It | 7 | /* This CPUID returns the signature 'KVMKVMKVM' in ebx, ecx, and edx. It |
7 | * should be used to determine that a VM is running under KVM. | 8 | * should be used to determine that a VM is running under KVM. |