All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: Priyamvad Acharya <priyamvad.agnisys@gmail.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: Parameter 'driver' expects pluggable device type
Date: Thu, 7 May 2020 17:02:51 -0400	[thread overview]
Message-ID: <d418f253-1749-8d29-c228-0c69c2cec3a7@redhat.com> (raw)
In-Reply-To: <CAPV47zdeH0+G85De2nOeD-dw91PKqPZh0U4SZuwuFmdqRyhXjQ@mail.gmail.com>



On 5/6/20 8:56 AM, Priyamvad Acharya wrote:
> 
> Hello developer community,
> I want to allow a *sysbus *type device to boot with kernel image(arm
> architecture) via Qemu command line .
> 
> When I run qemu arm system executable with *-device *option via qemu
> command line,I get following error message
> 
>> qemu-system-arm: -device pl061: Parameter 'driver' expects pluggable
> device type
> 
> So, how to allow a sysbus device via command line?
> Is there any working patch?

Hi, it looks like the pl061 device is not declared "user creatable" so
it is unavailable from the CLI. As a sysbus device, QEMU is not aware,
in the abstract, of how to "connect" the device to other devices.

See the sysbus class initialization code for more detail:
https://github.com/qemu/qemu/blob/master/hw/core/sysbus.c#L301


However, It looks like these boards/devices create such a device:

hw/arm/highbank
hw/arm/realview
hw/arm/sbsa-ref
hw/arm/stellaris
hw/arm/versatilepb
hw/arm/virt

If you want one on some other kind of machine, you'll need to write it
up yourself in the machine board code, but you didn't tell us what
version of QEMU you're using, what machine type you are trying to use, etc.

--js



  reply	other threads:[~2020-05-07 21:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06 12:56 Parameter 'driver' expects pluggable device type Priyamvad Acharya
2020-05-07 21:02 ` John Snow [this message]
2020-05-08  2:08   ` Priyamvad Acharya
2020-05-08  2:10   ` Priyamvad Acharya
2020-05-09  2:52     ` Priyamvad Acharya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d418f253-1749-8d29-c228-0c69c2cec3a7@redhat.com \
    --to=jsnow@redhat.com \
    --cc=priyamvad.agnisys@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.