Bug 1302187

Summary: RFE: qemu: support -cpu hv-vendor-id=
Product: [Community] Virtualization Tools Reporter: Will Marler <will.marler>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, rbalakri, will.marler
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-21 20:21:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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>