Skip to content

Commit 4b6b35f

Browse files
Glauber Costaavikivity
authored andcommitted
KVM: Add constant to represent KVM MSRs enabled bit in guest/host interface
This patch is simple, put in a different commit so it can be more easily shared between guest and hypervisor. It just defines a named constant to indicate the enable bit for KVM-specific MSRs. Signed-off-by: Glauber Costa <glommer@redhat.com> Acked-by: Rik van Riel <riel@redhat.com> Tested-by: Eric B Munson <emunson@mgebm.net> CC: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> CC: Peter Zijlstra <peterz@infradead.org> CC: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
1 parent e03b644 commit 4b6b35f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/x86/include/asm/kvm_para.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#define MSR_KVM_WALL_CLOCK 0x11
3131
#define MSR_KVM_SYSTEM_TIME 0x12
3232

33+
#define KVM_MSR_ENABLED 1
3334
/* Custom MSRs falls in the range 0x4b564d00-0x4b564dff */
3435
#define MSR_KVM_WALL_CLOCK_NEW 0x4b564d00
3536
#define MSR_KVM_SYSTEM_TIME_NEW 0x4b564d01

0 commit comments

Comments
 (0)