>> +    if (proxy->class_code != PCI_CLASS_OTHERS &&
>> +        proxy->class_code != PCI_CLASS_MEMORY_RAM) /* qemu < 1.1 */
>> +        proxy->class_code = PCI_CLASS_OTHERS;
>> +
> 
> Why is this hunk is needed?

Catch users doing -device virtio-balloon,class=42

cheers,
  Gerd




Reply via email to