Re: [PATCH 05/11] KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded

2019-03-04 Thread Marc Zyngier
On 04/03/2019 17:31, Julien Grall wrote: > Hi, > > On 04/03/2019 17:06, Marc Zyngier wrote: >> On 04/03/2019 16:30, Julien Grall wrote: >>> Hi, >>> >>> I noticed some issues with this patch when rebooting a guest after using >>> perf. >>> >>> [ 577.513447] BUG: sleeping function called from inva

Re: [RFC PATCH] KVM: arm64: Force a PTE mapping when logging is enabled

2019-03-04 Thread Marc Zyngier
Hi Zenghui, Suzuki, On 04/03/2019 17:13, Suzuki K Poulose wrote: > Hi Zenghui, > > On Sun, Mar 03, 2019 at 11:14:38PM +0800, Zenghui Yu wrote: >> I think there're still some problems in this patch... Details below. >> >> On Sat, Mar 2, 2019 at 11:39 AM Zenghui Yu wrote: >>> >>> The idea behind t

Re: [PATCH 05/11] KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded

2019-03-04 Thread Julien Grall
Hi, On 04/03/2019 17:06, Marc Zyngier wrote: On 04/03/2019 16:30, Julien Grall wrote: Hi, I noticed some issues with this patch when rebooting a guest after using perf. [ 577.513447] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 [ 577.521926] in_atomic():

Re: [RFC PATCH] KVM: arm64: Force a PTE mapping when logging is enabled

2019-03-04 Thread Suzuki K Poulose
Hi Zenghui, On Sun, Mar 03, 2019 at 11:14:38PM +0800, Zenghui Yu wrote: > I think there're still some problems in this patch... Details below. > > On Sat, Mar 2, 2019 at 11:39 AM Zenghui Yu wrote: > > > > The idea behind this is: we don't want to keep tracking of huge pages when > > logging_acti

Re: [PATCH 05/11] KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded

2019-03-04 Thread Marc Zyngier
On 04/03/2019 16:30, Julien Grall wrote: > Hi, > > I noticed some issues with this patch when rebooting a guest after using perf. > > [ 577.513447] BUG: sleeping function called from invalid context at > kernel/locking/mutex.c:908 > [ 577.521926] in_atomic(): 1, irqs_disabled(): 0, pid: 2323,

Re: [PATCH 05/11] KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded

2019-03-04 Thread Julien Grall
Hi, I noticed some issues with this patch when rebooting a guest after using perf. [ 577.513447] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 [ 577.521926] in_atomic(): 1, irqs_disabled(): 0, pid: 2323, name: qemu-system aar [ 577.529354] 1 lock held by

RE: [PATCH v5 00/26] KVM: arm64: SVE guest support

2019-03-04 Thread Zhang, Lei
Hi Dave, > -Original Message- > From: linux-arm-kernel On > Behalf Of Dave Martin > Sent: Tuesday, February 19, 2019 4:52 AM > To: kvmarm@lists.cs.columbia.edu > Cc: Peter Maydell ; Okamoto, Takayuki/��本 高幸 > ; Christoffer Dall ; Ard > Biesheuvel ; Marc Zyngier > ; Catalin Marinas ; Will

Re: [PATCH v10 4/5] arm64: arm_pmu: Add support for exclude_host/exclude_guest attributes

2019-03-04 Thread Andrew Murray
On Tue, Feb 26, 2019 at 01:44:59PM +0100, Christoffer Dall wrote: > On Wed, Feb 20, 2019 at 04:15:40PM +, Andrew Murray wrote: > > On Mon, Feb 18, 2019 at 10:53:07PM +0100, Christoffer Dall wrote: > > > On Mon, Jan 14, 2019 at 04:11:47PM +, Andrew Murray wrote: > > > > Add support for the :

Re: [kvmtool PATCH v6 6/6] arm/kvm: arm64: Add a vcpu feature for pointer authentication

2019-03-04 Thread Amit Daniel Kachhap
Hi Dave, On 3/1/19 4:54 PM, Dave P Martin wrote: On Fri, Mar 01, 2019 at 10:37:54AM +, Amit Daniel Kachhap wrote: Hi, On 2/21/19 9:24 PM, Dave Martin wrote: On Tue, Feb 19, 2019 at 02:54:31PM +0530, Amit Daniel Kachhap wrote: [...] diff --git a/arm/aarch64/include/kvm/kvm-config-arc

Re: [PATCH v6 4/6] arm64/kvm: add a userspace option to enable pointer authentication

2019-03-04 Thread Amit Daniel Kachhap
Hi James, On 2/27/19 12:03 AM, James Morse wrote: Hi Amit, On 19/02/2019 09:24, Amit Daniel Kachhap wrote: This feature will allow the KVM guest to allow the handling of pointer authentication instructions or to treat them as undefined if not set. It uses the existing vcpu API KVM_ARM_VCPU_INI

Re: [PATCH v6 3/6] arm64/kvm: context-switch ptrauth registers

2019-03-04 Thread Amit Daniel Kachhap
Hi James, On 2/27/19 12:01 AM, James Morse wrote: Hi Amit, On 19/02/2019 09:24, Amit Daniel Kachhap wrote: From: Mark Rutland When pointer authentication is supported, a guest may wish to use it. This patch adds the necessary KVM infrastructure for this to work, with a semi-lazy context swit

Re: [PATCH v10 5/5] arm64: KVM: Enable support for :G/:H perf event modifiers

2019-03-04 Thread Andrew Murray
On Mon, Feb 18, 2019 at 11:00:19PM +0100, Christoffer Dall wrote: > On Mon, Jan 14, 2019 at 04:11:48PM +, Andrew Murray wrote: > > Enable/disable event counters as appropriate when entering and exiting > > the guest to enable support for guest or host only event counting. > > > > For both VHE