|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] vmx: Map the VLAPIC access page as mmio-d
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1198756982 0
# Node ID d5f0afb58589e137f100dda9d22ba99dfc29aef5
# Parent e818c24cec031a4509298708aff3abed94b278cc
vmx: Map the VLAPIC access page as mmio-direct in the p2m. This
prevents emulated accesses to this page, which would not be handled in
the correct way (VMX handles accesses to that page in non-root mode in
a very super-special way).
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
xen/arch/x86/hvm/vmx/vmx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r e818c24cec03 -r d5f0afb58589 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c Thu Dec 27 12:00:30 2007 +0000
+++ b/xen/arch/x86/hvm/vmx/vmx.c Thu Dec 27 12:03:02 2007 +0000
@@ -2432,8 +2432,8 @@ static int vmx_alloc_vlapic_mapping(stru
if ( apic_va == NULL )
return -ENOMEM;
share_xen_page_with_guest(virt_to_page(apic_va), d, XENSHARE_writable);
- guest_physmap_add_page(
- d, paddr_to_pfn(APIC_DEFAULT_PHYS_BASE), virt_to_mfn(apic_va));
+ set_mmio_p2m_entry(
+ d, paddr_to_pfn(APIC_DEFAULT_PHYS_BASE), _mfn(virt_to_mfn(apic_va)));
d->arch.hvm_domain.vmx_apic_access_mfn = virt_to_mfn(apic_va);
return 0;
_______________________________________________
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] vmx: Map the VLAPIC access page as mmio-direct in the p2m. This,
Xen patchbot-unstable <=
|
Previous by Date: |
[Xen-changelog] [xen-unstable] hvm: Register fields CS, DS, ES, FS, GS, SS, etc. are all undefined during, Xen patchbot-unstable |
Next by Date: |
[Xen-changelog] [xen-unstable] hvm: For functions which translate virtual addresses to machine, Xen patchbot-unstable |
Previous by Thread: |
[Xen-changelog] [xen-unstable] hvm: Register fields CS, DS, ES, FS, GS, SS, etc. are all undefined during, Xen patchbot-unstable |
Next by Thread: |
[Xen-changelog] [xen-unstable] hvm: For functions which translate virtual addresses to machine, Xen patchbot-unstable |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|