From: Chuck Zmudzinski <brchuckz@aol.com>
To: qemu-devel@nongnu.org
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
Artyom Tarasenko <atar4qemu@gmail.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Anthony Perard <anthony.perard@citrix.com>,
Paul Durrant <paul@xen.org>,
xen-devel@lists.xenproject.org
Subject: [PATCH v2 0/2] pci: slot_reserved_mask improvements
Date: Tue, 14 Mar 2023 00:01:07 -0400 [thread overview]
Message-ID: <cover.1678763217.git.brchuckz@aol.com> (raw)
In-Reply-To: cover.1678763217.git.brchuckz.ref@aol.com
This patch series consists of two patches. The first provides accessor
functions in pci.h to avoid direct access of slot_reserved_mask
according to the comment at the top of include/hw/pci/pci_bus.h. No
functional change is intended with this patch.
The second patch allows a pci bus to be configured so slot_reserved_mask
will only be enforced when the device to be added to the bus is
configured for automatic slot assignment. The second patch also uses the
new capability in the case of the pc/i440fx/xenfv machine types so
the current behavior of reserving slot 2 for the Intel IGD for the
xenfv machine will be ignored if an administrator manually configures
another device to use the reserved slot.
The current behavior of always reserving slots in the sun4u machine is
preserved by this patch series; the patch series only changes how
slot_reserved_mask works in the xenfv machine. Although the patch
series can affect xenfv machines configured for igd-passthru if an
administrator assigns some of the pci slot addresses manually, it
does not affect the libxl default configuration for igd-passthru because
libxl uses automatic slot assignment by default.
Link: https://lore.kernel.org/qemu-devel/20230106064838-mutt-send-email-mst@kernel.org/
Chuck Zmudzinski (2):
pci: avoid accessing slot_reserved_mask directly outside of pci.c
pci: allow slot_reserved_mask to be ignored with manual slot
assignment
Changelog
v2: Add first patch and cover letter to make this a 2-patch series
Make changes to the second patch (see second patch for changelog)
hw/pci-host/i440fx.c | 1 +
hw/pci/pci.c | 29 ++++++++++++++++++++++++++++-
hw/sparc64/sun4u.c | 7 +++----
hw/xen/xen_pt.c | 7 +++----
include/hw/pci/pci.h | 4 ++++
include/hw/pci/pci_bus.h | 1 +
6 files changed, 40 insertions(+), 9 deletions(-)
--
2.39.2
next parent reply other threads:[~2023-03-14 4:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1678763217.git.brchuckz.ref@aol.com>
2023-03-14 4:01 ` Chuck Zmudzinski [this message]
2023-03-14 4:01 ` [PATCH v2 1/2] pci: avoid accessing slot_reserved_mask directly outside of pci.c Chuck Zmudzinski
2023-03-14 4:01 ` [PATCH v2 2/2] pci: allow slot_reserved_mask to be ignored with manual slot assignment Chuck Zmudzinski
2023-03-14 6:33 ` Michael S. Tsirkin
2023-03-14 12:33 ` Chuck Zmudzinski
2023-03-14 13:16 ` Michael S. Tsirkin
2023-03-14 12:43 ` Mark Cave-Ayland
2023-03-14 13:17 ` Michael S. Tsirkin
2023-03-14 13:26 ` Chuck Zmudzinski
2023-03-14 13:41 ` Mark Cave-Ayland
2023-03-14 14:08 ` Chuck Zmudzinski
2023-03-14 14:21 ` Chuck Zmudzinski
2023-03-14 14:39 ` Mark Cave-Ayland
2023-03-14 17:02 ` Chuck Zmudzinski
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=cover.1678763217.git.brchuckz@aol.com \
--to=brchuckz@aol.com \
--cc=anthony.perard@citrix.com \
--cc=atar4qemu@gmail.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mst@redhat.com \
--cc=paul@xen.org \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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.