From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Stefano Stabellini <sstabellini@kernel.org>
Cc: peter.maydell@linaro.org, richard.henderson@linaro.org,
qemu-devel@nongnu.org, vikram.garhwal@amd.com,
Stefano Stabellini <stefano.stabellini@amd.com>,
Edgar.Iglesias@amd.com
Subject: Re: [PULL v5 09/11] hw/arm: introduce xenpvh machine
Date: Thu, 6 Mar 2025 07:28:51 +0100 [thread overview]
Message-ID: <5eabec82-3480-492b-82c3-978942bbd7b3@linaro.org> (raw)
In-Reply-To: <CAJy5ezrx8mYWfE1Ty16g-Do9-itWN2qn36pqM9u0mNDw5SbaLw@mail.gmail.com>
On 6/3/25 01:13, Edgar E. Iglesias wrote:
>
> On Wed, Mar 5, 2025 at 5:22 PM Stefano Stabellini
> <sstabellini@kernel.org <mailto:sstabellini@kernel.org>> wrote:
>
> +Edgar
>
> On Wed, 5 Mar 2025, Philippe Mathieu-Daudé wrote:
> > On 16/6/23 01:52, Stefano Stabellini wrote:
> > > From: Vikram Garhwal <vikram.garhwal@amd.com
> <mailto:vikram.garhwal@amd.com>>
> > >
> > > Add a new machine xenpvh which creates a IOREQ server to
> register/connect
> > > with
> > > Xen Hypervisor.
> > >
> > > Optional: When CONFIG_TPM is enabled, it also creates a tpm-
> tis-device, adds
> > > a
> > > TPM emulator and connects to swtpm running on host machine via
> chardev
> > > socket
> > > and support TPM functionalities for a guest domain.
> > >
> > > Extra command line for aarch64 xenpvh QEMU to connect to swtpm:
> > > -chardev socket,id=chrtpm,path=/tmp/myvtpm2/swtpm-sock \
> > > -tpmdev emulator,id=tpm0,chardev=chrtpm \
> > > -machine tpm-base-addr=0x0c000000 \
> > >
> > > swtpm implements a TPM software emulator(TPM 1.2 & TPM 2) built
> on libtpms
> > > and
> > > provides access to TPM functionality over socket, chardev and CUSE
> > > interface.
> > > Github repo: https://github.com/stefanberger/swtpm <https://
> github.com/stefanberger/swtpm>
> > > Example for starting swtpm on host machine:
> > > mkdir /tmp/vtpm2
> > > swtpm socket --tpmstate dir=/tmp/vtpm2 \
> > > --ctrl type=unixio,path=/tmp/vtpm2/swtpm-sock &
> > >
> > > Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com
> <mailto:vikram.garhwal@amd.com>>
> > > Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com
> <mailto:stefano.stabellini@amd.com>>
> > > Reviewed-by: Stefano Stabellini <sstabellini@kernel.org
> <mailto:sstabellini@kernel.org>>
> > > ---
> > > docs/system/arm/xenpvh.rst | 34 +++++++
> > > docs/system/target-arm.rst | 1 +
> > > hw/arm/meson.build | 2 +
> > > hw/arm/xen_arm.c | 181 +++++++++++++++++++++++++
> +++++++++
> > > include/hw/arm/xen_arch_hvm.h | 9 ++
> > > include/hw/xen/arch_hvm.h | 2 +
> > > 6 files changed, 229 insertions(+)
> > > create mode 100644 docs/system/arm/xenpvh.rst
> > > create mode 100644 hw/arm/xen_arm.c
> > > create mode 100644 include/hw/arm/xen_arch_hvm.h
> >
> >
> > > diff --git a/include/hw/xen/arch_hvm.h b/include/hw/xen/arch_hvm.h
> > > index 26674648d8..c7c515220d 100644
> > > --- a/include/hw/xen/arch_hvm.h
> > > +++ b/include/hw/xen/arch_hvm.h
> > > @@ -1,3 +1,5 @@
> > > #if defined(TARGET_I386) || defined(TARGET_X86_64)
> > > #include "hw/i386/xen_arch_hvm.h"
> > > +#elif defined(TARGET_ARM) || defined(TARGET_ARM_64)
> >
> > I suppose this is a typo and you meant TARGET_AARCH64 :)
> > Luckily TARGET_AARCH64 defines TARGET_ARM.
>
> Hi Philippe, it looks like this is an older patch.
>
> Edgar, is this patch still valid?
>
>
> Hi,
>
> Yes, I think Phil is right, this works by luck and should have been
> TARGET_AARCH64.
> Phil, will you send a patch?
On the list:
https://lore.kernel.org/qemu-devel/20250305153929.43687-2-philmd@linaro.org/
But IIUC since there is no vCPU emulated in HVM I wonder why the
32/64-bit distinction matters here.
next prev parent reply other threads:[~2025-03-06 6:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 23:52 [PULL v5 00/11] xenpvh5-tag Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 01/11] hw/i386/xen/: move xen-mapcache.c to hw/xen/ Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 02/11] hw/i386/xen: rearrange xen_hvm_init_pc Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 03/11] hw/i386/xen/xen-hvm: move x86-specific fields out of XenIOState Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 04/11] xen-hvm: reorganize xen-hvm and move common function to xen-hvm-common Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 05/11] include/hw/xen/xen_common: return error from xen_create_ioreq_server Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 06/11] hw/xen/xen-hvm-common: skip ioreq creation on ioreq registration failure Stefano Stabellini
2023-06-20 10:40 ` Peter Maydell
2023-06-15 23:52 ` [PULL v5 07/11] hw/xen/xen-hvm-common: Use g_new and error_report Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 08/11] meson.build: do not set have_xen_pci_passthrough for aarch64 targets Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 09/11] hw/arm: introduce xenpvh machine Stefano Stabellini
2025-03-05 11:36 ` Philippe Mathieu-Daudé
2025-03-05 23:20 ` Stefano Stabellini
2025-03-06 0:13 ` Edgar E. Iglesias
2025-03-06 6:28 ` Philippe Mathieu-Daudé [this message]
2023-06-15 23:52 ` [PULL v5 10/11] meson.build: enable xenpv machine build for ARM Stefano Stabellini
2023-06-15 23:52 ` [PULL v5 11/11] test/qtest: add xepvh to skip list for qtest Stefano Stabellini
2023-06-17 8:02 ` [PULL v5 00/11] xenpvh5-tag Richard Henderson
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=5eabec82-3480-492b-82c3-978942bbd7b3@linaro.org \
--to=philmd@linaro.org \
--cc=Edgar.Iglesias@amd.com \
--cc=edgar.iglesias@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=sstabellini@kernel.org \
--cc=stefano.stabellini@amd.com \
--cc=vikram.garhwal@amd.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).