From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Habkost Subject: Re: [libvirt] [RFC] kvm: x86: export vCPU halted state to sysfs Date: Fri, 2 Feb 2018 15:42:49 -0200 Message-ID: <20180202174249.GA22556@localhost.localdomain> References: <20180201201514.GB660@flask> <20180201202649.GG26425@localhost.localdomain> <20180202141554.GH26425@localhost.localdomain> <96d66ae2-5c51-510f-06a5-cecdda74cfd4@linux.vnet.ibm.com> <20180202102231.7dc9a945@redhat.com> <86571633-ae6d-5678-7611-549ff41dccd8@linux.vnet.ibm.com> <20180202155415.GN15403@redhat.com> <20180202110137.2e2c1816@redhat.com> <597d7701-ea7b-524e-7632-10073284d060@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Peter Krempa , kvm@vger.kernel.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , libvir-list@redhat.com, Luiz Capitulino , Christian Borntraeger , pbonzini@redhat.com To: Viktor Mihajlovski Return-path: Content-Disposition: inline In-Reply-To: <597d7701-ea7b-524e-7632-10073284d060@linux.vnet.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com List-Id: kvm.vger.kernel.org On Fri, Feb 02, 2018 at 05:19:34PM +0100, Viktor Mihajlovski wrote: > On 02.02.2018 17:01, Luiz Capitulino wrote: [...] > > o Make qemuDomainRefreshVcpuHalted() s390-only in libvirt. This by > > itself fixes the original performance issue > We are normally trying to avoid architecture-specific code in libvirt > (not always successfully). We could omit the call, based on a QEMU > Capability derived from the presence of said flag. This would change the > libvirt-client side default to not report halted. A client can the still > request the value via a tbd libvirt flag. Which is what an s390-aware > management app would have to do... The problem I see here is that the current semantics of the "halted" field in QEMU is arch-specific, so either libvirt or upper layers will necessarily need arch-specific code if they want to support QEMU 2.11 or older. -- Eduardo