Il 20/09/2014 12:47, Tang Chen ha scritto: > @@ -4534,8 +4539,7 @@ static void vmx_vcpu_reset(struct kvm_vcpu *vcpu) > } > > if (vm_need_virtualize_apic_accesses(vmx->vcpu.kvm)) > - vmcs_write64(APIC_ACCESS_ADDR, > - page_to_phys(vmx->vcpu.kvm->arch.apic_access_page)); > + kvm_vcpu_reload_apic_access_page(vcpu); > > if (vmx_vm_has_apicv(vcpu->kvm)) > memset(&vmx->pi_desc, 0, sizeof(struct pi_desc)); Please make the call unconditional in kvm_vcpu_reset. > > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > index 9c8ae32..99378d7 100644 > --- a/arch/x86/kvm/svm.c > +++ b/arch/x86/kvm/svm.c > @@ -3624,6 +3624,11 @@ static bool svm_has_secondary_apic_access(struct kvm_vcpu *vcpu) > return false; > } > > +static void svm_set_apic_access_page_addr(struct kvm *kvm, hpa_t hpa) > +{ > + return; > +} > + > static int svm_vm_has_apicv(struct kvm *kvm) > { > return 0; I will ask you to modify the vmx_has_secondary_apic_access callback in such a way that svm_set_apic_access_page_addr is not needed, so please remove it from v8. Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html