[libvirt] [RFC 0/5] Allow object-add on X86CPU subclasses, for CPU model probing

Eduardo Habkost ehabkost at redhat.com
Wed Apr 30 20:29:28 UTC 2014


This series allows management code to use object-add on X86CPU subclasses, so it
can use it to probe for CPU model information without re-running QEMU. The main
use case for this is to allow management code to create CPU objects and query
the "feature-words" and "filtered-features" properties on the new objects, to
find out which features each CPU model needs, and to do the same using the
"host" CPU model to check which features can be enabled in a given host.

There's experimental libvirt code to use the new command at:
    https://github.com/ehabkost/libvirt/tree/work/cpu-feature-word-query
The experimental code just create the CPU objects to query for feature
information, but doesn't do anything with that data.

Eduardo Habkost (5):
  cpu: Initialize cpu->stopped=true earlier
  cpu: Don't try to pause CPUs if they are already stopped
  pc: Don't crash on apic_accept_pic_intr() if CPU has no apic_state
  target-i386: Make CPU objects user-creatable
  target-i386: Report QOM class name for CPU definitions

 cpus.c            | 13 ++++++++++---
 exec.c            |  1 +
 hw/i386/pc.c      |  2 +-
 qapi-schema.json  |  6 +++++-
 target-i386/cpu.c |  7 +++++++
 5 files changed, 24 insertions(+), 5 deletions(-)

-- 
1.9.0




More information about the libvir-list mailing list