|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [SVM] Return the shadow EFER value on gue
# HG changeset patch
# User Travis Betak <travis.betak@xxxxxxx>
# Date 1173133090 21600
# Node ID e4cffff8cfa7b6f3eadcce7dfd503e3c7f0e5e1d
# Parent 437774e497353b4b87249c3a07a644b7d35c8cfd
[SVM] Return the shadow EFER value on guest EFER reads.
Return the shadow of the guest's EFER instead of the VMCB. This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).
Signed-off-by: Travis Betak <travis.betak@xxxxxxx>
---
xen/arch/x86/hvm/svm/svm.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -r 437774e49735 -r e4cffff8cfa7 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c Mon Mar 05 16:17:25 2007 -0600
+++ b/xen/arch/x86/hvm/svm/svm.c Mon Mar 05 16:18:10 2007 -0600
@@ -187,8 +187,7 @@ static inline int long_mode_do_msr_read(
switch ((u32)regs->ecx)
{
case MSR_EFER:
- msr_content = vmcb->efer;
- msr_content &= ~EFER_SVME;
+ msr_content = v->arch.hvm_svm.cpu_shadow_efer;
break;
#ifdef __x86_64__
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [SVM] Return the shadow EFER value on guest EFER reads.,
Xen patchbot-unstable <=
|
|
|
|
|