[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20061120102720.9B03025015E@cleopatra.q>
Date: Mon, 20 Nov 2006 10:27:20 -0000
From: Avi Kivity <avi@...ranet.com>
To: kvm-devel@...ts.sourceforge.net
Cc: akpm@...l.org, kvm-devel@...ts.sourceforge.net,
yaniv.kamay@...ranet.com, linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] KVM: Handle rdmsr(MSR_EFER)
From: Yaniv Kamay <yaniv@...ranet.com>
Allow guests to read the EFER msr.
Signed-off-by: Yaniv Kamay <yaniv@...ranet.com>
Signed-off-by: Avi Kivity <avi@...ranet.com>
Index: linux-2.6/drivers/kvm/kvm_main.c
===================================================================
--- linux-2.6.orig/drivers/kvm/kvm_main.c
+++ linux-2.6/drivers/kvm/kvm_main.c
@@ -2323,6 +2323,9 @@ static int get_msr(struct kvm_vcpu *vcpu
case MSR_GS_BASE:
data = vmcs_readl(GUEST_GS_BASE);
break;
+ case MSR_EFER:
+ data = vcpu->shadow_efer;
+ break;
#endif
case MSR_IA32_TIME_STAMP_COUNTER:
data = guest_read_tsc();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists