Re: [PATCH v5 07/13] KVM/nVMX: Use kvm_vcpu_map when mapping the virtual APIC page

2019-01-25 Thread Raslan, KarimAllah
On Wed, 2019-01-23 at 12:57 -0500, Konrad Rzeszutek Wilk wrote: > On Wed, Jan 09, 2019 at 10:42:07AM +0100, KarimAllah Ahmed wrote: > > > > Use kvm_vcpu_map when mapping the virtual APIC page since using > > kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has > > a "struct p

Re: [PATCH v5 07/13] KVM/nVMX: Use kvm_vcpu_map when mapping the virtual APIC page

2019-01-23 Thread Konrad Rzeszutek Wilk
On Wed, Jan 09, 2019 at 10:42:07AM +0100, KarimAllah Ahmed wrote: > Use kvm_vcpu_map when mapping the virtual APIC page since using > kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has > a "struct page". > > One additional semantic change is that the virtual host mapping li

[PATCH v5 07/13] KVM/nVMX: Use kvm_vcpu_map when mapping the virtual APIC page

2019-01-09 Thread KarimAllah Ahmed
Use kvm_vcpu_map when mapping the virtual APIC page since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". One additional semantic change is that the virtual host mapping lifecycle has changed a bit. It now has the same lifetime of the pinning of th