Re: [PATCH v2 03/12] X86/nVMX: Update the PML table without mapping and unmapping the page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/04/2018 23:53, KarimAllah Ahmed wrote:
> +		dst = vmcs12->pml_address + sizeof(u64) * vmcs12->guest_pml_index;
>  
> -		page = kvm_vcpu_gpa_to_page(vcpu, vmcs12->pml_address);
> -		if (is_error_page(page))
> +		if (kvm_write_guest_page(vcpu->kvm, gpa_to_gfn(dst), &gpa,
> +					 offset_in_page(dst), sizeof(gpa)))

If you want to use kvm_write_guest_page, this can also be

		if (kvm_write_guest_page(vcpu->kvm,
					 gpa_to_gfn(vmcs12->pml_address), &gpa,
					 sizeof(gpa) * vmcs12->guest_pml_index,
					 sizeof(gpa)))

(I should have been more verbose on _why_ I suggested that function; my bad).

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux