Re: [PATCH v2 31/31] qemu: Add support for unavailable-features

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 21, 2016 at 12:21:27AM +0100, Jiri Denemark wrote:
> QEMU 2.8.0 adds support for unavailable-features in
> query-cpu-definitions reply. The unavailable-features array lists CPU
> features which prevent a corresponding CPU model from being usable on
> current host. It can only be used when all the unavailable features are
> disabled. Empty array means the CPU model can be used without
> modifications.
> 
> We can use unavailable-features for providing CPU model usability info
> in domain capabilities XML:
> 
>     <domainCapabilities>
>       ...
>       <cpu>
>         <mode name='host-passthrough' supported='yes'/>
>         <mode name='host-model' supported='yes'>
>           <model fallback='allow'>Skylake-Client</model>
>           ...
>         </mode>
>         <mode name='custom' supported='yes'>
>           <model usable='yes'>qemu64</model>
>           <model usable='yes'>qemu32</model>
>           <model usable='no'>phenom</model>
>           <model usable='yes'>pentium3</model>
>           <model usable='yes'>pentium2</model>
>           <model usable='yes'>pentium</model>
>           <model usable='yes'>n270</model>
>           <model usable='yes'>kvm64</model>
>           <model usable='yes'>kvm32</model>
>           <model usable='yes'>coreduo</model>
>           <model usable='yes'>core2duo</model>
>           <model usable='no'>athlon</model>
>           <model usable='yes'>Westmere</model>
>           <model usable='yes'>Skylake-Client</model>
>           ...
>         </mode>
>       </cpu>
>       ...
>     </domainCapabilities>
> 
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
>  src/qemu/qemu_capabilities.c                       |  39 +++++--
>  src/qemu/qemu_capabilities.h                       |   3 +-
>  src/qemu/qemu_monitor.h                            |   1 +
>  src/qemu/qemu_monitor_json.c                       |  18 ++++
>  .../domaincapsschemadata/qemu_2.8.0-tcg.x86_64.xml |  58 +++++-----
>  tests/domaincapsschemadata/qemu_2.8.0.x86_64.xml   |  58 +++++-----
>  tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml   | 120 ++++++++++-----------
>  tests/qemumonitorjsontest.c                        |  27 ++++-
>  tests/qemuxml2argvtest.c                           |  24 +++--
>  9 files changed, 207 insertions(+), 141 deletions(-)

ACK

Pavel

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux