Re: [PATCH 11/11] kvm: x86: Flush only affected TLB entries in kvm_mmu_invlpg*

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

 



On 05/13/2018 05:00 PM, Liran Alon wrote:
>> +static void vmx_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t addr)
>> +{
>> +	int vpid = to_vmx(vcpu)->vpid;
>> +
>> +	if (!vpid_sync_vcpu_addr(vpid, addr))
>> +		vpid_sync_context(vpid);
>> +}
> 
> If VPID is not supported or module parameter enable_vpid=0, then vmx_flush_tlb_gva() will do nothing.
> I think that if !enable_vpid you should invlpg addr.
> 

If VPIDs are not in use, then the VM-entry/exit is in any case going to flush the TLB. So doing nothing
here is alright.

Thanks,
Junaid



[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