Re: [PATCH v3 8/9] mips/loongson3_virt: do not require CONFIG_USB

2024-02-15 Thread Paolo Bonzini
On Thu, Feb 15, 2024 at 3:27 PM BALATON Zoltan wrote: > > On Thu, 15 Feb 2024, Philippe Mathieu-Daudé wrote: > > On 13/2/24 16:50, Paolo Bonzini wrote: > >> Once the Kconfig for hw/mips is cleaned up, it will be possible to build a > >> binary that does not include any USB host controller and

Re: [PATCH v3 8/9] mips/loongson3_virt: do not require CONFIG_USB

2024-02-15 Thread BALATON Zoltan
On Thu, 15 Feb 2024, Philippe Mathieu-Daudé wrote: On 13/2/24 16:50, Paolo Bonzini wrote: Once the Kconfig for hw/mips is cleaned up, it will be possible to build a binary that does not include any USB host controller and therefore that does not include the code guarded by CONFIG_USB. While

Re: [PATCH v3 8/9] mips/loongson3_virt: do not require CONFIG_USB

2024-02-15 Thread Paolo Bonzini
On Thu, Feb 15, 2024 at 8:55 AM Philippe Mathieu-Daudé wrote: > > if (defaults_enabled() && object_class_by_name("pci-ohci")) { > > pci_create_simple(pci_bus, -1, "pci-ohci"); > > -usb_create_simple(usb_bus_find(-1), "usb-kbd"); > > -

Re: [PATCH v3 8/9] mips/loongson3_virt: do not require CONFIG_USB

2024-02-14 Thread Philippe Mathieu-Daudé
On 13/2/24 16:50, Paolo Bonzini wrote: Once the Kconfig for hw/mips is cleaned up, it will be possible to build a binary that does not include any USB host controller and therefore that does not include the code guarded by CONFIG_USB. While the simpler creation functions such as

[PATCH v3 8/9] mips/loongson3_virt: do not require CONFIG_USB

2024-02-13 Thread Paolo Bonzini
Once the Kconfig for hw/mips is cleaned up, it will be possible to build a binary that does not include any USB host controller and therefore that does not include the code guarded by CONFIG_USB. While the simpler creation functions such as usb_create_simple can be inlined, this is not true of