Trivial patches for 2025-07-13
The following changes since commit 9a4e273ddec3927920c5958d2226c6b38b543336:
Merge tag 'pull-tcg-20250711' of https://gitlab.com/rth7680/qemu into staging (2025-07-13 01:46:04 -0400)
are available in the Git repository at:
https://gitlab.com/mjt0k/qemu.git tags/pull-trivial-patches
for you to fetch changes up to 0f55ca43cd90eb89193bae45d0907c1b17a1dadd:
docs/devel/tracing: Update trace.h creation rune to include SPDX (2025-07-13 12:08:07 +0300)
----------------------------------------------------------------
trivial patches for 2025-07-13
There aren't anything fancy here, and the amount of patches is rather small. This set has been accumulating for a long time but there's only 6 patches in it.
----------------------------------------------------------------
Andrew Kreimer (1):
docs: remove repeated word
Peter Maydell (2):
hw/uefi: Create and use trace.h wrapper header docs/devel/tracing: Update trace.h creation rune to include SPDX
Thomas Huth (2):
accel/kvm: Adjust the note about the minimum required kernel version docs/system/target-i386: Remove the sentence about RHEL 7 being supported
Thomas Lambertz (1):
hw/usb/dev-hid: Support side and extra mouse buttons for usb-tablet
accel/kvm/kvm-all.c | 3 +-- docs/devel/tracing.rst | 2 +- docs/system/introduction.rst | 2 +- docs/system/target-i386.rst | 4 +--- hw/uefi/trace.h | 2 ++ hw/uefi/var-service-core.c | 2 +- hw/uefi/var-service-policy.c | 2 +- hw/uefi/var-service-utils.c | 2 +- hw/uefi/var-service-vars.c | 2 +- hw/usb/dev-hid.c | 6 +++--- 10 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 hw/uefi/trace.h
[PULL 1/6] hw/usb/dev-hid: Support side and extra mouse buttons for usb-tablet
From: Thomas Lambertz <[email protected]>
The necessary plumbing for side- and extra mouse buttons to reach usb-tablet is already done. But the descriptor advertises three buttons max. Increase this to 5. Buttons are now identical to usb-mouse.
--- hw/usb/dev-hid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
hw/usb/dev-hid.c +3 -3
@@ -491,14 +491,14 @@ static const uint8_t qemu_tablet_hid_report_descriptor[] = {0xa1 ,0x00 ,/* Collection (Physical) */ 0x05 ,0x09 ,/* Usage Page (Button) */ 0x19 ,0x01 ,/* Usage Minimum (1) */ -0x29 ,0x03 ,/* Usage Maximum (3) */ +0x29 ,0x05 ,/* Usage Maximum (5) */ 0x15 ,0x00 ,/* Logical Minimum (0) */ 0x25 ,0x01 ,/* Logical Maximum (1) */ -0x95 ,0x03 ,/* Report Count (3) */ +0x95 ,0x05 ,/* Report Count (5) */ 0x75 ,0x01 ,/* Report Size (1) */ 0x81 ,0x02 ,/* Input (Data, Variable, Absolute) */ 0x95 ,0x01 ,/* Report Count (1) */ -0x75 ,0x05 ,/* Report Size (5) */ +0x75 ,0x03 ,/* Report Size (3) */ 0x81 ,0x01 ,/* Input (Constant) */ 0x05 ,0x01 ,/* Usage Page (Generic Desktop) */ 0x09, 0x30, /* Usage (X) */
Signature · 1 line
2.47.2
[PULL 2/6] docs: remove repeated word
In reply to Michael TokarevFrom: Andrew Kreimer <[email protected]>
The word 'find' appears twice, remove the extra one.
--- docs/system/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/system/introduction.rst +1 -1
@@ -81,7 +81,7 @@ may not be optimal for modern systems. For a non-x86 system where we emulate a broad range of machine types, the command lines are generally more explicit in defining the machine -and boot behaviour. You will find often find example command lines in +and boot behaviour. You will often find example command lines in the :ref:`system-targets-ref` section of the manual. While the project doesn't want to discourage users from using the
Signature · 1 line
2.47.2
[PULL 4/6] docs/system/target-i386: Remove the sentence about RHEL 7 being supported
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
According to our "Supported build platforms" policy, RHEL 7 is not supported anymore, so let's remove the related sentence from the x86 documentation.
--- docs/system/target-i386.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
docs/system/target-i386.rst +1 -3
@@ -37,6 +37,4 @@ OS requirements ~~~~~~~~~~~~~~~ On x86_64 hosts, the default set of CPU features enabled by the KVM -accelerator require the host to be running Linux v4.5 or newer. Red Hat -Enterprise Linux 7 is also supported, since the required -functionality was backported. +accelerator require the host to be running Linux v4.5 or newer.
Signature · 1 line
2.47.2
[PULL 3/6] accel/kvm: Adjust the note about the minimum required kernel version
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
Since commit 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH") we require at least kernel 4.5 to be able to use KVM. Adjust the upgrade_note accordingly. While we're at it, remove the text about kvm-kmod and the SourceForge URL since this is not actively maintained anymore.
--- accel/kvm/kvm-all.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
accel/kvm/kvm-all.c +1 -2
@@ -2606,8 +2606,7 @@ static int kvm_init(AccelState *as, MachineState *ms) {MachineClass *mc =MACHINE_GET_CLASS (ms);static const char upgrade_note[] = -"Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" -"(see http://sourceforge.net/projects/kvm).\n" ; +"Please upgrade to at least kernel 4.5.\n" ; const struct { const char *name; int num;
Signature · 1 line
2.47.2
[PULL 5/6] hw/uefi: Create and use trace.h wrapper header
In reply to Michael TokarevFrom: Peter Maydell <[email protected]>
The documentation of the trace subsystem (docs/devel/tracing.rst) says that each subdirectory which uses trace events should create a wrapper trace.h file which includes the trace/trace-foo.h generated header, and that .c files then #include "trace.h".
We didn't follow this pattern in hw/uefi/. Correct this by creating and using the trace.h wrapper header.
--- hw/uefi/trace.h | 2 ++ hw/uefi/var-service-core.c | 2 +- hw/uefi/var-service-policy.c | 2 +- hw/uefi/var-service-utils.c | 2 +- hw/uefi/var-service-vars.c | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 hw/uefi/trace.h
hw/uefi/trace.h new file +2 -0
@@ -0,0 +1,2 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#include "trace/trace-hw_uefi.h"
hw/uefi/var-service-core.c +1 -1
@@ -12,7 +12,7 @@#include "hw/uefi/var-service-api.h" #include "hw/uefi/var-service-edk2.h" -#include "trace/trace-hw_uefi.h" +#include "trace.h" static int uefi_vars_pre_load (void *opaque) {
hw/uefi/var-service-policy.c +1 -1
@@ -14,7 +14,7 @@#include "hw/uefi/var-service-api.h" #include "hw/uefi/var-service-edk2.h" -#include "trace/trace-hw_uefi.h" +#include "trace.h" static void calc_policy (uefi_var_policy *pol);
hw/uefi/var-service-utils.c +1 -1
@@ -8,7 +8,7 @@#include "hw/uefi/var-service.h" -#include "trace/trace-hw_uefi.h" +#include "trace.h" /* ------------------------------------------------------------------ */
hw/uefi/var-service-vars.c +1 -1
@@ -12,7 +12,7 @@#include "hw/uefi/var-service-api.h" #include "hw/uefi/var-service-edk2.h" -#include "trace/trace-hw_uefi.h" +#include "trace.h" #define EFI_VARIABLE_ATTRIBUTE_SUPPORTED \ (EFI_VARIABLE_NON_VOLATILE | \
Signature · 1 line
2.47.2
[PULL 6/6] docs/devel/tracing: Update trace.h creation rune to include SPDX
In reply to Michael TokarevFrom: Peter Maydell <[email protected]>
checkpatch now checks that new files have an SPDX line. If you use the shell rune in tracing.rst to create a trace.h wrapper header, this triggers checkpatch to complain.
Although these files are tiny, it's worth having the SPDX line to avoid having to add extra exception cases to checkpatch.
Update the rune to include creating an SPDX line.
--- docs/devel/tracing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/devel/tracing.rst +1 -1
@@ -76,7 +76,7 @@ The "io/trace.h" file must be created manually with an #include of the corresponding "trace/trace-<subdir>.h" file that will be generated in the builddir:: - $ echo '#include "trace/trace-io.h"' >io/trace.h + $ (echo '/* SPDX-License-Identifier: GPL-2.0-or-later */' ; echo '#include "trace/trace-io.h"') >io/trace.h While it is possible to include a trace.h file from outside a source file's own sub-directory, this is discouraged in general. It is strongly preferred that
Signature · 1 line
2.47.2
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes.