* [PULL for-8.2 0/2] Fix for building with Xen 4.18
@ 2023-12-12 10:22 Paolo Bonzini
2023-12-12 10:22 ` [PULL 1/2] meson, xen: fix condition for enabling the Xen accelerator Paolo Bonzini
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Paolo Bonzini @ 2023-12-12 10:22 UTC (permalink / raw)
To: qemu-devel; +Cc: philmd
The following changes since commit abf635ddfe3242df907f58967f3c1e6763bbca2d:
Update version for v8.2.0-rc2 release (2023-11-28 16:31:16 -0500)
are available in the Git repository at:
https://gitlab.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 94353dcc5f9a91d111e264d8a4b130fe1aab7535:
xen: fix condition for skipping virtio-mmio defines (2023-12-12 11:14:54 +0100)
(Compared to the patch that was posted, this is split the change
in two commits but otherwise is the same).
----------------------------------------------------------------
Fix for building with Xen 4.18
----------------------------------------------------------------
Paolo Bonzini (2):
meson, xen: fix condition for enabling the Xen accelerator
xen: fix condition for skipping virtio-mmio defines
include/hw/xen/xen_native.h | 2 +-
meson.build | 17 ++++++++++-------
2 files changed, 11 insertions(+), 8 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PULL 1/2] meson, xen: fix condition for enabling the Xen accelerator
2023-12-12 10:22 [PULL for-8.2 0/2] Fix for building with Xen 4.18 Paolo Bonzini
@ 2023-12-12 10:22 ` Paolo Bonzini
2023-12-12 10:22 ` [PULL 2/2] xen: fix condition for skipping virtio-mmio defines Paolo Bonzini
2023-12-13 17:22 ` [PULL for-8.2 0/2] Fix for building with Xen 4.18 Stefan Hajnoczi
2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2023-12-12 10:22 UTC (permalink / raw)
To: qemu-devel
Cc: philmd, Stefano Stabellini, Richard W . M . Jones,
Daniel P . Berrangé, Michael Young
A misspelled condition in xen_native.h is hiding a bug in the enablement of
Xen for qemu-system-aarch64. The bug becomes apparent when building for
Xen 4.18.
While the i386 emulator provides the xenpv machine type for multiple architectures,
and therefore can be compiled with Xen enabled even when the host is Arm, the
opposite is not true: qemu-system-aarch64 can only be compiled with Xen support
enabled when the host is Arm.
Expand the computation of accelerator_targets['CONFIG_XEN'] similar to what is
already there for KVM.
Cc: Stefano Stabellini <stefano.stabellini@amd.com>
Cc: Richard W.M. Jones <rjones@redhat.com>
Cc: Daniel P. Berrangé <berrange@redhat.com>
Reported-by: Michael Young <m.a.young@durham.ac.uk>
Fixes: 0c8ab1cddd6 ("xen_arm: Create virtio-mmio devices during initialization", 2023-08-30)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/meson.build b/meson.build
index ec01f8b138a..67f4ede8aea 100644
--- a/meson.build
+++ b/meson.build
@@ -123,21 +123,24 @@ if get_option('kvm').allowed() and targetos == 'linux'
kvm_targets_c = '"' + '" ,"'.join(kvm_targets) + '"'
endif
config_host_data.set('CONFIG_KVM_TARGETS', kvm_targets_c)
-
accelerator_targets = { 'CONFIG_KVM': kvm_targets }
+if cpu in ['x86', 'x86_64']
+ xen_targets = ['i386-softmmu', 'x86_64-softmmu']
+elif cpu in ['arm', 'aarch64']
+ # i386 emulator provides xenpv machine type for multiple architectures
+ xen_targets = ['i386-softmmu', 'x86_64-softmmu', 'aarch64-softmmu']
+else
+ xen_targets = []
+endif
+accelerator_targets += { 'CONFIG_XEN': xen_targets }
+
if cpu in ['aarch64']
accelerator_targets += {
'CONFIG_HVF': ['aarch64-softmmu']
}
endif
-if cpu in ['x86', 'x86_64', 'arm', 'aarch64']
- # i386 emulator provides xenpv machine type for multiple architectures
- accelerator_targets += {
- 'CONFIG_XEN': ['i386-softmmu', 'x86_64-softmmu', 'aarch64-softmmu'],
- }
-endif
if cpu in ['x86', 'x86_64']
accelerator_targets += {
'CONFIG_HVF': ['x86_64-softmmu'],
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PULL 2/2] xen: fix condition for skipping virtio-mmio defines
2023-12-12 10:22 [PULL for-8.2 0/2] Fix for building with Xen 4.18 Paolo Bonzini
2023-12-12 10:22 ` [PULL 1/2] meson, xen: fix condition for enabling the Xen accelerator Paolo Bonzini
@ 2023-12-12 10:22 ` Paolo Bonzini
2023-12-13 17:22 ` [PULL for-8.2 0/2] Fix for building with Xen 4.18 Stefan Hajnoczi
2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2023-12-12 10:22 UTC (permalink / raw)
To: qemu-devel; +Cc: philmd, Daniel P . Berrangé
GUEST_VIRTIO_MMIO_* was added in Xen 4.17, so only define them
for CONFIG_XEN_CTRL_INTERFACE_VERSIONs up to 4.16.
Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/hw/xen/xen_native.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/xen/xen_native.h b/include/hw/xen/xen_native.h
index 6f09c48823b..1a5ad693a4d 100644
--- a/include/hw/xen/xen_native.h
+++ b/include/hw/xen/xen_native.h
@@ -532,7 +532,7 @@ static inline int xendevicemodel_set_irq_level(xendevicemodel_handle *dmod,
}
#endif
-#if CONFIG_XEN_CTRL_INTERFACE_VERSION <= 41700
+#if CONFIG_XEN_CTRL_INTERFACE_VERSION < 41700
#define GUEST_VIRTIO_MMIO_BASE xen_mk_ullong(0x02000000)
#define GUEST_VIRTIO_MMIO_SIZE xen_mk_ullong(0x00100000)
#define GUEST_VIRTIO_MMIO_SPI_FIRST 33
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PULL for-8.2 0/2] Fix for building with Xen 4.18
2023-12-12 10:22 [PULL for-8.2 0/2] Fix for building with Xen 4.18 Paolo Bonzini
2023-12-12 10:22 ` [PULL 1/2] meson, xen: fix condition for enabling the Xen accelerator Paolo Bonzini
2023-12-12 10:22 ` [PULL 2/2] xen: fix condition for skipping virtio-mmio defines Paolo Bonzini
@ 2023-12-13 17:22 ` Stefan Hajnoczi
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2023-12-13 17:22 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel, philmd
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-13 17:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 10:22 [PULL for-8.2 0/2] Fix for building with Xen 4.18 Paolo Bonzini
2023-12-12 10:22 ` [PULL 1/2] meson, xen: fix condition for enabling the Xen accelerator Paolo Bonzini
2023-12-12 10:22 ` [PULL 2/2] xen: fix condition for skipping virtio-mmio defines Paolo Bonzini
2023-12-13 17:22 ` [PULL for-8.2 0/2] Fix for building with Xen 4.18 Stefan Hajnoczi
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).