KVM: ia64: Implement a uniform vps interface
An uniform entry kvm_vps_entry is added for vps_sync_write/read, vps_resume_handler/guest, and branches to differnt PAL service according to the offset. Singed-off-by: Anthony Xu <anthony.xu@intel.com> Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
committed by
Avi Kivity
parent
271b05281f
commit
81aec5227e
@@ -962,9 +962,9 @@ static void kvm_do_resume_op(struct kvm_vcpu *vcpu)
|
||||
void vmm_transition(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
ia64_call_vsa(PAL_VPS_SAVE, (unsigned long)vcpu->arch.vpd,
|
||||
0, 0, 0, 0, 0, 0);
|
||||
1, 0, 0, 0, 0, 0);
|
||||
vmm_trampoline(&vcpu->arch.guest, &vcpu->arch.host);
|
||||
ia64_call_vsa(PAL_VPS_RESTORE, (unsigned long)vcpu->arch.vpd,
|
||||
0, 0, 0, 0, 0, 0);
|
||||
1, 0, 0, 0, 0, 0);
|
||||
kvm_do_resume_op(vcpu);
|
||||
}
|
||||
|
Reference in New Issue
Block a user