Bug 1302187 - RFE: qemu: support -cpu hv-vendor-id=
Summary: RFE: qemu: support -cpu hv-vendor-id=
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-27 05:37 UTC by Will Marler
Modified: 2016-04-21 20:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-21 20:21:37 UTC


Attachments (Terms of Use)

Description Will Marler 2016-01-27 05:37:51 UTC
Description of problem:
In commit 1c4a55dbed9a47fde9294f7de6c8bb060d874c88 into the qemu tree (http://git.qemu.org/?p=qemu.git;a=commitdiff;h=1c4a55dbed9a47fde9294f7de6c8bb060d874c88), support was added for a flag "hv-vendor-id" which would allow the user to specify the Hyper-V vendor ID. Being able to set this allows for better support of VGA passthrough devices, specifically with regards to some nVidia cards.

This has been an allowable option to qemu for several months now; can it be an allowed option in libvirt's XML now? I think the appropriate place would be within features and hyperv, such as like so:

<features>
 ...
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='4096'/>
      <hv-vendor-id name='MyVendorId'/>
    </hyperv>
 ...
</features>

If this is already possible, can you please document on https://libvirt.org/formatdomain.html ?

Comment 1 Cole Robinson 2016-04-21 20:21:37 UTC
Thanks for the detailed RFE. Actually this was added in libvirt v1.3.3:

commit 7068b56c8526667750d8cb91116e9b40382422f3
Author: Maxim Nestratov <mnestratov>
Date:   Thu Mar 10 15:43:49 2016 +0300

    conf: qemu: Add support for more HyperV Enlightenment features

The XML is:

<hyperv>
  <vendor_id state='on' value='my string'/>
</hyperv>


Note You need to log in before you can comment on or make changes to this bug.