Re: [PATCH v3 02/28] arm64: KVM: Hide unsupported AArch64 CPU features from guests

2017-10-18 Thread Christoffer Dall
On Wed, Oct 18, 2017 at 03:45:10PM +0100, Dave Martin wrote: > On Wed, Oct 18, 2017 at 03:20:26PM +0200, Christoffer Dall wrote: > > On Tue, Oct 17, 2017 at 03:08:40PM +0100, Marc Zyngier wrote: > > > On 17/10/17 14:51, Christoffer Dall wrote: > > > > On Tue, Oct 10, 2017 at 07:38:19PM +0100, Dave

Re: [PATCH v3 02/28] arm64: KVM: Hide unsupported AArch64 CPU features from guests

2017-10-18 Thread Dave Martin
On Wed, Oct 18, 2017 at 03:20:26PM +0200, Christoffer Dall wrote: > On Tue, Oct 17, 2017 at 03:08:40PM +0100, Marc Zyngier wrote: > > On 17/10/17 14:51, Christoffer Dall wrote: > > > On Tue, Oct 10, 2017 at 07:38:19PM +0100, Dave Martin wrote: [...] > > >> +/* sys_reg_desc initialiser for known

Re: [PATCH v3 02/28] arm64: KVM: Hide unsupported AArch64 CPU features from guests

2017-10-17 Thread Marc Zyngier
On 17/10/17 14:51, Christoffer Dall wrote: > On Tue, Oct 10, 2017 at 07:38:19PM +0100, Dave Martin wrote: >> Currently, a guest kernel sees the true CPU feature registers >> (ID_*_EL1) when it reads them using MRS instructions. This means >> that the guest will observe features that are present

Re: [PATCH v3 02/28] arm64: KVM: Hide unsupported AArch64 CPU features from guests

2017-10-17 Thread Christoffer Dall
On Tue, Oct 10, 2017 at 07:38:19PM +0100, Dave Martin wrote: > Currently, a guest kernel sees the true CPU feature registers > (ID_*_EL1) when it reads them using MRS instructions. This means > that the guest will observe features that are present in the > hardware but the host doesn't understand

Re: [PATCH v3 02/28] arm64: KVM: Hide unsupported AArch64 CPU features from guests

2017-10-11 Thread Marc Zyngier
[+ Christoffer] On 10/10/17 19:38, Dave Martin wrote: > Currently, a guest kernel sees the true CPU feature registers > (ID_*_EL1) when it reads them using MRS instructions. This means > that the guest will observe features that are present in the > hardware but the host doesn't understand or

Re: [PATCH v3 02/28] arm64: KVM: Hide unsupported AArch64 CPU features from guests

2017-10-11 Thread Catalin Marinas
On Tue, Oct 10, 2017 at 07:38:19PM +0100, Dave P Martin wrote: > Currently, a guest kernel sees the true CPU feature registers > (ID_*_EL1) when it reads them using MRS instructions. This means > that the guest will observe features that are present in the > hardware but the host doesn't