Message ID | 715D42877B251141A38726ABF5CABF2C0195BA8F7D@pdsmsx503.ccr.corp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Han, Weidong wrote: > kvm_deassign_pci_device is defined when KVM_CAP_DEVICE_DEASSIGNMENT is defined. Following patch should fix the breakage. > Signoff please.
Avi Kivity wrote: > Han, Weidong wrote: >> kvm_deassign_pci_device is defined when KVM_CAP_DEVICE_DEASSIGNMENT >> is defined. Following patch should fix the breakage. >> > > Signoff please. Sorry for missing it. Signed-off-by: Weidong Han <weidong.han@intel.com> Regards, Weidong-- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Han, Weidong wrote: > Avi Kivity wrote: > >> Han, Weidong wrote: >> >>> kvm_deassign_pci_device is defined when KVM_CAP_DEVICE_DEASSIGNMENT >>> is defined. Following patch should fix the breakage. >>> >>> >> Signoff please. >> > > Sorry for missing it. Signed-off-by: Weidong Han <weidong.han@intel.com> > > Thanks; applied.
diff --git a/qemu/hw/device-assignment.c b/qemu/hw/device-assignment.c index 7c73210..6765683 100644 --- a/qemu/hw/device-assignment.c +++ b/qemu/hw/device-assignment.c @@ -551,6 +551,7 @@ static int assign_irq(AssignedDevInfo *adev) static void deassign_device(AssignedDevInfo *adev) { +#ifdef KVM_CAP_DEVICE_DEASSIGNMENT struct kvm_assigned_pci_dev assigned_dev_data; AssignedDevice *dev = adev->assigned_dev; int r; @@ -563,6 +564,7 @@ static void deassign_device(AssignedDevInfo *adev) if (r < 0) fprintf(stderr, "Failed to deassign device \"%s\" : %s\n", adev->name, strerror(-r)); +#endif } void remove_assigned_device(AssignedDevInfo *adev)