diff options
author | Gerd Hoffmann | 2020-10-20 09:48:39 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2020-10-21 11:36:19 +0200 |
commit | d4a42e85818141b190af9c6f43175393f1fcbb44 (patch) | |
tree | 5a8f49a4dbfb5dbf6d4f44f7ac9e235439bf323b /include/hw/i386 | |
parent | usb/xhci: fixup xhci kconfig deps (diff) | |
download | qemu-d4a42e85818141b190af9c6f43175393f1fcbb44.tar.gz qemu-d4a42e85818141b190af9c6f43175393f1fcbb44.tar.xz qemu-d4a42e85818141b190af9c6f43175393f1fcbb44.zip |
microvm: add usb support
Wire up "usb=on" machine option, when enabled add
a sysbus xhci controller with 8 ports.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20201020074844.5304-6-kraxel@redhat.com
Diffstat (limited to 'include/hw/i386')
-rw-r--r-- | include/hw/i386/microvm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hw/i386/microvm.h b/include/hw/i386/microvm.h index 91b064575d..0fc2160077 100644 --- a/include/hw/i386/microvm.h +++ b/include/hw/i386/microvm.h @@ -41,7 +41,7 @@ * 7 | parallel | * 8 | rtc | rtc (rtc=on) * 9 | acpi | acpi (ged) - * 10 | pci lnk | + * 10 | pci lnk | xhci (usb=on) * 11 | pci lnk | * 12 | ps2 | pcie * 13 | fpu | pcie @@ -60,6 +60,9 @@ #define GED_MMIO_BASE_REGS (GED_MMIO_BASE + 0x200) #define GED_MMIO_IRQ 9 +#define MICROVM_XHCI_BASE 0xfe900000 +#define MICROVM_XHCI_IRQ 10 + #define PCIE_MMIO_BASE 0xc0000000 #define PCIE_MMIO_SIZE 0x20000000 #define PCIE_ECAM_BASE 0xe0000000 |