Skip to content

Commit

Permalink
Merge tag 'trivial-branch-for-7.2-pull-request' of https://gitlab.com…
Browse files Browse the repository at this point in the history
…/laurent_vivier/qemu into staging

Pull request trivial branch 20221103

# -----BEGIN PGP SIGNATURE-----
#
# iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmNj6X8SHGxhdXJlbnRA
# dml2aWVyLmV1AAoJEPMMOL0/L748wXUP/2PRfmQ7e18S5e0rwa5/R2aPbdseGILP
# uiC8Wu3cVsNywWcRJubNEGtJpsJi0nAgGHkFSNyA1yyZGBAVUyUtAp9Y46Hui0/V
# KS4nVNLBPAAsNT+EPTn/Yht4gch/VKrkr0pgLOjATkPekwkscrQXYIJYhLPz1Nak
# 2SDAwakIkOXAB17i23uWIVLPrSMTkQP1Un3MnlyKdzL1AUUc+d76UEyCCEh0ZTCc
# QwXLf/5R0CUY3+vgls/gObkYCq2XNcEn4ctYLccQwg5G4n2iBAy4UtwBLl3jZczY
# OU2IMDvNB38VrlrBpv/mnw8vcm0v1DcaUY+Wv+Gr06DEht+D5L3Z3Z5eeb2HyaUO
# mbBKiJ500D6BYkV8N4nZKtrwhx9o6U/j5IcPyKc8h+M5GoMrmNYfKM5BYgp5QmNi
# d7Ao99FvUsYiIPLC9g4YDPDFOOYq9RzE27lp/OA5PcjAThbkwnMGuxhDuAdNYFLi
# RVlgtQihyyKpi9oOEfPZSq2bZrWGP7MgUbkJLMgx/ZfWiqTo/NiDlRpJrQthmHG/
# rtU4mFnPYiS2esBkoXgSeCMglReHRufYxZboalC0RNpl30z0eHykM1DY2G7GtZxV
# upB9rvLN31W10Rie7idHXZc4qqN50I/uWShhlB41CJTJeJ1tMWsJrsiOl8eVWic+
# 0Y/awy7XlEx9
# =Sppm
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 03 Nov 2022 12:17:03 EDT
# gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
# gpg:                issuer "laurent@vivier.eu"
# gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
# gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
# gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
# Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C

* tag 'trivial-branch-for-7.2-pull-request' of https://gitlab.com/laurent_vivier/qemu:
  tests/unit: simpler variable sequence for test-io-channel
  target/tricore: Rename csfr.def -> csfr.h.inc
  target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc
  target/m68k: Rename qregs.def -> qregs.h.inc
  libvhost-user: Add format attribute to local function vu_panic
  libvhost-user: Fix format strings
  libvhost-user: Fix wrong type of argument to formatting function (reported by LGTM)
  xen/pt: fix syntax error that causes FTBFS in some configurations
  Fix some typos in documentation and comments
  qapi: virtio: Fix the introduced version

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  • Loading branch information
stefanhaRH committed Nov 4, 2022
2 parents ece5f83 + 489db95 commit 9e42d2a
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 55 deletions.
2 changes: 1 addition & 1 deletion docs/devel/testing.rst
Expand Up @@ -99,7 +99,7 @@ successfully on various hosts. The following list shows some best practices:
* If your test cases uses the blkdebug feature, use relative path to pass
the config and image file paths in the command line as Windows absolute
path contains the delimiter ":" which will confuse the blkdebug parser.
* Use double quotes in your extra QEMU commmand line in your test cases
* Use double quotes in your extra QEMU command line in your test cases
instead of single quotes, as Windows does not drop single quotes when
passing the command line to QEMU.
* Windows opens a file in text mode by default, while a POSIX compliant
Expand Down
2 changes: 1 addition & 1 deletion docs/system/arm/cpu-features.rst
Expand Up @@ -433,7 +433,7 @@ additional constraints on the set of vector lengths supported by SME.
SME User-mode Default Vector Length Property
--------------------------------------------

For qemu-aarch64, the cpu propery ``sme-default-vector-length=N`` is
For qemu-aarch64, the cpu property ``sme-default-vector-length=N`` is
defined to mirror the Linux kernel parameter file
``/proc/sys/abi/sme_default_vector_length``. The default length, ``N``,
is in units of bytes and must be between 16 and 8192.
Expand Down
2 changes: 1 addition & 1 deletion docs/system/loongarch/loongson3.rst
Expand Up @@ -41,7 +41,7 @@ can be accessed by following steps.
$ qemu-system-loongarch64 -machine virt -m 4G -cpu la464-loongarch-cpu \
-smp 1 -bios QEMU_EFI.fd -kernel vmlinuz.efi -initrd initrd.img \
-append "root=/dev/ram rdinit=/sbin/init consol e=ttyS0,115200" \
-append "root=/dev/ram rdinit=/sbin/init console=ttyS0,115200" \
--nographic
Note: The running speed may be a little slow, as the performance of our
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/virtiofsd.rst
Expand Up @@ -232,7 +232,7 @@ e.g.:

``:ok:server::security.:``

will pass 'securty.' xattr's in listxattr from the server
will pass 'security.' xattr's in listxattr from the server
and ignore following rules.

``:ok:all:::``
Expand Down
2 changes: 1 addition & 1 deletion hw/xen/meson.build
Expand Up @@ -18,7 +18,7 @@ if have_xen_pci_passthrough
'xen_pt_msi.c',
))
else
xen_specific_ss.add('xen_pt_stub.c')
xen_specific_ss.add(files('xen_pt_stub.c'))
endif

specific_ss.add_all(when: ['CONFIG_XEN', xen], if_true: xen_specific_ss)
2 changes: 1 addition & 1 deletion include/exec/memory.h
Expand Up @@ -1970,7 +1970,7 @@ void memory_region_clear_dirty_bitmap(MemoryRegion *mr, hwaddr start,
* querying the same page multiple times, which is especially useful for
* display updates where the scanlines often are not page aligned.
*
* The dirty bitmap region which gets copyed into the snapshot (and
* The dirty bitmap region which gets copied into the snapshot (and
* cleared afterwards) can be larger than requested. The boundaries
* are rounded up/down so complete bitmap longs (covering 64 pages on
* 64bit hosts) can be copied over into the bitmap snapshot. Which
Expand Down
2 changes: 1 addition & 1 deletion qapi/qom.json
Expand Up @@ -589,7 +589,7 @@
#
# @size: size of the memory region in bytes
#
# @x-use-canonical-path-for-ramblock-id: if true, the canoncial path is used
# @x-use-canonical-path-for-ramblock-id: if true, the canonical path is used
# for ramblock-id. Disable this for 4.0
# machine types or older to allow
# migration with newer QEMU versions.
Expand Down
34 changes: 17 additions & 17 deletions qapi/virtio.json
Expand Up @@ -15,7 +15,7 @@
#
# @name: Name of the VirtIODevice
#
# Since: 7.1
# Since: 7.2
#
##
{ 'struct': 'VirtioInfo',
Expand All @@ -32,7 +32,7 @@
#
# Returns: List of gathered VirtIODevices
#
# Since: 7.1
# Since: 7.2
#
# Example:
#
Expand Down Expand Up @@ -97,7 +97,7 @@
#
# @log-size: vhost_dev log_size
#
# Since: 7.1
# Since: 7.2
#
##

Expand Down Expand Up @@ -167,7 +167,7 @@
# Present if the given VirtIODevice has an active vhost
# device.
#
# Since: 7.1
# Since: 7.2
#
##

Expand Down Expand Up @@ -206,7 +206,7 @@
#
# Returns: VirtioStatus of the virtio device
#
# Since: 7.1
# Since: 7.2
#
# Examples:
#
Expand Down Expand Up @@ -452,7 +452,7 @@
#
# @unknown-statuses: Virtio device statuses bitmap that have not been decoded
#
# Since: 7.1
# Since: 7.2
##

{ 'struct': 'VirtioDeviceStatus',
Expand All @@ -471,7 +471,7 @@
# @unknown-protocols: Vhost user device protocol features bitmap that
# have not been decoded
#
# Since: 7.1
# Since: 7.2
##

{ 'struct': 'VhostDeviceProtocols',
Expand All @@ -492,7 +492,7 @@
# @unknown-dev-features: Virtio device features bitmap that have not
# been decoded
#
# Since: 7.1
# Since: 7.2
##

{ 'struct': 'VirtioDeviceFeatures',
Expand Down Expand Up @@ -535,7 +535,7 @@
#
# @signalled-used-valid: VirtQueue signalled_used_valid flag
#
# Since: 7.1
# Since: 7.2
#
##

Expand Down Expand Up @@ -576,7 +576,7 @@
# shadow_avail_idx will not be displayed in the case where
# the selected VirtIODevice has a running vhost device.
#
# Since: 7.1
# Since: 7.2
#
# Examples:
#
Expand Down Expand Up @@ -666,7 +666,7 @@
#
# @used-size: vhost_virtqueue used_size
#
# Since: 7.1
# Since: 7.2
#
##

Expand Down Expand Up @@ -699,7 +699,7 @@
#
# Returns: VirtVhostQueueStatus of the vhost_virtqueue
#
# Since: 7.1
# Since: 7.2
#
# Examples:
#
Expand Down Expand Up @@ -767,7 +767,7 @@
#
# @flags: List of descriptor flags
#
# Since: 7.1
# Since: 7.2
#
##

Expand All @@ -787,7 +787,7 @@
#
# @ring: VRingAvail ring[] entry at provided index
#
# Since: 7.1
# Since: 7.2
#
##

Expand All @@ -805,7 +805,7 @@
#
# @idx: VRingUsed index
#
# Since: 7.1
# Since: 7.2
#
##

Expand All @@ -829,7 +829,7 @@
#
# @used: VRingUsed info
#
# Since: 7.1
# Since: 7.2
#
##

Expand Down Expand Up @@ -857,7 +857,7 @@
#
# Returns: VirtioQueueElement information
#
# Since: 7.1
# Since: 7.2
#
# Examples:
#
Expand Down
10 changes: 5 additions & 5 deletions qemu-options.hx
Expand Up @@ -1051,7 +1051,7 @@ SRST
details on the external interface.

``-device isa-ipmi-kcs,bmc=id[,ioport=val][,irq=val]``
Add a KCS IPMI interafce on the ISA bus. This also adds a
Add a KCS IPMI interface on the ISA bus. This also adds a
corresponding ACPI and SMBIOS entries, if appropriate.

``bmc=id``
Expand All @@ -1071,7 +1071,7 @@ SRST
is 0xe4 and the default interrupt is 5.

``-device pci-ipmi-kcs,bmc=id``
Add a KCS IPMI interafce on the PCI bus.
Add a KCS IPMI interface on the PCI bus.

``bmc=id``
The BMC to connect to, one of ipmi-bmc-sim or ipmi-bmc-extern above.
Expand Down Expand Up @@ -5283,8 +5283,8 @@ SRST
read the colo-compare git log.

``-object cryptodev-backend-builtin,id=id[,queues=queues]``
Creates a cryptodev backend which executes crypto opreation from
the QEMU cipher APIS. The id parameter is a unique ID that will
Creates a cryptodev backend which executes crypto operations from
the QEMU cipher APIs. The id parameter is a unique ID that will
be used to reference this cryptodev backend from the
``virtio-crypto`` device. The queues parameter is optional,
which specify the queue number of cryptodev backend, the default
Expand Down Expand Up @@ -5551,7 +5551,7 @@ SRST
file=/etc/qemu/vnc.allow

Finally the ``/etc/qemu/vnc.allow`` file would contain the list
of x509 distingished names that are permitted access
of x509 distinguished names that are permitted access

::

Expand Down
2 changes: 1 addition & 1 deletion qga/qapi-schema.json
Expand Up @@ -392,7 +392,7 @@
##
# @guest-file-flush:
#
# Write file changes bufferred in userspace to disk/kernel buffers
# Write file changes buffered in userspace to disk/kernel buffers
#
# @handle: filehandle returned by guest-file-open
#
Expand Down
19 changes: 15 additions & 4 deletions subprojects/libvhost-user/libvhost-user.c
Expand Up @@ -45,6 +45,17 @@
#include "libvhost-user.h"

/* usually provided by GLib */
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
#if !defined(__clang__) && (__GNUC__ == 4 && __GNUC_MINOR__ == 4)
#define G_GNUC_PRINTF(format_idx, arg_idx) \
__attribute__((__format__(gnu_printf, format_idx, arg_idx)))
#else
#define G_GNUC_PRINTF(format_idx, arg_idx) \
__attribute__((__format__(__printf__, format_idx, arg_idx)))
#endif
#else /* !__GNUC__ */
#define G_GNUC_PRINTF(format_idx, arg_idx)
#endif /* !__GNUC__ */
#ifndef MIN
#define MIN(x, y) ({ \
typeof(x) _min1 = (x); \
Expand Down Expand Up @@ -151,7 +162,7 @@ vu_request_to_string(unsigned int req)
}
}

static void
static void G_GNUC_PRINTF(2, 3)
vu_panic(VuDev *dev, const char *msg, ...)
{
char *buf = NULL;
Expand Down Expand Up @@ -651,7 +662,7 @@ generate_faults(VuDev *dev) {

if (ioctl(dev->postcopy_ufd, UFFDIO_REGISTER, &reg_struct)) {
vu_panic(dev, "%s: Failed to userfault region %d "
"@%p + size:%zx offset: %zx: (ufd=%d)%s\n",
"@%" PRIx64 " + size:%zx offset: %zx: (ufd=%d)%s\n",
__func__, i,
dev_region->mmap_addr,
dev_region->size, dev_region->mmap_offset,
Expand Down Expand Up @@ -700,7 +711,7 @@ vu_add_mem_reg(VuDev *dev, VhostUserMsg *vmsg) {
if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
close(vmsg->fds[0]);
vu_panic(dev, "VHOST_USER_ADD_MEM_REG requires a message size of at "
"least %d bytes and only %d bytes were received",
"least %zu bytes and only %d bytes were received",
VHOST_USER_MEM_REG_SIZE, vmsg->size);
return false;
}
Expand Down Expand Up @@ -826,7 +837,7 @@ vu_rem_mem_reg(VuDev *dev, VhostUserMsg *vmsg) {
if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
vmsg_close_fds(vmsg);
vu_panic(dev, "VHOST_USER_REM_MEM_REG requires a message size of at "
"least %d bytes and only %d bytes were received",
"least %zu bytes and only %d bytes were received",
VHOST_USER_MEM_REG_SIZE, vmsg->size);
return false;
}
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions target/m68k/translate.c
Expand Up @@ -39,7 +39,7 @@

#define DEFO32(name, offset) static TCGv QREG_##name;
#define DEFO64(name, offset) static TCGv_i64 QREG_##name;
#include "qregs.def"
#include "qregs.h.inc"
#undef DEFO32
#undef DEFO64

Expand Down Expand Up @@ -75,7 +75,7 @@ void m68k_tcg_init(void)
#define DEFO64(name, offset) \
QREG_##name = tcg_global_mem_new_i64(cpu_env, \
offsetof(CPUM68KState, offset), #name);
#include "qregs.def"
#include "qregs.h.inc"
#undef DEFO32
#undef DEFO64

Expand Down
Expand Up @@ -8,7 +8,7 @@
*
* OPC = (op << 8) | op2 where op is the major, op2 the minor opcode
* NAME = name of the opcode, used internally
* FMT = format of the opcode (defined in insn-format.def)
* FMT = format of the opcode (defined in insn-format.h.inc)
* FAC = facility the opcode is available in (defined in DisasFacility)
* I1 = func in1_xx fills o->in1
* I2 = func in2_xx fills o->in2
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions target/s390x/tcg/translate.c
Expand Up @@ -1011,7 +1011,7 @@ static void free_compare(DisasCompare *c)
#define F6(N, X1, X2, X3, X4, X5, X6) F0(N)

typedef enum {
#include "insn-format.def"
#include "insn-format.h.inc"
} DisasFormat;

#undef F0
Expand Down Expand Up @@ -1076,7 +1076,7 @@ typedef struct DisasFormatInfo {
#define F6(N, X1, X2, X3, X4, X5, X6) { { X1, X2, X3, X4, X5, X6 } },

static const DisasFormatInfo format_info[] = {
#include "insn-format.def"
#include "insn-format.h.inc"
};

#undef F0
Expand Down Expand Up @@ -6143,7 +6143,7 @@ static void in2_insn(DisasContext *s, DisasOps *o)
#define E(OPC, NM, FT, FC, I1, I2, P, W, OP, CC, D, FL) insn_ ## NM,

enum DisasInsnEnum {
#include "insn-data.def"
#include "insn-data.h.inc"
};

#undef E
Expand Down Expand Up @@ -6223,7 +6223,7 @@ enum DisasInsnEnum {
#define FAC_MIE3 S390_FEAT_MISC_INSTRUCTION_EXT3 /* miscellaneous-instruction-extensions facility 3 */

static const DisasInsn insn_info[] = {
#include "insn-data.def"
#include "insn-data.h.inc"
};

#undef E
Expand All @@ -6233,7 +6233,7 @@ static const DisasInsn insn_info[] = {
static const DisasInsn *lookup_opc(uint16_t opc)
{
switch (opc) {
#include "insn-data.def"
#include "insn-data.h.inc"
default:
return NULL;
}
Expand Down
File renamed without changes.

0 comments on commit 9e42d2a

Please sign in to comment.