Re: [PATCH v6 2/4] arm64: KVM: add accessors to track guest/host only counters

2018-12-10 Thread Christoffer Dall
On Mon, Dec 10, 2018 at 11:46:56PM +, Andrew Murray wrote: > On Mon, Dec 10, 2018 at 11:26:34AM +0100, Christoffer Dall wrote: > > On Mon, Dec 10, 2018 at 09:45:57AM +, Andrew Murray wrote: > > > In order to effeciently enable/disable guest/host only perf counters > > > at guest entry/exit

Re: [PATCH v6 2/4] arm64: KVM: add accessors to track guest/host only counters

2018-12-10 Thread Andrew Murray
On Mon, Dec 10, 2018 at 11:26:34AM +0100, Christoffer Dall wrote: > On Mon, Dec 10, 2018 at 09:45:57AM +, Andrew Murray wrote: > > In order to effeciently enable/disable guest/host only perf counters > > at guest entry/exit we add bitfields to kvm_cpu_context for guest and > > host events as

Re: [PATCH v6 2/4] arm64: KVM: add accessors to track guest/host only counters

2018-12-10 Thread Christoffer Dall
On Mon, Dec 10, 2018 at 09:45:57AM +, Andrew Murray wrote: > In order to effeciently enable/disable guest/host only perf counters > at guest entry/exit we add bitfields to kvm_cpu_context for guest and > host events as well as accessors for updating them. > > Signed-off-by: Andrew Murray >

[PATCH v6 2/4] arm64: KVM: add accessors to track guest/host only counters

2018-12-10 Thread Andrew Murray
In order to effeciently enable/disable guest/host only perf counters at guest entry/exit we add bitfields to kvm_cpu_context for guest and host events as well as accessors for updating them. Signed-off-by: Andrew Murray --- arch/arm64/include/asm/kvm_host.h | 24 1 file