[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] ptc.g virtualization fix 2
# HG changeset patch # User awilliam@xxxxxxxxxxx # Node ID e97e31e26bd5985514d331298eb264a07e368b7e # Parent 85958f34f18314f50a63662eaa1a186cf726531b [IA64] ptc.g virtualization fix 2 When emulating ptc.ga, VMM needs to change pta temporarily, which cause VHPT is not mapped by TR, then vhpt fault may happen inside VMM, it is not correct. This patch is to fix this issue. When changing pta, VMM makes VHPT disabled temporarily. Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx> --- xen/arch/ia64/vmx/vmmu.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -r 85958f34f183 -r e97e31e26bd5 xen/arch/ia64/vmx/vmmu.c --- a/xen/arch/ia64/vmx/vmmu.c Mon Jun 26 14:41:54 2006 -0600 +++ b/xen/arch/ia64/vmx/vmmu.c Tue Jun 27 16:35:59 2006 -0600 @@ -526,7 +526,7 @@ static void ptc_ga_remote_func (void *va moldrid = ia64_get_rr(0x0); ia64_set_rr(0x0,vrrtomrr(v,args->rid)); mpta = ia64_get_pta(); - ia64_set_pta(v->arch.arch_vmx.mpta); + ia64_set_pta(v->arch.arch_vmx.mpta&(~1)); ia64_srlz_d(); vmx_vcpu_ptc_l(v, args->vadr, args->ps); VMX(v, vrr[0]) = oldrid; @@ -561,6 +561,8 @@ IA64FAULT vmx_vcpu_ptc_ga(VCPU *vcpu,UIN /* Try again if VCPU has migrated. */ } while (proc != v->processor); } + else if(v == vcpu) + vmx_vcpu_ptc_l(v, va, ps); else ptc_ga_remote_func(&args); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |