From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYTDm-0003Le-7e for qemu-devel@nongnu.org; Sun, 06 Sep 2015 02:14:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYTDj-0004Qf-25 for qemu-devel@nongnu.org; Sun, 06 Sep 2015 02:14:34 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:32911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYTDi-0004QL-SS for qemu-devel@nongnu.org; Sun, 06 Sep 2015 02:14:30 -0400 Received: by pacex6 with SMTP id ex6so63967490pac.0 for ; Sat, 05 Sep 2015 23:14:30 -0700 (PDT) References: <1441186198-991-1-git-send-email-aik@ozlabs.ru> <20150904044826.GQ6537@voom.redhat.com> From: Alexey Kardashevskiy Message-ID: <55EBD9C1.8030507@ozlabs.ru> Date: Sun, 6 Sep 2015 16:14:25 +1000 MIME-Version: 1.0 In-Reply-To: <20150904044826.GQ6537@voom.redhat.com> Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH qemu] spapr: Enable in-kernel H_SET_MODE handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 09/04/2015 02:48 PM, David Gibson wrote: > On Wed, Sep 02, 2015 at 07:29:58PM +1000, Alexey Kardashevskiy wrote: >> For setting debug watchpoints, sPAPR guests use H_SET_MODE hypercall. >> The existing QEMU H_SET_MODE handler does not support this but >> the KVM handler in HV KVM does. However it is not enabled. >> >> This enables the in-kernel H_SET_MODE handler which handles: >> - Completed Instruction Address Breakpoint Register >> - Watch point 0 registers. >> >> The rest is still handled in QEMU. >> >> Reported-by: Anton Blanchard >> Signed-off-by: Alexey Kardashevskiy > > Applied to spapr-dev; I'll move it into spapr-next once it's had a > little more testing. Another thing to keep in mind is that at some point in the past the host kernel used to handle H_SET_MODE and QEMU did not have the handler at all, now this functionality is in QEMU but some RHEL kernel could have picked a kernel with the in-kernel handler. -- Alexey