[PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-29 Thread Shannon Zhao
From: zhaoshenglong Currently the VMID for some VM is allocated during VCPU entry/exit context and will be updated when kvm_next_vmid inversion. So this will cause the existing VMs exiting from guest and flush the tlb and icache. Also, while a platform with 8 bit VMID supports 255 VMs, it can cr

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-29 Thread Mark Rutland
On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: > From: zhaoshenglong > > Currently the VMID for some VM is allocated during VCPU entry/exit > context and will be updated when kvm_next_vmid inversion. So this will > cause the existing VMs exiting from guest and flush the tlb and ica

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-29 Thread Marc Zyngier
On Thu, 29 Mar 2018 16:27:58 +0100, Mark Rutland wrote: > > On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: > > From: zhaoshenglong > > > > Currently the VMID for some VM is allocated during VCPU entry/exit > > context and will be updated when kvm_next_vmid inversion. So this will

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-29 Thread Shannon Zhao
On 2018/3/30 0:48, Marc Zyngier wrote: > On Thu, 29 Mar 2018 16:27:58 +0100, > Mark Rutland wrote: >> >> On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: >>> From: zhaoshenglong >>> >>> Currently the VMID for some VM is allocated during VCPU entry/exit >>> context and will be update

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-30 Thread Marc Zyngier
On Fri, 30 Mar 2018 09:56:10 +0800 Shannon Zhao wrote: > On 2018/3/30 0:48, Marc Zyngier wrote: > > On Thu, 29 Mar 2018 16:27:58 +0100, > > Mark Rutland wrote: > >> > >> On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: > >>> From: zhaoshenglong > >>> > >>> Currently the VMID for

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-30 Thread Shannon Zhao
On 2018/3/30 17:01, Marc Zyngier wrote: > On Fri, 30 Mar 2018 09:56:10 +0800 > Shannon Zhao wrote: > >> On 2018/3/30 0:48, Marc Zyngier wrote: >>> On Thu, 29 Mar 2018 16:27:58 +0100, >>> Mark Rutland wrote: On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: > From:

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-30 Thread Marc Zyngier
On Fri, 30 Mar 2018 17:52:07 +0800 Shannon Zhao wrote: > > > On 2018/3/30 17:01, Marc Zyngier wrote: > > On Fri, 30 Mar 2018 09:56:10 +0800 > > Shannon Zhao wrote: > > > >> On 2018/3/30 0:48, Marc Zyngier wrote: > >>> On Thu, 29 Mar 2018 16:27:58 +0100, > >>> Mark Rutland wrote: > > >>

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-30 Thread Shannon Zhao
On 2018/3/30 18:48, Marc Zyngier wrote: > On Fri, 30 Mar 2018 17:52:07 +0800 > Shannon Zhao wrote: > >> >> >> On 2018/3/30 17:01, Marc Zyngier wrote: >>> On Fri, 30 Mar 2018 09:56:10 +0800 >>> Shannon Zhao wrote: >>> On 2018/3/30 0:48, Marc Zyngier wrote: > On Thu, 29 Mar 2018 16:27:5

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-03-30 Thread Marc Zyngier
On Fri, 30 Mar 2018 21:42:04 +0800 Shannon Zhao wrote: > On 2018/3/30 18:48, Marc Zyngier wrote: > > On Fri, 30 Mar 2018 17:52:07 +0800 > > Shannon Zhao wrote: > > > >> > >> > >> On 2018/3/30 17:01, Marc Zyngier wrote: > >>> On Fri, 30 Mar 2018 09:56:10 +0800 > >>> Shannon Zhao wrote: > >>

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-04-03 Thread Mark Rutland
On Thu, Mar 29, 2018 at 04:27:58PM +0100, Mark Rutland wrote: > On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: > > From: zhaoshenglong > > > > Currently the VMID for some VM is allocated during VCPU entry/exit > > context and will be updated when kvm_next_vmid inversion. So this wi

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-04-04 Thread Marc Zyngier
Hi Mark, On 03/04/18 17:49, Mark Rutland wrote: > On Thu, Mar 29, 2018 at 04:27:58PM +0100, Mark Rutland wrote: >> On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: >>> From: zhaoshenglong >>> >>> Currently the VMID for some VM is allocated during VCPU entry/exit >>> context and will

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-04-04 Thread Marc Zyngier
On 03/04/18 17:49, Mark Rutland wrote: > On Thu, Mar 29, 2018 at 04:27:58PM +0100, Mark Rutland wrote: >> On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: >>> From: zhaoshenglong >>> >>> Currently the VMID for some VM is allocated during VCPU entry/exit >>> context and will be updated