Skip to content

Commit 2b7a80e

Browse files
committed
Merge tag 'pull-trivial-patches' of https://gitlab.com/mjt0k/qemu into staging
trivial patches for 2024-12-28 # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCgAdFiEEZKoqtTHVaQM2a/75gqpKJDselHgFAmdv5ucACgkQgqpKJDse # lHhneA//UIqio45IfMUFwlug8b4Cf/PRYU5+lgKh0SUOn4qpWS7IgF+zXWfk9/IF # Qg9NH1TVTbEzAyHBhpSUUHPpxfPctcoDGCFVU6dYbgBmGjvQa/ov9Hl7B3Q28i6+ # 9K2bRWCDLm05RXHIW2BeBSIXjla9AnE+THQa3dTmrKN4s3WP3+dx96k8sLt0DQQB # 5tT0ilnl3kW4Zhc/4NvDZoxam6Uo8U5EC5xwvXqgfZGRKNwhaAHJVRctDIXiD55c # 2kyZBlV5XdIxLsMHRkzu+ArrS5VTslelDsK7spCOJmLdJ56ylXE2sI82PWwh2/Hg # GjQkpqKib4WWmlVmWL7TYupsoHodXSjYGzbv6rz7jk8xWc1tJ5iRmLdK03BWv4KN # G1PkOwiKmZrZtbdY5vz74OhKcqKlijewQJLsUvm7spmr4MqrMn/yEyuAKwyKG3/E # 9KweB5q5KsO0KybCJ4ScMAUCIe5cc7AqSOk3XOKFu+gToccBUG8480UjFldM2Btm # t8O+dvGJC0OyzlHDUEL4JfT155Kk81/zuKuqCi8dPNVy7juSRm8qNFDD+/GRmrXD # RfcXRCY7HKHMHYLHltPxhKQ011NASgxpb8VPi8rD64rR4dZIUWiHibkp+BmzsK8M # 9qvUi+a0qNhUlkLL9cFqUgVl8kUOlNFperBsmdi/qncGNiBwK0U= # =sH6V # -----END PGP SIGNATURE----- # gpg: Signature made Sat 28 Dec 2024 06:54:15 EST # gpg: using RSA key 64AA2AB531D56903366BFEF982AA4A243B1E9478 # gpg: Good signature from "Michael Tokarev <[email protected]>" [unknown] # gpg: aka "Michael Tokarev <[email protected]>" [unknown] # gpg: aka "Michael Tokarev <[email protected]>" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 9D8B E14E 3F2A 9DD7 9199 28F1 61AD 3D98 ECDF 2C8E # Subkey fingerprint: 64AA 2AB5 31D5 6903 366B FEF9 82AA 4A24 3B1E 9478 * tag 'pull-trivial-patches' of https://gitlab.com/mjt0k/qemu: qmp: update vhost-user protocol feature maps contrib/plugins/bbv.c: Start bb index from 1 hw/riscv/riscv-iommu-sys.c: fix duplicated 'table_size' target/i386/cpu: Fix notes for CPU models docs: Replace 'since' -> 'removed in' in removed-features.rst docs: Correct release of TCG trace-events removal docs: Correct '-runas' and '-fsdev/-virtfs proxy' indentation vvfat: fix ubsan issue in create_long_filename hw/timer/hpet: Drop the unused macro hw/timer/hpet: Fix comment about capabilities register docs/devel: remove dead video link for sourcehut submit process Signed-off-by: Stefan Hajnoczi <[email protected]>
2 parents 18463a8 + 1e3d4d9 commit 2b7a80e

File tree

10 files changed

+29
-22
lines changed

10 files changed

+29
-22
lines changed

block/vvfat.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,10 @@ static direntry_t *create_long_filename(BDRVVVFATState *s, const char *filename)
426426
else if(offset<22) offset=14+offset-10;
427427
else offset=28+offset-22;
428428
entry=array_get(&(s->directory),s->directory.next-1-(i/26));
429+
/* ensure we don't write anything past entry->name */
430+
if (offset >= sizeof(entry->name)) {
431+
continue;
432+
}
429433
if (i >= 2 * length + 2) {
430434
entry->name[offset] = 0xff;
431435
} else if (i % 2 == 0) {

contrib/plugins/bbv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb)
109109
bb = g_new(Bb, 1);
110110
bb->vaddr = vaddr;
111111
bb->count = qemu_plugin_scoreboard_new(sizeof(uint64_t));
112-
bb->index = g_hash_table_size(bbs);
112+
bb->index = g_hash_table_size(bbs) + 1;
113113
g_hash_table_replace(bbs, &bb->vaddr, bb);
114114
}
115115
g_rw_lock_writer_unlock(&bbs_lock);

docs/about/deprecated.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ marked deprecated since 9.0, users have to ensure that all the topology members
7575
described with -smp are supported by the target machine.
7676

7777
``-runas`` (since 9.1)
78-
----------------------
78+
''''''''''''''''''''''
7979

8080
Use ``-run-with user=..`` instead.
8181

docs/about/removed-features.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,13 @@ Sound card devices should be created using ``-device`` or ``-audio``.
403403
The exception is ``pcspk`` which can be activated using ``-machine
404404
pcspk-audiodev=<name>``.
405405

406-
``-watchdog`` (since 7.2)
407-
'''''''''''''''''''''''''
406+
``-watchdog`` (removed in 7.2)
407+
''''''''''''''''''''''''''''''
408408

409409
Use ``-device`` instead.
410410

411-
Hexadecimal sizes with scaling multipliers (since 8.0)
412-
''''''''''''''''''''''''''''''''''''''''''''''''''''''
411+
Hexadecimal sizes with scaling multipliers (removed in 8.0)
412+
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
413413

414414
Input parameters that take a size value should only use a size suffix
415415
(such as 'k' or 'M') when the base is written in decimal, and not when
@@ -510,15 +510,15 @@ than zero.
510510

511511
Removed along with the ``compression`` migration capability.
512512

513-
``-device virtio-blk,scsi=on|off`` (since 9.1)
514-
''''''''''''''''''''''''''''''''''''''''''''''
513+
``-device virtio-blk,scsi=on|off`` (removed in 9.1)
514+
'''''''''''''''''''''''''''''''''''''''''''''''''''
515515

516516
The virtio-blk SCSI passthrough feature is a legacy VIRTIO feature. VIRTIO 1.0
517517
and later do not support it because the virtio-scsi device was introduced for
518518
full SCSI support. Use virtio-scsi instead when SCSI passthrough is required.
519519

520-
``-fsdev proxy`` and ``-virtfs proxy`` (since 9.2)
521-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
520+
``-fsdev proxy`` and ``-virtfs proxy`` (removed in 9.2)
521+
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
522522

523523
The 9p ``proxy`` filesystem backend driver was originally developed to
524524
enhance security by dispatching low level filesystem operations from 9p
@@ -532,8 +532,8 @@ security model option, or switch to ``virtiofs``. The virtiofs daemon
532532
``virtiofsd`` uses vhost to eliminate the high latency costs of the 9p
533533
``proxy`` backend.
534534

535-
``-portrait`` and ``-rotate`` (since 9.2)
536-
'''''''''''''''''''''''''''''''''''''''''
535+
``-portrait`` and ``-rotate`` (removed in 9.2)
536+
''''''''''''''''''''''''''''''''''''''''''''''
537537

538538
The ``-portrait`` and ``-rotate`` options were documented as only
539539
working with the PXA LCD device, and all the machine types using
@@ -1087,8 +1087,8 @@ processor IP (see `Intel discontinuance notification`_).
10871087
TCG introspection features
10881088
--------------------------
10891089

1090-
TCG trace-events (since 6.2)
1091-
''''''''''''''''''''''''''''
1090+
TCG trace-events (removed in 7.0)
1091+
'''''''''''''''''''''''''''''''''
10921092

10931093
The ability to add new TCG trace points had bit rotted and as the
10941094
feature can be replicated with TCG plugins it was removed. If

docs/devel/submitting-a-patch.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,7 @@ patches to the QEMU mailing list by following these steps:
252252
#. Send your patches to the QEMU mailing list using the web-based
253253
``git-send-email`` UI at https://git.sr.ht/~USERNAME/qemu/send-email
254254

255-
`This video
256-
<https://spacepub.space/videos/watch/ad258d23-0ac6-488c-83fc-2bacf578de3a>`__
257-
shows the web-based ``git-send-email`` workflow. Documentation is
258-
available `here
255+
Documentation for sourcehut is available `here
259256
<https://man.sr.ht/git.sr.ht/#sending-patches-upstream>`__.
260257

261258
.. _cc_the_relevant_maintainer:

hw/riscv/riscv-iommu-sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static void riscv_iommu_sysdev_init_msi(RISCVIOMMUStateSys *s,
121121
uint32_t n_vectors)
122122
{
123123
RISCVIOMMUState *iommu = &s->iommu;
124-
uint32_t table_size = table_size = n_vectors * PCI_MSIX_ENTRY_SIZE;
124+
uint32_t table_size = n_vectors * PCI_MSIX_ENTRY_SIZE;
125125
uint32_t table_offset = RISCV_IOMMU_REG_MSI_CONFIG;
126126
uint32_t pba_size = QEMU_ALIGN_UP(n_vectors, 64) / 8;
127127
uint32_t pba_offset = RISCV_IOMMU_REG_MSI_CONFIG + 256;

hw/timer/hpet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static void hpet_realize(DeviceState *dev, Error **errp)
736736
timer->state = s;
737737
}
738738

739-
/* 64-bit main counter; LegacyReplacementRoute. */
739+
/* 64-bit General Capabilities and ID Register; LegacyReplacementRoute. */
740740
s->capability = 0x8086a001ULL;
741741
s->capability |= (s->num_timers - 1) << HPET_ID_NUM_TIM_SHIFT;
742742
s->capability |= ((uint64_t)(HPET_CLK_PERIOD * FS_PER_NS) << 32);

hw/virtio/virtio-qmp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ static const qmp_virtio_feature_map_t vhost_user_protocol_map[] = {
121121
FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_STATUS, \
122122
"VHOST_USER_PROTOCOL_F_STATUS: Querying and notifying back-end "
123123
"device status supported"),
124+
FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_SHARED_OBJECT, \
125+
"VHOST_USER_PROTOCOL_F_SHARED_OBJECT: Backend shared object "
126+
"supported"),
127+
FEATURE_ENTRY(VHOST_USER_PROTOCOL_F_DEVICE_STATE, \
128+
"VHOST_USER_PROTOCOL_F_DEVICE_STATE: Backend device state transfer "
129+
"supported"),
124130
{ -1, "" }
125131
};
126132

include/hw/timer/hpet.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
#define HPET_TN_CFG_WRITE_MASK 0x7f4e
5959
#define HPET_TN_INT_ROUTE_SHIFT 9
6060
#define HPET_TN_INT_ROUTE_CAP_SHIFT 32
61-
#define HPET_TN_CFG_BITS_READONLY_OR_RESERVED 0xffff80b1U
6261

6362
struct hpet_fw_entry
6463
{

target/i386/cpu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3692,6 +3692,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
36923692
},
36933693
{
36943694
.version = 4,
3695+
.note = "IBRS, EPT switching, no TSX",
36953696
.props = (PropValue[]) {
36963697
{ "vmx-eptp-switching", "on" },
36973698
{ /* end of list */ }
@@ -3826,7 +3827,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
38263827
},
38273828
},
38283829
{ .version = 4,
3829-
.note = "ARCH_CAPABILITIES, no TSX",
3830+
.note = "ARCH_CAPABILITIES, EPT switching, no TSX",
38303831
.props = (PropValue[]) {
38313832
{ "vmx-eptp-switching", "on" },
38323833
{ /* end of list */ }

0 commit comments

Comments
 (0)