From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbDSb-0005TG-SI for qemu-devel@nongnu.org; Thu, 15 Dec 2011 10:43:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbDSR-0001BS-T5 for qemu-devel@nongnu.org; Thu, 15 Dec 2011 10:43:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbDSR-0001BH-KV for qemu-devel@nongnu.org; Thu, 15 Dec 2011 10:42:55 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBFFgsKc032066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Dec 2011 10:42:54 -0500 Date: Thu, 15 Dec 2011 15:42:44 +0000 From: "Daniel P. Berrange" Message-ID: <20111215154243.GA8829@redhat.com> References: <20111215145415.GA265695@orkuz.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20111215145415.GA265695@orkuz.home> Subject: Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: libvir-list@redhat.com, qemu-devel@nongnu.org On Thu, Dec 15, 2011 at 03:54:15PM +0100, Jiri Denemark wrote: > Hi, > > Recently I realized that all modern CPU models defined in > /etc/qemu/target-x86_64.conf are useless when qemu is used through libvirt. > That's because we start qemu with -nodefconfig which results in qemu ignoring > that file with CPU model definitions. We have a very good reason for using > -nodefconfig because we need to control the ABI presented to a guest OS and we > don't want any configuration file that can contain lots of things including > device definitions to be read by qemu. However, we would really like the new > CPU models to be understood by qemu even if used through libvirt. What would > be the best way to solve this? Ideally libvirt would just write out a config file with the CPU that was configured in libvirt and pass -readconfig /var/lib/libvirt/qemu/guestcpu.conf That way libvirt can configure CPU models without regard for what the particular QEMU version might have in its config. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|