Revision 25a666d2 hw/i386/kvm/pci-assign.c

b/hw/i386/kvm/pci-assign.c
791 791
        goto fail;
792 792
    }
793 793

  
794
    error_report("*** The driver '%s' is occupying your device "
795
                 "%04x:%02x:%02x.%x.",
796
                 ns, dev->host.domain, dev->host.bus, dev->host.slot,
797
                 dev->host.function);
798
    error_report("***");
799
    error_report("*** You can try the following commands to free it:");
800
    error_report("***");
801
    error_report("*** $ echo \"%04x %04x\" > /sys/bus/pci/drivers/pci-stub/"
802
                 "new_id", vendor_id, device_id);
803
    error_report("*** $ echo \"%04x:%02x:%02x.%x\" > /sys/bus/pci/drivers/"
804
                 "%s/unbind",
805
                 dev->host.domain, dev->host.bus, dev->host.slot,
806
                 dev->host.function, ns);
807
    error_report("*** $ echo \"%04x:%02x:%02x.%x\" > /sys/bus/pci/drivers/"
808
                 "pci-stub/bind",
809
                 dev->host.domain, dev->host.bus, dev->host.slot,
810
                 dev->host.function);
811
    error_report("*** $ echo \"%04x %04x\" > /sys/bus/pci/drivers/pci-stub"
812
                 "/remove_id", vendor_id, device_id);
813
    error_report("***");
794
    error_printf("*** The driver '%s' is occupying your device "
795
        "%04x:%02x:%02x.%x.\n"
796
        "***\n"
797
        "*** You can try the following commands to free it:\n"
798
        "***\n"
799
        "*** $ echo \"%04x %04x\" > /sys/bus/pci/drivers/pci-stub/new_id\n"
800
        "*** $ echo \"%04x:%02x:%02x.%x\" > /sys/bus/pci/drivers/%s/unbind\n"
801
        "*** $ echo \"%04x:%02x:%02x.%x\" > /sys/bus/pci/drivers/"
802
        "pci-stub/bind\n"
803
        "*** $ echo \"%04x %04x\" > /sys/bus/pci/drivers/pci-stub/remove_id\n"
804
        "***",
805
        ns, dev->host.domain, dev->host.bus, dev->host.slot,
806
        dev->host.function, vendor_id, device_id,
807
        dev->host.domain, dev->host.bus, dev->host.slot, dev->host.function,
808
        ns, dev->host.domain, dev->host.bus, dev->host.slot,
809
        dev->host.function, vendor_id, device_id);
814 810

  
815 811
    return;
816 812

  

Also available in: Unified diff