ia64/xen-unstable

diff xen/arch/x86/hvm/vmx/vmx.c @ 10908:a6cb8ba24a91

[HVM] Place all APIC registers into one page in native format.
With this change we can re-use code at include/asm-x86/apicdef.h,
making the code much cleaner. Also it help for future enhancement.

This patch does not change any logic except the change to
CONTROL_REG_ACCESS_NUM, which should be 0xf for CR8 access.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com
author kfraser@localhost.localdomain
date Wed Aug 02 10:07:03 2006 +0100 (2006-08-02)
parents 822c39808e62
children 7e7552112954
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Wed Aug 02 10:04:27 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Wed Aug 02 10:07:03 2006 +0100
     1.3 @@ -137,6 +137,8 @@ static void vmx_relinquish_guest_resourc
     1.4          if ( hvm_apic_support(v->domain) && (VLAPIC(v) != NULL) )
     1.5          {
     1.6              kill_timer(&VLAPIC(v)->vlapic_timer);
     1.7 +            unmap_domain_page_global(VLAPIC(v)->regs);
     1.8 +            free_domheap_page(VLAPIC(v)->regs_page);
     1.9              xfree(VLAPIC(v));
    1.10          }
    1.11      }