Re: [PATCH 3/4] bhyve: add command line argument "passthru"

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

 



Daniel P. Berrangé <berrange@xxxxxxxxxx> writes:

>>  src/bhyve/bhyve_command.c | 27 +++++++++++++++++++++++++++
>>  1 file changed, 27 insertions(+)
>
> This should come with additions to bhyvexml2argvtest.c data
> files.

Done

>> +static int
>> +bhyveBuildHostdevArgStr(const virDomainDef *def, virCommand *cmd)
>> +{
>> +    size_t i;
>> +
>> +    for (i = 0; i < def->nhostdevs; i++) {
>> +        virDomainHostdevDef *hostdev = def->hostdevs[i];
>> +        virDomainHostdevSubsys *subsys = &hostdev->source.subsys;
>> +
>> +        if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS ||
>> +            subsys->type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI)
>> +        {
>> +            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
>> +                           _("unsupported hostdev"));
>> +            return -1;
>> +        }
>
> We should probably be diagnosing this in bhyveDomainDeviceDefValidate
> so it gets reported to the user much earlier.

Done.

-- 
Alexander Shursha




[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