From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PULL 05/10] whpx: arm: enable more enlightenments
Date: Mon, 23 Mar 2026 10:54:24 +0000 [thread overview]
Message-ID: <20260323105429.4059580-6-peter.maydell@linaro.org> (raw)
In-Reply-To: <20260323105429.4059580-1-peter.maydell@linaro.org>
From: Mohamed Mediouni <mohamed@unpredictable.fr>
Unconditionally enable some more enlightenments for whpx. In
particular, linux uses AccessVpRegs without checking availability and
panics if it's not there, so it's important to expose it.
We also had a duplicate line where we set AccessHypercallRegs = 1
twice; remove the duplicate.
Microsoft’s VMM exposes SyncContext on arm64 and FastHypercallOutput
regardless of architecture unconditionally, so add those two to match
that configuration.
Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>
Message-id: 20260314221529.47841-4-mohamed@unpredictable.fr
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/whpx/whpx-all.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/target/arm/whpx/whpx-all.c b/target/arm/whpx/whpx-all.c
index 3df60a950d..9e5bc03a21 100644
--- a/target/arm/whpx/whpx-all.c
+++ b/target/arm/whpx/whpx-all.c
@@ -832,6 +832,7 @@ int whpx_accel_init(AccelState *as, MachineState *ms)
UINT32 whpx_cap_size;
WHV_PARTITION_PROPERTY prop;
WHV_CAPABILITY_FEATURES features;
+ WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS synthetic_features;
MachineClass *mc = MACHINE_GET_CLASS(ms);
int pa_range = 0;
@@ -942,7 +943,6 @@ int whpx_accel_init(AccelState *as, MachineState *ms)
}
/* Enable synthetic processor features */
- WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS synthetic_features;
memset(&synthetic_features, 0, sizeof(WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS));
synthetic_features.BanksCount = 1;
@@ -953,13 +953,15 @@ int whpx_accel_init(AccelState *as, MachineState *ms)
synthetic_features.Bank0.AccessPartitionReferenceTsc = 1;
synthetic_features.Bank0.AccessHypercallRegs = 1;
synthetic_features.Bank0.AccessVpIndex = 1;
- synthetic_features.Bank0.AccessHypercallRegs = 1;
synthetic_features.Bank0.TbFlushHypercalls = 1;
synthetic_features.Bank0.AccessSynicRegs = 1;
synthetic_features.Bank0.AccessSyntheticTimerRegs = 1;
synthetic_features.Bank0.AccessIntrCtrlRegs = 1;
synthetic_features.Bank0.SyntheticClusterIpi = 1;
synthetic_features.Bank0.DirectSyntheticTimers = 1;
+ synthetic_features.Bank0.FastHypercallOutput = 1;
+ synthetic_features.Bank0.AccessVpRegs = 1;
+ synthetic_features.Bank0.SyncContext = 1;
/*
* On ARM64, have enlightenments off by default
--
2.43.0
next prev parent reply other threads:[~2026-03-23 10:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 10:54 [PULL 00/10] target-arm queue Peter Maydell
2026-03-23 10:54 ` [PULL 01/10] tests/qtest/arm-cpu-features: Fix thinko in g_strdup_printf() call Peter Maydell
2026-03-23 10:54 ` [PULL 02/10] configure: Remove unused variable default_cflags Peter Maydell
2026-03-23 10:54 ` [PULL 03/10] whpx: arm: fix -cpu host Peter Maydell
2026-03-23 10:54 ` [PULL 04/10] whpx: arm: add EC_DATAABORT assert for WHvRunVpExitReasonGpaIntercept/UnmappedGpa Peter Maydell
2026-03-23 10:54 ` Peter Maydell [this message]
2026-03-23 10:54 ` [PULL 06/10] whpx: arm: remove comment bit that is no longer accurate Peter Maydell
2026-03-23 10:54 ` [PULL 07/10] target/arm: cpu: alter error message for host CPU type Peter Maydell
2026-03-23 10:54 ` [PULL 08/10] whpx: arm: fix ID_AA64MMFR3_EL1 host feature register index Peter Maydell
2026-03-23 10:54 ` [PULL 09/10] configs/targets: Restrict the legacy ldst_phys() API on ARM / Aarch64 Peter Maydell
2026-03-23 10:54 ` [PULL 10/10] hw/isa/piix: Embed i8259 irq in device state instead of allocating Peter Maydell
2026-03-23 12:43 ` [PULL 00/10] target-arm queue Peter Maydell
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=20260323105429.4059580-6-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--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