Re: [PATCH v6 11/11] qapi: Use QAPI_LIST_ADD() where possible

2020-10-27 Thread David Gibson
On Tue, Oct 27, 2020 at 12:05:56AM -0500, Eric Blake wrote: > Anywhere we create a list of just one item or by prepending items > (typically because order doesn't matter), we can use the now-public > macro. But places where we must keep the list in order by appending > remain open-coded. > > Sign

[Bug 1897194] Re: Test failure in test-crypto-secret.c

2020-10-27 Thread Toolybird
strace shows the problem: add_key("user", "qemu_test_secret", "Test Payload", 12, KEY_SPEC_PROCESS_KEYRING) = -1 EPERM (Operation not permitted) It appears systemd-nspawn containers don't have CAP_SYS_ADMIN which is apparently needed for the keyring stuff to work. Fair enough. But the underlying

Re: [PATCH 2/3] console: modify ppm_save to take a pixman image ref

2020-10-27 Thread Markus Armbruster
marcandre.lur...@redhat.com writes: > From: Marc-André Lureau > > The function is going to be called from a coroutine, and may yields. s/yields/yield/ > Let's ensure our image reference doesn't change over time (due to resize > etc) by keeping a ref. > > Signed-off-by: Marc-André Lureau Revie

Re: [PATCH 1/4] spapr: qemu_memalign() doesn't return NULL

2020-10-27 Thread Greg Kurz
On Tue, 27 Oct 2020 12:56:40 +1100 David Gibson wrote: > On Mon, Oct 26, 2020 at 03:46:47PM +0100, Greg Kurz wrote: > > On Mon, 26 Oct 2020 14:43:08 +0100 > > Philippe Mathieu-Daudé wrote: > > > > > On 10/26/20 1:40 PM, Greg Kurz wrote: > > > > qemu_memalign() aborts if OOM. Drop some dead code

[PULL 00/12] qemu-ga patch queue for soft-freeze

2020-10-27 Thread Michael Roth
The following changes since commit a46e72710566eea0f90f9c673a0f02da0064acce: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20201026' into staging (2020-10-26 14:50:03 +) are available in the Git repository at: git://github.com/mdroth/qemu.git tags/qga-pull-2020-10-27-tag for

[PULL 02/12] qga: Use common time encoding for guest-get-devices 'driver-date'

2020-10-27 Thread Michael Roth
From: Markus Armbruster guest-get-devices returns 'driver-date' as string in the format -MM-DD. Goes back to recent commit 2e4211cee4 "qga: add command guest-get-devices for reporting VirtIO devices". We should avoid use of multiple encodings for the same kind of data. Especially string enc

[PULL 10/12] qga: add *reset argument to ssh-add-authorized-keys

2020-10-27 Thread Michael Roth
From: Marc-André Lureau I prefer 'reset' over 'clear', since 'clear' and keys may have some other relations or meaning. Signed-off-by: Marc-André Lureau Signed-off-by: Michael Roth --- qga/commands-posix-ssh.c | 53 qga/qapi-schema.json | 3 ++- 2

[PULL 08/12] glib-compat: add g_unix_get_passwd_entry_qemu()

2020-10-27 Thread Michael Roth
From: Marc-André Lureau The glib function was introduced in 2.64. It's a safer version of getpwnam, and also simpler to use than getpwnam_r. Currently, it's only use by the next patch in qemu-ga, which doesn't (well well...) need the thread safety guarantees. Since the fallback version is still

[PULL 11/12] meson: minor simplification

2020-10-27 Thread Michael Roth
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Michael Roth --- qga/meson.build | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/qga/meson.build b/qga/meson.build index 6315bb357e..8340892139 100644 --- a/qga/meson.build +++ b/qga/meson.build @

[PULL 09/12] qga: add ssh-{add,remove}-authorized-keys

2020-10-27 Thread Michael Roth
From: Marc-André Lureau Add new commands to add and remove SSH public keys from ~/.ssh/authorized_keys. I took a different approach for testing, including the unit tests right with the code. I wanted to overwrite the function to get the user details, I couldn't easily do that over QMP. Furthermo

[PULL 12/12] qga: add ssh-get-authorized-keys

2020-10-27 Thread Michael Roth
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Michael Roth --- qga/commands-posix-ssh.c | 66 qga/meson.build | 11 +-- qga/qapi-schema.json | 31 +++ 3 files changed, 106 insertions(+), 2 delet

[PULL 01/12] qga: Rename guest-get-devices return member 'address' to 'id'

2020-10-27 Thread Michael Roth
From: Markus Armbruster Member 'address' is union GuestDeviceAddress with a single branch GuestDeviceAddressPCI, containing PCI vendor ID and device ID. This is not a PCI address. Type GuestPCIAddress is. Messed up in recent commit 2e4211cee4 "qga: add command guest-get-devices for reporting V

[PULL 04/12] qga: Flatten simple union GuestDeviceId

2020-10-27 Thread Michael Roth
From: Markus Armbruster Simple unions are simpler than flat unions in the schema, but more complicated in C and on the QMP wire: there's extra indirection in C and extra nesting on the wire, both pointless. They should be avoided in new code. GuestDeviceId was recently added for guest-get-devic

[PATCH] MAINTAINERS: update my email address

2020-10-27 Thread Michael Roth
I've recently switched employers and the current email address is out of date. Signed-off-by: Michael Roth --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ef6f5c7399..c72af7c2f5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PULL 03/12] qga-win: Fix guest-get-devices error API violations

2020-10-27 Thread Michael Roth
From: Markus Armbruster The Error ** argument must be NULL, &error_abort, &error_fatal, or a pointer to a variable containing NULL. Passing an argument of the latter kind twice without clearing it in between is wrong: if the first call sets an error, it no longer points to NULL for the second ca

[PULL 05/12] qga: add command guest-get-disks

2020-10-27 Thread Michael Roth
From: Tomáš Golembiovský Add API and stubs for new guest-get-disks command. The command guest-get-fsinfo can be used to list information about disks and partitions but it is limited only to mounted disks with filesystem. This new command should allow listing information about disks of the VM reg

[PULL 06/12] qga: add implementation of guest-get-disks for Linux

2020-10-27 Thread Michael Roth
From: Tomáš Golembiovský The command lists all disks (real and virtual) as well as disk partitions. For each disk the list of dependent disks is also listed and /dev path is used as a handle so it can be matched with "name" field of other returned disk entries. For disk partitions the "dependents

[PULL 07/12] qga: add implementation of guest-get-disks for Windows

2020-10-27 Thread Michael Roth
From: Tomáš Golembiovský The command lists all the physical disk drives. Unlike for Linux partitions and virtual volumes are not listed. Example output: { "return": [ { "name": ".\\PhysicalDrive0", "partition": false, "address": { "serial": "QM1",

Re: [PULL 00/12] qemu-ga patch queue for soft-freeze

2020-10-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20201027055317.351868-1-michael.r...@amd.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20201027055317.351868-1-michael.r...@amd.com Subject: [PULL 00/12] qemu-ga patch queue

Re: [PATCH 6/9] dev-serial: add always-plugged property to ensure USB device is always attached

2020-10-27 Thread Gerd Hoffmann
> case CHR_EVENT_OPENED: > -if (!s->dev.attached) { > +if (!s->always_plugged && !s->dev.attached) { > usb_device_attach(&s->dev, &error_abort); > } Not needed (but doesn't hurt either). > break; > case CHR_EVENT_CLOSED: > -if (s->d

[PATCH] virtiofsd: Fix the help message of posix lock

2020-10-27 Thread Jiachen Zhang
The commit 88fc107956a5812649e5918e0c092d3f78bb28ad disabled remote posix locks by default. But the --help message still says it is enabled by default. So fix it to output no_posix_lock. Signed-off-by: Jiachen Zhang --- tools/virtiofsd/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH 0/2] hw/intc/bcm283x: Trivial tracing cleanup

2020-10-27 Thread Philippe Mathieu-Daudé
On Mon, Oct 26, 2020 at 6:07 PM Philippe Mathieu-Daudé wrote: > > ping? Oops wrong series, these patches are already merged, sorry. > > On 10/17/20 8:07 PM, Philippe Mathieu-Daudé wrote: > > Add trace event for IRQ from CPU/GPU, > > use definitions for IRQ numbers. > > > > Philippe Mathieu-Daudé

Re: [PATCH 12/15] s390: remove bios_name

2020-10-27 Thread Cornelia Huck
On Mon, 26 Oct 2020 10:30:25 -0400 Paolo Bonzini wrote: > Cc: Thomas Huth > Signed-off-by: Paolo Bonzini > --- > hw/s390x/ipl.c | 8 ++-- > hw/s390x/s390-virtio-ccw.c | 3 ++- > 2 files changed, 4 insertions(+), 7 deletions(-) Reviewed-by: Cornelia Huck

Re: [PATCH 12/15] s390: remove bios_name

2020-10-27 Thread Christian Borntraeger
On 26.10.20 15:30, Paolo Bonzini wrote: > Cc: Thomas Huth > Signed-off-by: Paolo Bonzini > --- > hw/s390x/ipl.c | 8 ++-- > hw/s390x/s390-virtio-ccw.c | 3 ++- > 2 files changed, 4 insertions(+), 7 deletions(-) > > diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c > index 3d2652d7

Re: [PATCH 3/3] console: make QMP/HMP screendump run in coroutine

2020-10-27 Thread Markus Armbruster
marcandre.lur...@redhat.com writes: > From: Marc-André Lureau > > Thanks to the monitors coroutine support, the screendump handler can monitors' Suggest to add (merge commit b7092cda1b3) right before the comma. > trigger a graphic_hw_update(), yield and let the main loop run until > update is

Re: [PATCH] virtiofsd: Fix the help message of posix lock

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/27/20 9:15 AM, Jiachen Zhang wrote: > The commit 88fc107956a5812649e5918e0c092d3f78bb28ad disabled remote > posix locks by default. But the --help message still says it is enabled > by default. So fix it to output no_posix_lock. > > Signed-off-by: Jiachen Zhang Reviewed-by: Philippe Mathie

Re: [PATCH 4/4] spapr: Improve spapr_reallocate_hpt() error reporting

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 3:47 PM, Greg Kurz wrote: > On Mon, 26 Oct 2020 14:49:34 +0100 > Philippe Mathieu-Daudé wrote: > >> On 10/26/20 1:40 PM, Greg Kurz wrote: >>> spapr_reallocate_hpt() has three users, two of which pass &error_fatal >>> and the third one, htab_load(), passes &local_err, uses it to detect

Re: [PATCH v3 00/15] raspi: add the bcm2835 cprman clock manager

2020-10-27 Thread Philippe Mathieu-Daudé
Hi Peter, On 10/19/20 9:31 PM, Peter Maydell wrote: > On Mon, 19 Oct 2020 at 16:45, Peter Maydell wrote: >> >> On Sat, 10 Oct 2020 at 14:57, Luc Michel wrote: >>> >>> v2 -> v3: >>> - patch 03: moved clock_new definition to hw/core/clock.c [Phil] >>> - patch 03: commit message typo [Clement]

Re: [PATCH 2/9] dev-serial: use USB_SERIAL QOM macro for USBSerialState assignments

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 9:33 AM, Mark Cave-Ayland wrote: > Signed-off-by: Mark Cave-Ayland > --- > hw/usb/dev-serial.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PULL 00/13] 9p queue 2020-10-23

2020-10-27 Thread Dr. David Alan Gilbert
* Greg Kurz (gr...@kaod.org) wrote: > On Mon, 26 Oct 2020 13:48:37 +0100 > Christian Schoenebeck wrote: > > > On Montag, 26. Oktober 2020 11:33:42 CET Peter Maydell wrote: > > > On Fri, 23 Oct 2020 at 12:46, Christian Schoenebeck > > > > > > wrote: > > > > The following changes since commit >

Re: [PATCH 3/9] dev-serial: convert from DPRINTF to trace-events

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 9:33 AM, Mark Cave-Ayland wrote: > Signed-off-by: Mark Cave-Ayland > --- > hw/usb/dev-serial.c | 28 ++-- > hw/usb/trace-events | 8 > 2 files changed, 22 insertions(+), 14 deletions(-) > > diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c > ind

Re: [PATCH 4/9] dev-serial: add trace-events for baud rate and data parameters

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 9:33 AM, Mark Cave-Ayland wrote: > Signed-off-by: Mark Cave-Ayland > --- > hw/usb/dev-serial.c | 3 +++ > hw/usb/trace-events | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c > index abc316c7bf..badf8785db 100644 > --- a/hw/usb/dev

Re: [PATCH 5/9] dev-serial: replace DeviceOutVendor/DeviceInVendor with equivalent macros from usb.h

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 9:33 AM, Mark Cave-Ayland wrote: > The DeviceOutVendor and DeviceInVendor macros can be replaced with their > equivalent VendorDeviceOutRequest and VendorDeviceRequest macros from usb.h. > > Signed-off-by: Mark Cave-Ayland > --- > hw/usb/dev-serial.c | 25 ++--- >

Re: [PATCH v2 02/19] block/nvme: Set request_alignment at initialization

2020-10-27 Thread Stefan Hajnoczi
On Mon, Oct 26, 2020 at 11:54:47AM +0100, Philippe Mathieu-Daudé wrote: > When introducing this driver in commit bdd6a90a9e5 > ("block: Add VFIO based NVMe driver") we correctly > set the request_alignment in nvme_refresh_limits() > but forgot to set it at initialization. Do it now. This patch is

Re: [PATCH] arm/trace: Fix hex printing

2020-10-27 Thread Auger Eric
Hi Peter, On 10/19/20 9:26 PM, Peter Maydell wrote: > On Wed, 14 Oct 2020 at 20:36, Dr. David Alan Gilbert (git) > wrote: >> >> From: "Dr. David Alan Gilbert" >> >> Use of 0x%d - make up our mind as 0x%x >> >> Signed-off-by: Dr. David Alan Gilbert >> --- >> hw/arm/trace-events | 2 +- >> 1 fil

Re: [PULL 01/17] build: fix macOS --enable-modules build

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 2:51 PM, Paolo Bonzini wrote: > Apple's nm implementation includes empty lines in the output that are not > found in GNU binutils. This confuses scripts/undefsym.py, though it did > not confuse the scripts/undefsym.sh script that it replaced. To fix > this, ignore lines that do not ha

Re: [PATCH v2 03/19] block/nvme: Introduce device/iommu 'page_size_min' variables

2020-10-27 Thread Stefan Hajnoczi
On Mon, Oct 26, 2020 at 11:54:48AM +0100, Philippe Mathieu-Daudé wrote: > Introduce device/iommu 'page_size_min' variables to make > the code clearer. > > Signed-off-by: Philippe Mathieu-Daudé > --- > block/nvme.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/bloc

Re: [PATCH] sabre: use object_initialize_child() for iommu child object

2020-10-27 Thread Mark Cave-Ayland
On 25/10/2020 11:41, Philippe Mathieu-Daudé wrote: On 10/25/20 12:11 PM, Mark Cave-Ayland wrote: On 21/10/2020 12:43, Mark Cave-Ayland wrote: Store the child object directly within the sabre object rather than using link properties. Signed-off-by: Mark Cave-Ayland ---   hw/pci-host/sabre.c 

Re: [PATCH v2] CHANGELOG: remove disused file

2020-10-27 Thread Alex Bennée
John Snow writes: > There's no reason to keep this here; the versions described are > ancient. Everything here is still mirrored on > https://wiki.qemu.org/ChangeLog/old if anyone is curious; otherwise, use > the git history. > > Signed-off-by: John Snow Reviewed-by: Alex Bennée -- Alex Be

Re: [PATCH v2 04/19] block/nvme: Trace controller capabilities

2020-10-27 Thread Stefan Hajnoczi
On Mon, Oct 26, 2020 at 11:54:49AM +0100, Philippe Mathieu-Daudé wrote: > Controllers have different capabilities and report them in the > CAP register. We are particularly interested by the page size > limits. > > Signed-off-by: Philippe Mathieu-Daudé > --- > block/nvme.c | 10 ++

Re: [PATCH v2 14/19] util/vfio-helpers: Pass minimum page size to qemu_vfio_open_pci()

2020-10-27 Thread Stefan Hajnoczi
On Mon, Oct 26, 2020 at 11:54:59AM +0100, Philippe Mathieu-Daudé wrote: > @@ -737,6 +738,17 @@ static int nvme_init(BlockDriverState *bs, const char > *device, int namespace, > } > > device_page_size_min = 1u << (12 + NVME_CAP_MPSMIN(cap)); > +device_page_size_max = 1u << (12 + NVM

Re: [PATCH v2] CHANGELOG: remove disused file

2020-10-27 Thread Laurent Vivier
Le 26/10/2020 à 20:51, John Snow a écrit : > There's no reason to keep this here; the versions described are > ancient. Everything here is still mirrored on > https://wiki.qemu.org/ChangeLog/old if anyone is curious; otherwise, use > the git history. > > Signed-off-by: John Snow > --- > > V2: Ad

Re: [PATCH v2 18/19] block/nvme: Switch to using the MSIX API

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 9:32 PM, Auger Eric wrote: > Hi Philippe, > > On 10/26/20 11:55 AM, Philippe Mathieu-Daudé wrote: >> In preparation of using multiple IRQs, switch to using the recently >> introduced MSIX API. Instead of allocating and assigning IRQ in >> a single step, we now have to use two distinct

Re: [PATCH v2 00/19] util/vfio-helpers: Allow using multiple MSIX IRQs

2020-10-27 Thread Stefan Hajnoczi
On Mon, Oct 26, 2020 at 11:54:45AM +0100, Philippe Mathieu-Daudé wrote: > This series allow using multiple MSIX IRQs > We currently share a single IRQ between 2 NVMe queues > (ADMIN and I/O). This series still uses 1 shared IRQ > but prepare for using multiple ones. > > Since v1: > - Addressed Ste

[PULL 5/8] scripts: fix error from checkpatch.pl when no commits are found

2020-10-27 Thread Alex Bennée
From: Daniel P. Berrangé The error message was supposed to mention the input revision list start point, not the branch flag. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée Message-Id: <20201019143537.283094-3-berra...@redhat.com> Message-Id: <20201021163136.27324-6-alex.ben...@li

[PULL 1/8] Adding ani's email as an individual contributor

2020-10-27 Thread Alex Bennée
From: Ani Sinha Ani is an individual contributor into qemu project. Adding my email into the correct file to reflect so. Signed-off-by: Ani Sinha Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20201007161940.1478-1-...@anisinha.ca> Message-Id: <20201021163136.2732

[PULL 2/8] contrib/gitdm: Add more individual contributors

2020-10-27 Thread Alex Bennée
Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Acked-by: Subbaraya Sundeep Acked-by: Michael Rolnik Acked-by: Thomas Huth Acked-by: James Hogan Acked-by: Artyom Tarasenko Message-id: <20201004182506.2038515-1-f4...@amsat.org> Message-Id: <20201021163136.27324-3-alex.ben...@li

[PULL 0/8] testing and misc (gitdm, gitlab, docker, make)

2020-10-27 Thread Alex Bennée
The following changes since commit 1dc887329a10903940501b43e8c0cc67af7c06d5: Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sd-next-20201026' into staging (2020-10-26 17:19:26 +) are available in the Git repository at: https://github.com/stsquad/qemu.git tags/pull-testing-and-

[PULL 6/8] tests/acceptance: pick a random gdb port for reverse debugging

2020-10-27 Thread Alex Bennée
Currently the test randomly fails if you are using a shared machine due to contention on the well known port 1234. We can ameliorate this a bit by picking a random non-ephemeral port although it doesn't totally avoid the problem. While we could use a totally unique socket address for debugging it i

[PULL 7/8] gitlab-ci: Clone from GitLab itself

2020-10-27 Thread Alex Bennée
From: Philippe Mathieu-Daudé Let GitLab runners use GitLab repository directly. Suggested-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Message-Id: <20201022123302.2884788-1-phi...@redhat.com> Signed-off-by: Alex Bennée diff --git a/.gitlab-ci.yml b/.gitla

[PULL 3/8] tests/docker/dockerfiles/centos: Use SDL2 instead of SDL1

2020-10-27 Thread Alex Bennée
From: Thomas Huth We do not support SDL1 in QEMU anymore. Use SDL2 instead. Signed-off-by: Thomas Huth Signed-off-by: Alex Bennée Tested-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20201021072308.9224-1-th...@redhat.com> Messag

[PULL 4/8] gitlab: skip checkpatch.pl checks if no commit delta on branch

2020-10-27 Thread Alex Bennée
From: Daniel P. Berrangé If the current branch is synced to the current upstream git master, there are no commits that need checking. This causes checkpatch.pl to print an error that it found no commits. We need to avoid calling checkpatch.pl in this case. Signed-off-by: Daniel P. Berrangé Sign

[PULL 8/8] makefile: handle -n / -k / -q correctly

2020-10-27 Thread Alex Bennée
From: Paolo Bonzini Use $(findstring) instead of $(filter) to detect -n/-k as different versions of MAKE fill in $(MAKEFLAGS) differently. Do not bother running ninja at all if -nq is passed. Tested-by: Alex Bennée Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <202010261

Re: [PATCH] virtio-gpu: only compile virtio-gpu-3d.c for CONFIG_VIRGL=y

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/26/20 3:28 PM, Gerd Hoffmann wrote: > There is no actual code in the CONFIG_VIRGL=n case. So building is > (a) pointless and (b) makes macos ranlib complain. > > Reported-by: Paolo Bonzini > Signed-off-by: Gerd Hoffmann > --- > hw/display/virtio-gpu-3d.c | 4 > hw/display/meson.buil

Re: [PATCH v6 01/11] block: Simplify QAPI_LIST_ADD

2020-10-27 Thread Vladimir Sementsov-Ogievskiy
27.10.2020 08:05, Eric Blake wrote: There is no need to rely on the verbosity of the gcc/clang compiler extension of g_new(typeof(X), 1) when we can instead use the standard g_malloc(sizeof(X)). In general, we like g_new over g_malloc for returning type X rather than void* to let the compiler ca

Re: [PATCH] tests/vm: update openbsd to release 6.8

2020-10-27 Thread Philippe Mathieu-Daudé
On 10/27/20 6:30 AM, Brad Smith wrote: > tests/vm: update openbsd to release 6.8 > > A double dash at the end of a package name removes ambiguity > when the intent is to install a non-FLAVORed package. > > Signed-off-by: Brad Smith > Reviewed-by: Gerd Hoffmann > Tested-by: Gerd Hoffmann > Revi

Re: [PATCH v6 11/11] qapi: Use QAPI_LIST_ADD() where possible

2020-10-27 Thread Markus Armbruster
Eric Blake writes: > Anywhere we create a list of just one item or by prepending items > (typically because order doesn't matter), we can use the now-public > macro. But places where we must keep the list in order by appending > remain open-coded. Should we rename the macro to QAPI_LIST_PREPEND

Re: [PATCH v2 4/6] cfi: Initial support for cfi-icall in QEMU

2020-10-27 Thread Alex Bennée
Daniele Buono writes: > LLVM/Clang, supports runtime checks for forward-edge Control-Flow > Integrity (CFI). > > CFI on indirect function calls (cfi-icall) ensures that, in indirect > function calls, the function called is of the right signature for the > pointer type defined at compile time. >

[PULL 2/2] scripts/qmp: delete 'qmp' script

2020-10-27 Thread Markus Armbruster
From: John Snow This script has not seen a patch that was specifically for this script since it was moved to this location in 2013, and I doubt it is used. It uses "man qmp" for its help message, which does not exist. It also presumes there is a manual page for qmp-XXX, for each defined qmp comma

[PULL 0/2] QMP patches patches for 2020-10-27

2020-10-27 Thread Markus Armbruster
The following changes since commit 1dc887329a10903940501b43e8c0cc67af7c06d5: Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sd-next-20201026' into staging (2020-10-26 17:19:26 +) are available in the Git repository at: git://repo.or.cz/qemu/armbru.git tags/pull-qmp-2020-10-27

[PULL 1/2] qmp-shell: Sort by key when pretty-printing

2020-10-27 Thread Markus Armbruster
From: David Edmondson If the user selects pretty-printing (-p) the contents of any dictionaries in the output are sorted by key. Signed-off-by: David Edmondson Message-Id: <20201013141414.18398-1-david.edmond...@oracle.com> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Markus Armbruster

Re: [PULL 00/13] 9p queue 2020-10-23

2020-10-27 Thread Christian Schoenebeck
On Dienstag, 27. Oktober 2020 10:06:53 CET Dr. David Alan Gilbert wrote: > * Greg Kurz (gr...@kaod.org) wrote: > > On Mon, 26 Oct 2020 13:48:37 +0100 > > > > Christian Schoenebeck wrote: > > > On Montag, 26. Oktober 2020 11:33:42 CET Peter Maydell wrote: > > > > On Fri, 23 Oct 2020 at 12:46, Chri

[RFC PATCH v4 1/1] tests/vm: Add Haiku test based on their vagrant images

2020-10-27 Thread Philippe Mathieu-Daudé
From: Alexander von Gluck IV Signed-off-by: Alexander von Gluck IV [PMD: Avoid recreating the image each time] Signed-off-by: Philippe Mathieu-Daudé --- tests/keys/vagrant| 27 + tests/keys/vagrant.pub| 1 + tests/vm/Makefile.include | 3 +- tests/vm/basevm.py|

[RFC PATCH v4 0/1] tests/vm: Add Haiku VM

2020-10-27 Thread Philippe Mathieu-Daudé
Intent to not get Alexander's patch lost. Since v3: - Grammar fix (eblake) Since v2: - No change, posted as single patch Since v1: - Addressed Thomas Huth review comments Alexander von Gluck IV (1): tests/vm: Add Haiku test based on their vagrant images tests/keys/vagrant| 27 +

Re: [PATCH] tests/vm: update openbsd to release 6.8

2020-10-27 Thread Brad Smith
On Tue, Oct 27, 2020 at 11:05:20AM +0100, Philippe Mathieu-Daud?? wrote: > On 10/27/20 6:30 AM, Brad Smith wrote: > > tests/vm: update openbsd to release 6.8 > > > > A double dash at the end of a package name removes ambiguity > > when the intent is to install a non-FLAVORed package. > > > > Sign

Re: [PULL 0/2] bitmaps patches for 2020-10-26

2020-10-27 Thread Peter Maydell
On Mon, 26 Oct 2020 at 12:05, Eric Blake wrote: > > The following changes since commit 4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430: > > Merge remote-tracking branch > 'remotes/kraxel/tags/modules-20201022-pull-request' into staging (2020-10-22 > 12:33:21 +0100) > > are available in the Git reposi

Re: [PULL 00/13] 9p queue 2020-10-23

2020-10-27 Thread Dr. David Alan Gilbert
* Christian Schoenebeck (qemu_...@crudebyte.com) wrote: > On Dienstag, 27. Oktober 2020 10:06:53 CET Dr. David Alan Gilbert wrote: > > * Greg Kurz (gr...@kaod.org) wrote: > > > On Mon, 26 Oct 2020 13:48:37 +0100 > > > > > > Christian Schoenebeck wrote: > > > > On Montag, 26. Oktober 2020 11:33:42

[PATCH] hw/i386: -cpu model,-feature,+feature should enable feature

2020-10-27 Thread David Edmondson
"Minus" features are applied after "plus" features, so ensure that a later "plus" feature causes an earlier "minus" feature to be removed. This has no effect on the existing "-feature,feature=on" backward compatibility code (which warns and turns the feature off). Signed-off-by: David Edmondson

Re: [PATCH v6 04/11] nbd: Update qapi to support exporting multiple bitmaps

2020-10-27 Thread Vladimir Sementsov-Ogievskiy
27.10.2020 08:05, Eric Blake wrote: Since 'block-export-add' is new to 5.2, we can still tweak the interface; there, allowing 'bitmaps':['str'] is nicer than 'bitmap':'str'. This wires up the qapi and qemu-nbd changes to permit passing multiple bitmaps as distinct metadata contexts that the NBD

Re: [PATCH v6 06/11] nbd: Refactor counting of metadata contexts

2020-10-27 Thread Vladimir Sementsov-Ogievskiy
27.10.2020 08:05, Eric Blake wrote: Rather than open-code the count of negotiated contexts at several sites, embed it directly into the struct. This will make it easier for upcoming commits to support even more simultaneous contexts. Signed-off-by: Eric Blake Reviewed-by: Vladimir Sementsov-O

Re: [PATCH 1/3] coroutine: let CoQueue wake up outside a coroutine

2020-10-27 Thread Kevin Wolf
Am 10.10.2020 um 22:41 hat marcandre.lur...@redhat.com geschrieben: > From: Marc-André Lureau > > The assert() was added in commit b681a1c73e15 ("block: Repair the > throttling code."), when the qemu_co_queue_do_restart() function > required to be running in a coroutine. It was later made unnece

Re: [PATCH] arm/trace: Fix hex printing

2020-10-27 Thread Peter Maydell
On Tue, 27 Oct 2020 at 09:24, Auger Eric wrote: > > Hi Peter, > > On 10/19/20 9:26 PM, Peter Maydell wrote: > > Eric, do we want to use hex here, or should we go for > > decimal the way we do with (almost) all the other > > tracing of stream IDs (eg mmuv3_cmdq_cfgi_ste in the line before)? > > > >

Re: [PATCH] arm/trace: Fix hex printing

2020-10-27 Thread Auger Eric
Hi Peter, On 10/27/20 11:38 AM, Peter Maydell wrote: > OK; I'll apply this patch to target-arm.next; feel free to send > a patch updating the other tracepoints to hex. sure, I will. Thanks Eric

[PULL 00/30] nvme emulation patches for 5.2

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Hi Peter, The following changes since commit 1dc887329a10903940501b43e8c0cc67af7c06d5: Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sd-next-20201026' into staging (2020-10-26 17:19:26 +) are available in the Git repository at: git://git.infradead.org/qe

[PULL 02/30] pci: pass along the return value of dma_memory_rw

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Some devices might want to know the return value of dma_memory_rw, so pass it along instead of ignoring it. There are no existing users of the return value, so this patch should be safe. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Michael S.

[PULL 03/30] hw/block/nvme: handle dma errors

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Handling DMA errors gracefully is required for the device to pass the block/011 test ("disable PCI device while doing I/O") in the blktests suite. With this patch the device sets the Controller Fatal Status bit in the CSTS register when failing to read from a submission queue

[PULL 05/30] hw/block/nvme: alignment style fixes

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Style fixes. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Keith Busch --- hw/block/nvme.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 0ac9d856632e..d

[PULL 04/30] hw/block/nvme: commonize nvme_rw error handling

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Move common error handling to a label. Signed-off-by: Klaus Jensen Reviewed-by: Keith Busch --- hw/block/nvme.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 7d328c08b894..0ac9d856632e 100644 ---

[PULL 01/30] hw/block/nvme: fix typo in trace event

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Fix a typo in the sq doorbell trace event. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Keith Busch --- hw/block/trace-events | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/trace-events b/hw/block/trace-events i

[PULL 06/30] hw/block/nvme: add a lba to bytes helper

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Add the nvme_l2b helper and use it for converting NLB and SLBA to byte counts and offsets. Signed-off-by: Klaus Jensen Reviewed-by: Keith Busch --- hw/block/nvme.h | 6 ++ hw/block/nvme.c | 12 2 files changed, 10 insertions(+), 8 deletions(-) diff --git

[PULL 12/30] hw/block/nvme: add support for scatter gather lists

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen For now, support the Data Block, Segment and Last Segment descriptor types. See NVM Express 1.3d, Section 4.4 ("Scatter Gather List (SGL)"). Signed-off-by: Klaus Jensen Reviewed-by: Keith Busch --- include/block/nvme.h | 6 +- hw/block/nvme.c | 329 +++

[PULL 07/30] hw/block/nvme: fix endian conversion

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen The raw NLB field is a 16 bit value, so use le16_to_cpu instead of le32_to_cpu and cast to uint32_t before incrementing the value to not wrap around. Signed-off-by: Klaus Jensen Reviewed-by: Keith Busch Reviewed-by: Philippe Mathieu-Daudé --- hw/block/nvme.c | 4 ++-- 1 fi

[PULL 09/30] hw/block/nvme: refactor aio submission

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen This pulls block layer aio submission/completion to common functions. For completions, additionally map an AIO error to the Unrecovered Read and Write Fault status codes. Signed-off-by: Klaus Jensen Reviewed-by: Keith Busch --- hw/block/nvme.h | 14 + hw/block/n

[PULL 08/30] hw/block/nvme: add symbolic command name to trace events

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Add the symbolic command name to the pci_nvme_{io,admin}_cmd and pci_nvme_rw trace events. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Keith Busch --- hw/block/nvme.h | 28 hw/block/nvme.c | 8 +

[PULL 17/30] hw/block/nvme: change controller pci id

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen There are two reasons for changing this: 1. The nvme device currently uses an internal Intel device id. 2. Since commits "nvme: fix write zeroes offset and count" and "nvme: support multiple namespaces" the controller device no longer has the quirks that the Lin

[PULL 10/30] hw/block/nvme: default request status to success

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Make the default request status NVME_SUCCESS so only error status codes have to be set. Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Keith Busch --- hw/block/nvme.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/bl

[PULL 15/30] hw/block/nvme: support multiple namespaces

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen This adds support for multiple namespaces by introducing a new 'nvme-ns' device model. The nvme device creates a bus named from the device name ('id'). The nvme-ns devices then connect to this and registers themselves with the nvme device. This changes how an nvme device is cr

[PULL 14/30] hw/block/nvme: refactor identify active namespace id list

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Prepare to support inactive namespaces. Signed-off-by: Klaus Jensen Reviewed-by: Maxim Levitsky Reviewed-by: Keith Busch --- hw/block/nvme.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 4f08f55a76a0..92

[PULL 19/30] hw/block/nvme: remove pointless rw indirection

2020-10-27 Thread Klaus Jensen
From: Keith Busch The code switches on the opcode to invoke a function specific to that opcode. There's no point in consolidating back to a common function that just switches on that same opcode without any actual common code. Restore the opcode specific behavior without going back through anothe

[PULL 25/30] hw/block/nvme: add nsid to get/setfeat trace events

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Include the namespace id in the pci_nvme_{get,set}feat trace events. Signed-off-by: Klaus Jensen Signed-off-by: Keith Busch --- hw/block/nvme.c | 4 ++-- hw/block/trace-events | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/block/nvme.c b/h

[PULL 11/30] hw/block/nvme: harden cmb access

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen Since the controller has only supported PRPs so far it has not been required to check the ending address (addr + len - 1) of the CMB access for validity since it has been guaranteed to be in range of the CMB. This changes when the controller adds support for SGLs (next patch),

[PULL 18/30] hw/block/nvme: update nsid when registered

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen If the user does not specify an nsid parameter on the nvme-ns device, nvme_register_namespace will find the first free namespace id and assign that. This fix makes sure the assigned id is saved. Signed-off-by: Klaus Jensen Reviewed-by: Dmitry Fomichev --- hw/block/nvme.c |

[PULL 23/30] hw/block/nvme: support for admin-only command set

2020-10-27 Thread Klaus Jensen
From: Keith Busch Signed-off-by: Keith Busch Signed-off-by: Klaus Jensen --- include/block/nvme.h | 3 ++- hw/block/nvme.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/block/nvme.h b/include/block/nvme.h index bc20a2ba5e87..521533fd2a10 100644 --- a/include

[PULL 13/30] hw/block/nvme: add support for sgl bit bucket descriptor

2020-10-27 Thread Klaus Jensen
From: Gollu Appalanaidu This adds support for SGL descriptor type 0x1 (bit bucket descriptor). See the NVM Express v1.3d specification, Section 4.4 ("Scatter Gather List (SGL)"). Signed-off-by: Gollu Appalanaidu Signed-off-by: Klaus Jensen Reviewed-by: Keith Busch --- hw/block/nvme.c | 33 ++

[PULL 24/30] hw/block/nvme: reject io commands if only admin command set selected

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen If the host sets CC.CSS to 111b, all commands submitted to I/O queues should be completed with status Invalid Command Opcode. Note that this is technically a v1.4 feature, but it does not hurt to implement before we finally bump the reported version implemented. Reviewed-by:

[PULL 22/30] hw/block/nvme: validate command set selected

2020-10-27 Thread Klaus Jensen
From: Keith Busch Fail to start the controller if the user requests a command set that the controller does not support. Signed-off-by: Keith Busch Signed-off-by: Klaus Jensen --- include/block/nvme.h | 4 hw/block/nvme.c | 6 +- hw/block/trace-events | 1 + 3 files changed, 10

[PULL 29/30] hw/block/nvme: fix create IO SQ/CQ status codes

2020-10-27 Thread Klaus Jensen
From: Gollu Appalanaidu Replace the Invalid Field in Command with the Invalid PRP Offset status code in the nvme_create_{cq,sq} functions. Also, allow PRP1 to be address 0x0. Also replace the Completion Queue Invalid status code returned in nvme_create_cq when the the queue identifier is invalid

[PULL 28/30] hw/block/nvme: fix prp mapping status codes

2020-10-27 Thread Klaus Jensen
From: Gollu Appalanaidu Address 0 is not an invalid address. Remove those invalikd checks. Unaligned PRP2 and PRP list entries should result in Invalid PRP Offset status code and not Invalid Field. Fix that. See NVMe Express v1.3d, Section 4.3 ("Physical Region Page Entry and List"). Suggested

[PULL 16/30] pci: allocate pci id for nvme

2020-10-27 Thread Klaus Jensen
From: Klaus Jensen The emulated nvme device (hw/block/nvme.c) is currently using an internal Intel device id. Prepare to change that by allocating a device id under the 1b36 (Red Hat, Inc.) vendor id. Signed-off-by: Klaus Jensen Acked-by: Gerd Hoffmann Reviewed-by: Maxim Levitsky Reviewed-by

[PULL 20/30] hw/block/nvme: fix log page offset check

2020-10-27 Thread Klaus Jensen
From: Keith Busch Return error if the requested offset starts after the size of the log being returned. Also, move the check for earlier in the function so we're not doing unnecessary calculations. Reviewed-by: Philippe Mathieu-Daudé Reviewed- by: Dmitry Fomichev Signed-off-by: Keith Busch Si

  1   2   3   4   5   6   >