qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v1 1/1] default-configs: Enable USB support for


From: Alistair Francis
Subject: Re: [Qemu-devel] [PATCH v1 1/1] default-configs: Enable USB support for RISC-V machines
Date: Thu, 10 Jan 2019 14:28:07 -0800

On Thu, Jan 10, 2019 at 8:53 AM Palmer Dabbelt <address@hidden> wrote:
>
> On Wed, 09 Jan 2019 16:01:34 PST (-0800), Alistair Francis wrote:
> > Signed-off-by: Alistair Francis <address@hidden>
> > ---
> >  default-configs/riscv32-softmmu.mak | 1 +
> >  default-configs/riscv64-softmmu.mak | 1 +
> >  2 files changed, 2 insertions(+)
> >
> > diff --git a/default-configs/riscv32-softmmu.mak 
> > b/default-configs/riscv32-softmmu.mak
> > index dbc9398284..c9c5971409 100644
> > --- a/default-configs/riscv32-softmmu.mak
> > +++ b/default-configs/riscv32-softmmu.mak
> > @@ -1,6 +1,7 @@
> >  # Default configuration for riscv-softmmu
> >
> >  include pci.mak
> > +include usb.mak
> >
> >  CONFIG_SERIAL=y
> >  CONFIG_VIRTIO_MMIO=y
> > diff --git a/default-configs/riscv64-softmmu.mak 
> > b/default-configs/riscv64-softmmu.mak
> > index dbc9398284..c9c5971409 100644
> > --- a/default-configs/riscv64-softmmu.mak
> > +++ b/default-configs/riscv64-softmmu.mak
> > @@ -1,6 +1,7 @@
> >  # Default configuration for riscv-softmmu
> >
> >  include pci.mak
> > +include usb.mak
> >
> >  CONFIG_SERIAL=y
> >  CONFIG_VIRTIO_MMIO=y
> > --
> > 2.19.1
>
> Does this work for you?  I tried it out but my kernel hangs in early boot if I
> enable the generic PCI controller.  This is my WIP kernel so the problem is
> probably on my end.

I had tested it awhile ago when I was working on the PCIe patches and
it worked for Linux.

I didn't runtime test it this time as by default there is no change it
just lets users have more boot options. Even if it doesn't work for
Linux it will be useful for other non-Linux guests.

Alistair

>
> I'm trying to boot with
>
>     -device usb-ehci
>     -drive id=my_usb_disk,file=usbdisk.img,if=none,format=raw
>     -device usb-storage,drive=my_usb_dis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]