Commit 93c8e4dc authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

usb: fix serial number for hid devices



commit 7b074a22 changed the serial
number of hid devices.  Add compat properties to keep the old serial
number for qemu 0.12 and older.

Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 71938a09
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -622,6 +622,18 @@ static QEMUMachine pc_machine_v0_13 = {
            .driver   = "virtio-serial-pci",\
            .property = "vectors",\
            .value    = stringify(0),\
        },{\
            .driver   = "usb-mouse",\
            .property = "serial",\
            .value    = "1",\
        },{\
            .driver   = "usb-tablet",\
            .property = "serial",\
            .value    = "1",\
        },{\
            .driver   = "usb-kbd",\
            .property = "serial",\
            .value    = "1",\
        }

static QEMUMachine pc_machine_v0_12 = {