Re: [PATCH v8 4/8] kvm, mem-hotplug: Reload L1's apic access page in vcpu_enter_guest().

2014-09-24 Thread Paolo Bonzini
Il 24/09/2014 09:57, Tang Chen ha scritto: >if (!is_guest_mode(vcpu) || >!(vmx->nested.current_vmcs12->secondary_vm_exec_control & > SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES)) Actually, this needs to use nested_cpu_has2 (in case the secondary controls are

[PATCH v8 4/8] kvm, mem-hotplug: Reload L1's apic access page in vcpu_enter_guest().

2014-09-24 Thread Tang Chen
We wants to migrate apic access page pinned by guest (L1 and L2) to make memory hotplug available. There are two situations need to be handled for apic access page used by L2 vm: 1. L1 prepares a separate apic access page for L2. L2 pins a lot of pages in memory. Even if we can migrate apic

[PATCH v8 4/8] kvm, mem-hotplug: Reload L1's apic access page in vcpu_enter_guest().

2014-09-24 Thread Tang Chen
We wants to migrate apic access page pinned by guest (L1 and L2) to make memory hotplug available. There are two situations need to be handled for apic access page used by L2 vm: 1. L1 prepares a separate apic access page for L2. L2 pins a lot of pages in memory. Even if we can migrate apic

Re: [PATCH v8 4/8] kvm, mem-hotplug: Reload L1's apic access page in vcpu_enter_guest().

2014-09-24 Thread Paolo Bonzini
Il 24/09/2014 09:57, Tang Chen ha scritto: if (!is_guest_mode(vcpu) || !(vmx-nested.current_vmcs12-secondary_vm_exec_control SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES)) Actually, this needs to use nested_cpu_has2 (in case the secondary controls are disabled). I