Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH kvmtool 0/6] x86 compilation fixes and arm64 PMU improvements
@ 2026-03-23 15:02 Alexandru Elisei
  2026-03-23 15:02 ` [PATCH kvmtool 1/6] virtio: Do not modify const strings in virtio_9p_rootdir_parser() Alexandru Elisei
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Alexandru Elisei @ 2026-03-23 15:02 UTC (permalink / raw)
  To: will, julien.thierry.kdev, maz, oupton, jean-philippe,
	andre.przywara, suzuki.poulose, kvm

The first two patches fix the following compilation errors on x86 when
using gcc 15.2.1:

disk/core.c: In function ‘disk_img_name_parser’:
disk/core.c:27:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   27 |                 sep = strstr(arg, ":");
      |                     ^
disk/core.c:39:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   39 |                 sep = strstr(cur, ",");
      |                     ^
virtio/9p.c: In function ‘virtio_9p_rootdir_parser’:
virtio/9p.c:1503:18: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
 1503 |         tag_name = strstr(arg, ",");
      |                  ^

I couldn't reproduce the errors on arm64 using aarch64-linux-gnu-gcc 15.1.0
and 14.2.0. I tried doing make with V=1 and it looked to me like kvmtool
uses the same flags on x86 as on arm64, so I assumed it's because of the
difference in compilers and I didn't dig further.

The remaining of the patches are there to improve PMU initialisation and
error reporting.

Alexandru Elisei (6):
  virtio: Do not modify const strings in virtio_9p_rootdir_parser()
  disk/core: Do not modify const strings in disk_img_name_parser()
  arm64: Initialise the PMU last
  util: Set exit status to errno in die_perror()
  util: Allow die_perror() to take a variable list of argument
  arm64: Improve KVM_ARM_VCPU_PMU_V3_CTRL diagnostics

 arm64/pmu.c              | 60 ++++++++++++++++++++++++++++------------
 disk/core.c              | 44 +++++++++++++++++++----------
 include/kvm/disk-image.h |  6 ++--
 include/kvm/util-init.h  |  6 ++--
 include/kvm/util.h       |  2 +-
 util/util.c              | 21 ++++++++++++--
 virtio/9p.c              | 21 +++++++++-----
 7 files changed, 113 insertions(+), 47 deletions(-)


base-commit: eb915c763e4b95dd4a9d32763fd449459742e053
-- 
2.53.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-05-18 15:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 15:02 [PATCH kvmtool 0/6] x86 compilation fixes and arm64 PMU improvements Alexandru Elisei
2026-03-23 15:02 ` [PATCH kvmtool 1/6] virtio: Do not modify const strings in virtio_9p_rootdir_parser() Alexandru Elisei
2026-03-23 15:02 ` [PATCH kvmtool 2/6] disk/core: Do not modify const strings in disk_img_name_parser() Alexandru Elisei
2026-05-17  8:29   ` Will Deacon
2026-05-18  9:51     ` Alexandru Elisei
2026-03-23 15:02 ` [PATCH kvmtool 3/6] arm64: Initialise the PMU last Alexandru Elisei
2026-05-17  8:33   ` Will Deacon
2026-05-18  9:53     ` Alexandru Elisei
2026-03-23 15:02 ` [PATCH kvmtool 4/6] util: Set exit status to errno in die_perror() Alexandru Elisei
2026-03-23 15:02 ` [PATCH kvmtool 5/6] util: Allow die_perror() to take a variable list of argument Alexandru Elisei
2026-05-17  8:44   ` Will Deacon
2026-05-18 10:12     ` Alexandru Elisei
2026-05-18 15:06       ` Will Deacon
2026-05-18 15:22         ` Alexandru Elisei
2026-03-23 15:02 ` [PATCH kvmtool 6/6] arm64: Improve KVM_ARM_VCPU_PMU_V3_CTRL diagnostics Alexandru Elisei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox