From: Jonathan Cameron via <qemu-devel@nongnu.org>
To: <qemu-devel@nongnu.org>, Peter Maydell <peter.maydell@linaro.org>
Cc: "Michael S . Tsirkin" <mst@redhat.com>,
"Ben Widawsky" <ben.widawsky@intel.com>,
linux-cxl@vger.kernel.org, "Alex Bennée" <alex.bennee@linaro.org>,
linuxarm@huawei.com
Subject: [PATCH v11 0/2] hw/arm/virt: CXL 2.0 emulation support
Date: Fri, 20 May 2022 17:37:30 +0100 [thread overview]
Message-ID: <20220520163732.27545-1-Jonathan.Cameron@huawei.com> (raw)
The initial CXL support including support on x86/pc has now merged
(thanks Michael!).
This is the first of the two remaining parts of that series, unchanged
since v10. The second is CXL switch support which can be applied
separately to this series and will be sent shortly.
CXL support requires two types of memory regions and this hooks them
up in arm/virt.
1) CXL host bridge control register regions. This allows for up to
16 host bridges which should keep anyone happy. The CEDT ACPI table
is used by system software to find these regions.
2) CXL Fixed Memory Windows. CFMWs are regions of PA space that are
configured to perform interleaved accesses over multiple host bridges.
They are fixed, but the OS may select between multiple CFMWs to find
one suitable for the interleave it desires. All interleave in the
host bridges and switches is programmable and discoverable - only
these top level regions are static and described to system software
via another structure in CEDT.
A simple test cases is added to existing cxl-test qtest.
Jonathan Cameron (2):
hw/arm/virt: Basic CXL enablement on pci_expander_bridge instances
pxb-cxl
qtest/cxl: Add aarch64 virt test for CXL
hw/arm/virt-acpi-build.c | 33 +++++++++++++++++++++++++++
hw/arm/virt.c | 40 ++++++++++++++++++++++++++++++++-
include/hw/arm/virt.h | 1 +
tests/qtest/cxl-test.c | 48 ++++++++++++++++++++++++++++++++--------
tests/qtest/meson.build | 1 +
5 files changed, 113 insertions(+), 10 deletions(-)
--
2.32.0
next reply other threads:[~2022-05-20 16:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-20 16:37 Jonathan Cameron via [this message]
2022-05-20 16:37 ` [PATCH v11 1/2] hw/arm/virt: Basic CXL enablement on pci_expander_bridge instances pxb-cxl Jonathan Cameron via
2022-05-20 16:37 ` [PATCH v11 2/2] qtest/cxl: Add aarch64 virt test for CXL Jonathan Cameron via
2022-05-26 12:10 ` [PATCH v11 0/2] hw/arm/virt: CXL 2.0 emulation support Jonathan Cameron via
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=20220520163732.27545-1-Jonathan.Cameron@huawei.com \
--to=qemu-devel@nongnu.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=alex.bennee@linaro.org \
--cc=ben.widawsky@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.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).