qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: Nigel Kukard <nkukard+qemu@lbsd.net>,
	Igor Mammedov <imammedo@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Hotplug vs. multifunction regression
Date: Mon, 17 Feb 2014 16:21:00 +0200	[thread overview]
Message-ID: <20140217142100.GB22946@redhat.com> (raw)
In-Reply-To: <1392646251.15608.454.camel@ul30vt.home>

On Mon, Feb 17, 2014 at 07:10:51AM -0700, Alex Williamson wrote:
> [cc +igor, +mst]
> 
> Appears that it's no longer possible to use multifunction devices at
> PCIe at all due to hotplug being an integral part of device realization
> now.  Thanks,
> 
> Alex

Yes, Igor just fixed it.

> On Sun, 2014-02-16 at 15:57 +0000, Nigel Kukard wrote:
> > Hi guys,
> > 
> > Starting from the patch series in 9f117d41 the below error is
> > observed... (reverting to the patch right before it works fine a1483f88)
> > 
> > Here is the error:
> > qemu-system-x86_64: hw/pci/pcie.c:240: pcie_cap_slot_hotplug_common:
> > Assertion `((pci_dev->devfn) & 0x07) == 0' failed.
> > 
> > Here is the command that generated it...
> > 
> > CMDLINE: $VAR1 = [
> >           'qemu-system-x86_64',
> >           '-m',
> >           '8G',
> >           '-machine',
> >           'q35',
> >           '-cpu',
> >           'qemu64',
> >           '-smp',
> >           '4,sockets=1,cores=4,threads=1',
> >           '-enable-kvm',
> >           '-device',
> >          
> > 'ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1',
> >           '-device',
> >          
> > 'vfio-pci,host=03:00.0,bus=root.1,addr=0.0,multifunction=on,x-vga=on',
> >           '-device',
> >           'vfio-pci,host=03:00.1,bus=root.1,addr=0.1',
> >           '-device',
> >           'ide-drive,drive=sata-disk0,bus=ide.0',
> >           '-drive',
> >          
> > 'file=510-drive_sda.qcow2,id=sata-disk0,format=qcow2,cache=writeback,if=none',
> >           '-vga',
> >           'none',
> >           '-nographic',
> >           '-boot',
> >           'menu=on',
> >         ];
> > 
> > It seems the hotplug interface doesn't know how to handle multifunction
> > devices.
> > 
> > -N
> > 
> 
> 

      reply	other threads:[~2014-02-17 14:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-16 15:57 [Qemu-devel] Hotplug vs. multifunction regression Nigel Kukard
2014-02-17 14:00 ` [Qemu-devel] [PATCH] PCIE: fix regression with coldplugged multifunction device Igor Mammedov
2014-02-17 14:20   ` Michael S. Tsirkin
2014-02-17 14:10 ` [Qemu-devel] Hotplug vs. multifunction regression Alex Williamson
2014-02-17 14:21   ` Michael S. Tsirkin [this message]

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=20140217142100.GB22946@redhat.com \
    --to=mst@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=nkukard+qemu@lbsd.net \
    --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 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).