qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Apfelbaum <marcel@redhat.com>
To: Zhong Yang <yang.zhong@intel.com>, qemu-devel@nongnu.org
Cc: pbonzini@redhat.com
Subject: Re: [Qemu-devel] About virtio device hotplug in Q35!
Date: Mon, 24 Jul 2017 08:05:54 +0300	[thread overview]
Message-ID: <9f3c0221-6d62-7d5e-0f86-9cd839e2c34e@redhat.com> (raw)
In-Reply-To: <20170724014741.GA16720@yangzhon-Virtual>

On 24/07/2017 4:47, Zhong Yang wrote:
> Hello all,
> 

Hi,

> When we did virtio device hotplug in Q35 platform, which always failed in hotplug.
> 

Can we please see the QEMU command line and the description
of the hotplug steps?

> Would you please tell me how to configure VM to make virtio device hotplug work in Q35 platform?  Many thanks!
> 

The virtio devices can be hot-plugged into PCIe Root Ports:
HMP example:
  Start the VM with several PCIe Root Ports:
    <qemu-bin> -M q35 -monitor stdio \
                      -device pcie-root-port,id=rp1 \
                      -device pcie-root port,id=rp2 \
                      ...
  Then from QEMU's hmp:
      device-add virtio-net-pci,id=n1,bus=rp1
      ...


I hope it helps,
Marcel


> 
> Regards,
> 
> Yang zhong
> 

  reply	other threads:[~2017-07-24  5:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24  1:47 [Qemu-devel] About virtio device hotplug in Q35! Zhong Yang
2017-07-24  5:05 ` Marcel Apfelbaum [this message]
2017-07-24 11:26   ` Zhong Yang

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=9f3c0221-6d62-7d5e-0f86-9cd839e2c34e@redhat.com \
    --to=marcel@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yang.zhong@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).