Re: [PATCH 3/3] usb/hcd-xhci: Split pci wrapper for xhci base model

2020-03-03 Thread Gerd Hoffmann
> +typedef struct XHCIPciState { > +/*< private >*/ > +PCIDevice parent_obj; > +/*< public >*/ > +XHCIState *xhci; Better embed the struct instead of storing a pointer. > struct XHCIState { > -/*< private >*/ > -PCIDevice parent_obj; > -/*< public >*/ > - > +Devic

Re: [PATCH 3/3] usb/hcd-xhci: Split pci wrapper for xhci base model

2020-03-03 Thread Gerd Hoffmann
On Mon, Mar 02, 2020 at 03:05:24PM +0530, Sai Pavan Boddu wrote: > This patch sets the base to use xhci as sysbus model, for which pci > specific hooks are moved to hcd-xhci-pci.c. As a part of this requirment > msi/msix interrupts handling is moved under XHCIPCIState. Made required > changes for q

[PATCH 3/3] usb/hcd-xhci: Split pci wrapper for xhci base model

2020-03-02 Thread Sai Pavan Boddu
This patch sets the base to use xhci as sysbus model, for which pci specific hooks are moved to hcd-xhci-pci.c. As a part of this requirment msi/msix interrupts handling is moved under XHCIPCIState. Made required changes for qemu-xhci-nec. Signed-off-by: Sai Pavan Boddu --- hw/usb/Kconfig