From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luiz Capitulino Subject: Re: [RFC] kvm: x86: export vCPU halted state to sysfs Date: Tue, 6 Feb 2018 09:05:19 -0500 Message-ID: <20180206090519.2ba4b13e@redhat.com> References: <20180201125441.2f5b4fdd@redhat.com> <20180201201514.GB660@flask> <20180201202649.GG26425@localhost.localdomain> <22fe0322-02f2-7569-e82d-27722f642258@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Cc: Eduardo Habkost , Radim =?UTF-8?B?S3LEjW3DocWZ?= , kvm@vger.kernel.org, pbonzini@redhat.com, berrange@redhat.com, Peter Krempa , John Ferlan , libvir-list@redhat.com, Christian Borntraeger To: Viktor Mihajlovski Return-path: Received: from mx1.redhat.com ([209.132.183.28]:41546 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbeBFOFc (ORCPT ); Tue, 6 Feb 2018 09:05:32 -0500 In-Reply-To: <22fe0322-02f2-7569-e82d-27722f642258@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 6 Feb 2018 11:29:46 +0100 Viktor Mihajlovski wrote: > On 01.02.2018 21:26, Eduardo Habkost wrote: > > On Thu, Feb 01, 2018 at 09:15:15PM +0100, Radim Krčmář wrote: > >> 2018-02-01 12:54-0500, Luiz Capitulino: > >>> > >>> Libvirt needs to know when a vCPU is halted. To get this information, > >> > >> I don't see why upper level management should care about that, a single > >> bit about halted state that can be incorrect at the time it is processed > >> seems of very limited use. > > > > I don't see why, either. > > > > I'm CCing libvir-list and the people involved in the code that > > added halt state to libvirt domain statistics. > > > I've posted a libvirt patch to disable query-cpus in the domain stats > collection for all architectures other than s390. This should alleviate > the problem until we have a better method to obtain arch-specific cpu state. This is cool, thanks a lot. Btw, I'll follow up this week with a replacement for qemu-cpus in QEMU. Then we can discuss again the best long term strategy for this issue.