Re: [PATCH] KVM: VMX: Enable Virtual Processor Identification (VPID)

Yang, Sheng
2008-01-25T08:34:16Z

On Friday 25 January 2008 15:03:28 Avi Kivity wrote:
> Yang, Sheng wrote:
> > I think it's OK for there is a judgment in __invvpid() to see if machine
> > has the ability(also if it is allowed to using VPID). :)
>
> Oh right, I missed that.
>
> We can remove it now since it will only be called if vpid != 0, and that
> happens only on vpid enabled machines, no?

Yes. I think we can replace vpid_sync_all() with vpid_sync_vcpu_all(), then
there was no reference to vpid_sync_all() now...

BTW: vpid_sync_all() can be used after VMX_ON, but just in case... So we may
remove it for now.

--
Thanks
Yang, Sheng