From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex =?utf-8?Q?Benn=C3=A9e?= Subject: Re: Exposing host debug capabilities to userspace Date: Mon, 24 Nov 2014 12:53:00 +0000 Message-ID: <87bnnwn4k3.fsf@linaro.org> References: <87mw7l3j7x.fsf@linaro.org> <87egssn91o.fsf@zen.linaro.local.i-did-not-set--mail-host-address--so-tickle-me> <87d28cn84s.fsf@linaro.org> <547323EB.6070203@suse.de> <90CBB8A1-39B6-4113-BD0E-473A961D7F58@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Peter Maydell , Will Deacon , Marc Zyngier , Christoffer Dall , Paolo Bonzini , "kvmarm\@lists.cs.columbia.edu" , KVM devel mailing list To: Alexander Graf Return-path: Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:37803 "EHLO socrates.bennee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbaKXMw4 (ORCPT ); Mon, 24 Nov 2014 07:52:56 -0500 In-reply-to: <90CBB8A1-39B6-4113-BD0E-473A961D7F58@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: Alexander Graf writes: >> Am 24.11.2014 um 13:32 schrieb Peter Maydell : >>=20 >>> On 24 November 2014 at 12:26, Alexander Graf wrote: >>> On 24.11.14 12:35, Alex Benn=C3=A9e wrote: >>>>> * KVM ioctl GET_ONE_REG(ID_AA64DFR0_EL1) >>>> Nope, guest state API >>>=20 >>> What's the problem with using ONE_REG for this? After all, the tota= l >>> number of available guest debug register is a guest vcpu property o= f >>> some sort. >>=20 >> Yes, but we don't want to know about properties of the guest >> vCPU. In an ideal world QEMU could reserve say half the debug >> registers for debugging the VM on startup and have KVM expose >> ID registers indicating to the guest that it only had the >> other half... > > Yup, so create another (read-only) ONE_REG that exposes the number of > actual guest debug registers. Does the GET/SET_ONE_REG have the concept of a read-only register? I'd be worried by code just blindly iterating over the lists getting thrown when one doesn't work. > > Alex > >>=20 >> -- PMM --=20 Alex Benn=C3=A9e