Re: [libvirt] Cpu Modeling

2016-10-13 Thread Jiri Denemark
On Wed, Oct 12, 2016 at 13:55:49 -0400, Jason J. Herne wrote: > In order to properly obtain the host cpu model data for virsh > capabilities on s390 we will need to run a Qemu process. There is no > precedent for doing this in a cpu connection driver today. There are two reasons for this: 1) it w

Re: [libvirt] Cpu Modeling

2016-10-12 Thread Jason J. Herne
On 09/29/2016 11:15 AM, Jiri Denemark wrote: On Fri, Sep 23, 2016 at 15:51:12 -0400, Jason J. Herne wrote: On 09/23/2016 08:05 AM, Jiri Denemark wrote: The host-model part of the XML will show the result of query-cpu-model-expansion on "host" model, or the result of querying the hardware direct

Re: [libvirt] Cpu Modeling

2016-09-30 Thread Eduardo Habkost
On Fri, Sep 30, 2016 at 09:00:15AM +0200, Jiri Denemark wrote: > On Thu, Sep 29, 2016 at 15:51:58 -0300, Eduardo Habkost wrote: > > On Thu, Sep 29, 2016 at 04:21:07PM +0200, Jiri Denemark wrote: > > [...] > > > > > Slightly related, I don't think we have a way to list CPU features > > > > > support

Re: [libvirt] Cpu Modeling

2016-09-30 Thread Jiri Denemark
On Thu, Sep 29, 2016 at 15:51:58 -0300, Eduardo Habkost wrote: > On Thu, Sep 29, 2016 at 04:21:07PM +0200, Jiri Denemark wrote: > [...] > > > > Slightly related, I don't think we have a way to list CPU features > > > > supported by QEMU over QMP, do we? "-cpu ?" will show them all, but I > > > > co

Re: [libvirt] Cpu Modeling

2016-09-29 Thread Eduardo Habkost
On Thu, Sep 29, 2016 at 04:21:07PM +0200, Jiri Denemark wrote: [...] > > > Slightly related, I don't think we have a way to list CPU features > > > supported by QEMU over QMP, do we? "-cpu ?" will show them all, but I > > > couldn't find a QMP command that would give me the same list. > > > > devi

Re: [libvirt] Cpu Modeling

2016-09-29 Thread Jiri Denemark
On Fri, Sep 23, 2016 at 15:51:12 -0400, Jason J. Herne wrote: > On 09/23/2016 08:05 AM, Jiri Denemark wrote: > > The host-model part of the XML will show the result of > > query-cpu-model-expansion on "host" model, or the result of querying the > > hardware directly if we can't ask QEMU for that (w

Re: [libvirt] Cpu Modeling

2016-09-29 Thread Jiri Denemark
On Fri, Sep 23, 2016 at 15:23:45 -0300, Eduardo Habkost wrote: > On Fri, Sep 23, 2016 at 02:05:59PM +0200, Jiri Denemark wrote: > > It's not critical for query-cpu-model-expansion, but do we have an > > interface we can use to check whether the new commands are supported by > > a QEMU binary? Tryin

Re: [libvirt] Cpu Modeling

2016-09-29 Thread Jason J. Herne
Polite Ping? :) On 09/23/2016 03:51 PM, Jason J. Herne wrote: On 09/23/2016 08:05 AM, Jiri Denemark wrote: On Thu, Sep 22, 2016 at 14:47:36 -0400, Jason J. Herne wrote: ... 1. We will invoke qemu to gather the host cpu data used for virsh capabilities. Today this data seems to be collected di

Re: [libvirt] Cpu Modeling

2016-09-27 Thread David Hildenbrand
CCing Christian > On Thu, Sep 22, 2016 at 14:47:36 -0400, Jason J. Herne wrote: > > Testing for runability: > > - Simply try to start QEMU with KVM, compat machine, CPU model > > Yes, if the domain XML explicitly requests a specific CPU model. > Additionally, we need to make sure a CPU model ch

Re: [libvirt] Cpu Modeling

2016-09-23 Thread Jason J. Herne
On 09/23/2016 08:05 AM, Jiri Denemark wrote: On Thu, Sep 22, 2016 at 14:47:36 -0400, Jason J. Herne wrote: ... 1. We will invoke qemu to gather the host cpu data used for virsh capabilities. Today this data seems to be collected directly from the host hardware for most (all?) architectures. N

Re: [libvirt] Cpu Modeling

2016-09-23 Thread Eduardo Habkost
On Fri, Sep 23, 2016 at 02:05:59PM +0200, Jiri Denemark wrote: > On Thu, Sep 22, 2016 at 14:47:36 -0400, Jason J. Herne wrote: > > Testing for runability: > > - Simply try to start QEMU with KVM, compat machine, CPU model > > Yes, if the domain XML explicitly requests a specific CPU model. > Addit

Re: [libvirt] Cpu Modeling

2016-09-23 Thread Jiri Denemark
On Thu, Sep 22, 2016 at 14:47:36 -0400, Jason J. Herne wrote: > Testing for runability: > - Simply try to start QEMU with KVM, compat machine, CPU model Yes, if the domain XML explicitly requests a specific CPU model. Additionally, we need to make sure a CPU model chosen by libvirt (host-model) is

Re: [libvirt] Cpu Modeling

2016-09-22 Thread Eduardo Habkost
Hi! On Thu, Sep 22, 2016 at 02:47:36PM -0400, Jason J. Herne wrote: > Hi Jiri & Eduardo, > > You might remember a discussion with David Hildenbrand of IBM on the Qemu > mailing list regarding a new Qemu<->Libvirt interface for cpu modeling. I am > picking up this work from David and I wanted to c