Re: [PATCH v2 8/8] target/ppc: replaced the TODO with LOG_UNIMP and add break for silence warnings

2020-10-30 Thread Philippe Mathieu-Daudé
On 10/30/20 1:40 AM, Chen Qun wrote: > When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: > target/ppc/mmu_helper.c: In function ‘dump_mmu’: > target/ppc/mmu_helper.c:1351:12: warning: this statement may fall through > [-Wimplicit-fallthrough=] > 1351 | if

Re: [PATCH v7 0/3] hw/block/nvme: dulbe and dsm support

2020-10-30 Thread Klaus Jensen
On Oct 27 18:57, Klaus Jensen wrote: > From: Klaus Jensen > > This adds support for the Deallocated or Unwritten Logical Block error > recovery feature as well as the Dataset Management command. > > v7: > - Handle negative return value from bdrv_block_status. > - bdrv_get_info may not be

Re: [PATCH 09/36] qdev: Make qdev_get_prop_ptr() get Object* arg

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 11:29 AM Marc-André Lureau < marcandre.lur...@gmail.com> wrote: > > > On Fri, Oct 30, 2020 at 2:07 AM Eduardo Habkost > wrote: > >> Make the code more generic and not specific to TYPE_DEVICE. >> >> Signed-off-by: Eduardo Habkost >> > > Nice cleanup!, but fails to build

Re: [PATCH 05/36] sparc: Check dev->realized at sparc_set_nwindows()

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:07 AM Eduardo Habkost wrote: > sparc_set_nwindows() is one of the very few property setters that > don't check dev->realized, and there's no reason for it to be > special. Check dev->realized like the other setters. > > Signed-off-by: Eduardo Habkost > Reviewed-by:

Re: [PATCH 10/36] qdev: Make qdev_find_global_prop() get Object* argument

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:09 AM Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau -- Marc-André Lureau

RE: ENQCMD

2020-10-30 Thread Tian, Kevin
> From: Stefan Hajnoczi > Sent: Friday, October 30, 2020 3:51 PM > > Hi, > The "Scalable Work Submission in Device Virtualization" talk at KVM > Forum 2020 was interesting and I have some beginner questions about > ENQCMD: > https://static.sched.com/hosted_files/kvmforum2020/22/Scalable_Work_Su

[PATCH 2/2] tests/9pfs: fix coverity error in create_local_test_dir()

2020-10-30 Thread Christian Schoenebeck
Coverity wants the return value of mkdir() to be checked, so let's pretend to do that. We're actually just making a dummy check and ignore the result, because we actually only care if the required directory exists and we have an existence check for that in place already. Reported-by: Greg Kurz

Re: [PATCH 05/24] vhost-user: Register "chardev" as class property

2020-10-30 Thread Michael S. Tsirkin
On Mon, Sep 21, 2020 at 06:10:26PM -0400, Eduardo Habkost wrote: > Class properties make QOM introspection simpler and easier, as > they don't require an object to be instantiated. > > Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin > --- > Cc: "Michael S. Tsirkin" > Cc:

Re: [PATCH v2 0/7] virtiofsd: Announce submounts to the guest

2020-10-30 Thread Stefan Hajnoczi
On Thu, Oct 29, 2020 at 06:17:37PM +0100, Max Reitz wrote: > RFC: https://www.redhat.com/archives/virtio-fs/2020-May/msg00024.html > v1: https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03598.html > > Branch: https://github.com/XanClic/qemu.git virtiofs-submounts-v3 > Branch:

Re: Live migration not possible from 5.0 to 5.1?

2020-10-30 Thread Daniel P . Berrangé
On Fri, Oct 30, 2020 at 12:02:18PM +0800, Antti Antinoja wrote: > Hi All, > > I couldn't find any mention about live migration incompatibility between 5.0 > and 5.1 in the release notes but at least on our AMD based platform live > migration from 5.0 to 5.1 is not possible. > > The upgraded

Re: [PATCH 05/11] test-util-sockets: Synchronize properly, don't sleep(1)

2020-10-30 Thread Markus Armbruster
Eric Blake writes: > On 10/29/20 8:38 AM, Markus Armbruster wrote: >> The abstract sockets test spawns a thread to listen and a accept, and > > s/and a/and/ Yes. >> a second one to connect, with a sleep(1) in between to "ensure" the >> former is listening when the latter tries to connect.

Re: [PATCH 04/36] qdev: Check dev->realized at set_size()

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:06 AM Eduardo Habkost wrote: > This setter is one of the very few property setters that don't > check dev->realized, and there's no reason to make size > properties different from the rest. Add the missing check. > > Fixes: e8cd45c78f53 ("qdev: Add SIZE type to qdev

Re: [PATCH-for-5.2 0/3] Bug-fixes for the generic-fuzzer

2020-10-30 Thread Darren Kenny
Sigh, I should have caught some of these in the last review, sorry. For the series, Reviewed-by: Darren Kenny Thanks, Darren. On Thursday, 2020-10-29 at 13:28:57 -04, Alexander Bulekov wrote: > These patches fix some silly issues I found after the generic-fuzzer > started running on

Re: [PATCH 12/36] qdev: Make error_set_from_qdev_prop_error() get Object* argument

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:16 AM Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Signed-off-by: Eduardo Habkost > What about dropping _qdev from the function name too? Also, I am not sure it's a well designed function.. I would rather have 3 different

Re: [PATCH] vhost-user: add separate memslot counter for vhost-user

2020-10-30 Thread Michael S. Tsirkin
On Mon, Sep 28, 2020 at 09:17:31PM +0800, Jiajun Chen wrote: > Used_memslots is equal to dev->mem->nregions now, it is true for > vhost kernel, but not for vhost user, which uses the memory regions > that have file descriptor. In fact, not all of the memory regions > have file descriptor. > It is

Re: [PATCH 08/11] sockets: Fix socket_sockaddr_to_address_unix() for abstract sockets

2020-10-30 Thread Markus Armbruster
Eric Blake writes: > On 10/29/20 8:38 AM, Markus Armbruster wrote: >> Commit 776b97d360 "qemu-sockets: add abstract UNIX domain socket >> support" neglected to update socket_sockaddr_to_address_unix(). The >> function returns a non-abstract socket address for abstract >> sockets (wrong) with a

Re: [PATCH 06/11] test-util-sockets: Test the complete abstract socket matrix

2020-10-30 Thread Daniel P . Berrangé
On Thu, Oct 29, 2020 at 02:38:28PM +0100, Markus Armbruster wrote: > The test covers only two out of nine combinations. Test all nine. > Four turn out to be broken. Marked /* BUG */. > > Signed-off-by: Markus Armbruster > --- > tests/test-util-sockets.c | 86

Re: Out-of-Process Device Emulation session at KVM Forum 2020

2020-10-30 Thread Jason Wang
On 2020/10/30 下午2:21, Stefan Hajnoczi wrote: On Fri, Oct 30, 2020 at 3:04 AM Alex Williamson wrote: It's great to revisit ideas, but proclaiming a uAPI is bad solely because the data transfer is opaque, without defining why that's bad, evaluating the feasibility and implementation of

Re: [PATCH 07/11] sockets: Fix default of UnixSocketAddress member @tight

2020-10-30 Thread Markus Armbruster
Paolo Bonzini writes: > On 29/10/20 18:39, Paolo Bonzini wrote: >>> When @tight was set to false as it should be, absent @tight defaults >>> to false. Wrong, it should default to true. This is what breaks QMP. >> When @has_tight... > > Ah, I see what you meant here. Suggested reword: > >

ENQCMD

2020-10-30 Thread Stefan Hajnoczi
Hi, The "Scalable Work Submission in Device Virtualization" talk at KVM Forum 2020 was interesting and I have some beginner questions about ENQCMD: https://static.sched.com/hosted_files/kvmforum2020/22/Scalable_Work_Submission_In_Device_Virtualization.pdf Security If the ENQCMD

Re: [PATCH 11/36] qdev: Make check_prop_still_unset() get Object* argument

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:14 AM Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau -- Marc-André Lureau

[PATCH] target/s390x: fix execution with icount

2020-10-30 Thread Pavel Dovgalyuk
This patch adds some gen_io_start() calls to allow execution of s390x targets in icount mode with -smp 1. It enables deterministic timers and record/replay features. Signed-off-by: Pavel Dovgalyuk --- 0 files changed diff --git a/target/s390x/translate.c b/target/s390x/translate.c index

Re: [PATCH v3] virtio-net: Add check for mac address while peer is vdpa

2020-10-30 Thread Michael S. Tsirkin
On Mon, Oct 26, 2020 at 02:21:26PM +0800, Cindy Lu wrote: > Sometime vdpa get an all 0 mac address from the hardware, this will cause the > traffic down > So we add the check for this part. > if we get an 0 mac address we will use the default mac address instead > > Signed-off-by: Cindy Lu >

Re: [PATCH 11/11] sockets: Make abstract UnixSocketAddress depend on CONFIG_LINUX

2020-10-30 Thread Markus Armbruster
Eric Blake writes: > On 10/29/20 8:38 AM, Markus Armbruster wrote: >> The abstract socket namespace is a non-portable Linux extension. An >> attempt to use it elsewhere should fail with ENOENT (the abstract >> address looks like a "" pathname, which does not resolve). We report >> this failure

Re: [PATCH 17/36] qdev: Separate generic and device-specific property registration

2020-10-30 Thread Marc-André Lureau
Hi On Fri, Oct 30, 2020 at 2:19 AM Eduardo Habkost wrote: > qdev_class_add_property() and qdev_property_add_static() will > have code that's specific for device types. > > object_class_property_add_static(), > object_class_add_static_props(), and object_property_add_static() > will be generic

Re: [PATCH v2 6/8] target/sparc/win_helper: silence the compiler warnings

2020-10-30 Thread Philippe Mathieu-Daudé
On 10/30/20 1:40 AM, Chen Qun wrote: > When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: > target/sparc/win_helper.c: In function ‘get_gregset’: > target/sparc/win_helper.c:304:9: warning: this statement may fall through > [-Wimplicit-fallthrough=] > 304 |

Re: [PATCH 07/11] sockets: Fix default of UnixSocketAddress member @tight

2020-10-30 Thread Markus Armbruster
Eric Blake writes: > On 10/29/20 8:38 AM, Markus Armbruster wrote: >> QMP chardev-add defaults absent member @tight to false instead of >> true. HMP chardev-add and CLI -chardev correctly default to true. >> >> The previous commit demonstrated that socket_listen() and >> socket_connect() are

Re: [PATCH v8 07/11] hw/block/nvme: Support Zoned Namespace Command Set

2020-10-30 Thread Philippe Mathieu-Daudé
Hi Dmitry, On 10/30/20 3:32 AM, Dmitry Fomichev wrote: > The emulation code has been changed to advertise NVM Command Set when > "zoned" device property is not set (default) and Zoned Namespace > Command Set otherwise. > > Define values and structures that are needed to support Zoned > Namespace

Re: [PATCH 01/36] cs4231: Get rid of empty property array

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:05 AM Eduardo Habkost wrote: > An empty props array is unnecessary, we can just not call > device_class_set_props(). > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau -- Marc-André Lureau

Re: [PATCH 03/36] qdev: Move property code to qdev-properties.[ch]

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:05 AM Eduardo Habkost wrote: > Move everything related to Property and PropertyInfo to > qdev-properties.[ch] to make it easier to refactor that code. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau -- Marc-André Lureau

Re: [PATCH 02/36] cpu: Move cpu_common_props to hw/core/cpu.c

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:07 AM Eduardo Habkost wrote: > There's no reason to keep the property list separate from the CPU > class code. Move the variable to hw/core/cpu.c and make it > static. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau -- Marc-André Lureau

Re: [PATCH 08/11] sockets: Fix socket_sockaddr_to_address_unix() for abstract sockets

2020-10-30 Thread Markus Armbruster
Paolo Bonzini writes: > On 29/10/20 14:38, Markus Armbruster wrote: >> +/* Linux abstract socket */ >> +addr->u.q_unix.path = g_strndup(su->sun_path + 1, >> +sizeof(su->sun_path) - 1); >> +addr->u.q_unix.has_abstract = true; >> +

Re: [PATCH v3] virtio-net: Add check for mac address while peer is vdpa

2020-10-30 Thread Michael S. Tsirkin
On Mon, Oct 26, 2020 at 02:21:26PM +0800, Cindy Lu wrote: > Sometime vdpa get an all 0 mac address from the hardware, this will cause the > traffic down > So we add the check for this part. > if we get an 0 mac address we will use the default mac address instead > > Signed-off-by: Cindy Lu I

Re: [PATCH 22/24] i440fx: Register i440FX-pcihost properties as class properties

2020-10-30 Thread Michael S. Tsirkin
On Mon, Sep 21, 2020 at 06:10:43PM -0400, Eduardo Habkost wrote: > Class properties make QOM introspection simpler and easier, as > they don't require an object to be instantiated. > > Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin > --- > Cc: "Michael S. Tsirkin" > Cc:

Re: Migrating to the gitlab issue tracker

2020-10-30 Thread Stefan Hajnoczi
On Thu, Oct 29, 2020 at 12:01:27PM -0400, John Snow wrote: > In experimenting with my mirror on gitlab though, I was unable to find a way > to configure it to send issue tracker notifications to the email list. A > move to gitlab would likely mean, then: > > 1. The cessation of (automatic) issue

[PATCH] target/unicore32/translate: Add missing fallthrough annotations

2020-10-30 Thread Thomas Huth
Looking at the way the code is formatted here (there is an empty line after break statements, but none where the break is missing), the fallthrough is very likely intended here. So add a fallthrough comment to make the it compilable with -Werror=implicit-fallthrough. Signed-off-by: Thomas Huth

Re: Out-of-Process Device Emulation session at KVM Forum 2020

2020-10-30 Thread Jason Wang
On 2020/10/30 上午11:04, Alex Williamson wrote: On Fri, 30 Oct 2020 09:11:23 +0800 Jason Wang wrote: On 2020/10/29 下午11:46, Alex Williamson wrote: On Thu, 29 Oct 2020 23:09:33 +0800 Jason Wang wrote: On 2020/10/29 下午10:31, Alex Williamson wrote: On Thu, 29 Oct 2020 21:02:05 +0800 Jason

Re: [PATCH 16/36] qdev: Make qdev_class_add_property() more flexible

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:13 AM Eduardo Habkost wrote: > Support Property.set_default and PropertyInfo.description even if > PropertyInfo.create is set. > > Signed-off-by: Eduardo Habkost > --- > Cc: Paolo Bonzini > Cc: "Daniel P. Berrangé" > Cc: Eduardo Habkost > Cc: qemu-devel@nongnu.org >

Re: [PATCH 06/36] qdev: Don't use dev->id on set_size32() error message

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:05 AM Eduardo Habkost wrote: > All other qdev property error messages use "." > instead of ".". Change set_size32() for consistency, > and to make the code not specific to TYPE_DEVICE. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau --

Re: [PATCH] target/riscv/csr.c : add space before the open parenthesis '('

2020-10-30 Thread Bin Meng
On Fri, Oct 30, 2020 at 8:58 AM Xinhao Zhang wrote: > > Fix code style. Space required before the open parenthesis '('. > > Signed-off-by: Xinhao Zhang > Signed-off-by: Kai Deng > Reported-by: Euler Robot > --- > target/riscv/csr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH 03/11] test-util-sockets: Clean up SocketAddress construction

2020-10-30 Thread Daniel P . Berrangé
On Thu, Oct 29, 2020 at 02:38:25PM +0100, Markus Armbruster wrote: > The thread functions build the SocketAddress from global variable > @abstract_sock_name and the tight flag passed as pointer > argument (either NULL or (gpointer)1). There is no need for such > hackery; simply pass the

Re: [PATCH-for-5.2] hw/rx/rx-gdbsim: Fix memory leak

2020-10-30 Thread Philippe Mathieu-Daudé
On 10/29/20 8:57 PM, Richard Henderson wrote: > On 10/28/20 12:22 PM, Philippe Mathieu-Daudé wrote: >> +g_autofree void *dtb; >> >> dtb = load_device_tree(dtb_filename, _size); > > With g_autofree, we must initialize the variable on declaration. Often this > is > with

Re: Out-of-Process Device Emulation session at KVM Forum 2020

2020-10-30 Thread Michael S. Tsirkin
> A migration compatibility interface has not been determined for vfio. > We currently rely on the vendor drivers to provide their own internal > validation and harmlessly reject migration from an incompatible device. > It would be great if we could make progress on this, but it's a > difficult

Re: [PATCH 13/36] qdev: Wrap getters and setters in separate helpers

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:11 AM Eduardo Habkost wrote: > We'll add extra code to the qdev property getters and setters, so > add wrapper functions where additional actions can be performed. > > The new functions have a "static_prop_" prefix instead of "qdev_" > because the code will eventually

Re: [PATCH 14/36] qdev: Move dev->realized check to qdev_property_set()

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:10 AM Eduardo Habkost wrote: > Every single qdev property setter function manually checks > dev->realized. We can just check dev->realized inside > qdev_property_set() instead. > > The check is being added as a separate function > (qdev_prop_allow_set()) because it

Re: [PATCH v3] virtio-net: Add check for mac address while peer is vdpa

2020-10-30 Thread Cindy Lu
On Fri, Oct 30, 2020 at 4:55 PM Michael S. Tsirkin wrote: > > On Mon, Oct 26, 2020 at 02:21:26PM +0800, Cindy Lu wrote: > > Sometime vdpa get an all 0 mac address from the hardware, this will cause > > the traffic down > > So we add the check for this part. > > if we get an 0 mac address we will

Re: [PATCH 09/11] char-socket: Fix qemu_chr_socket_address() for abstract sockets

2020-10-30 Thread Markus Armbruster
Eric Blake writes: > On 10/29/20 8:38 AM, Markus Armbruster wrote: >> Commit 776b97d360 "qemu-sockets: add abstract UNIX domain socket >> support" neglected to update qemu_chr_socket_address(). It shows >> shows neither @abstract nor @tight. Fix that. >> >> Signed-off-by: Markus Armbruster

Re: [PATCH] hw/9pfs: virtio-9p: Ensure config space is a multiple of 4 bytes

2020-10-30 Thread Michael S. Tsirkin
On Thu, Oct 29, 2020 at 04:25:41PM +0800, Bin Meng wrote: > From: Bin Meng > > At present the virtio device config space access is handled by the > virtio_config_readX() and virtio_config_writeX() APIs. They perform > a sanity check on the result of address plus size against the config > space

Re: [PATCH v2 4/8] linux-user/mips/cpu_loop: silence the compiler warnings

2020-10-30 Thread Laurent Vivier
Le 30/10/2020 à 01:40, Chen Qun a écrit : > When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: > linux-user/mips/cpu_loop.c: In function ‘cpu_loop’: > linux-user/mips/cpu_loop.c:104:24: warning: this statement may fall through > [-Wimplicit-fallthrough=] > 104 |

Re: Out-of-Process Device Emulation session at KVM Forum 2020

2020-10-30 Thread Stefan Hajnoczi
On Fri, Oct 30, 2020 at 3:04 AM Alex Williamson wrote: > It's great to revisit ideas, but proclaiming a uAPI is bad solely > because the data transfer is opaque, without defining why that's bad, > evaluating the feasibility and implementation of defining a well > specified data format rather than

[PATCH v2] block: Remove unused BlockDeviceMapEntry

2020-10-30 Thread Markus Armbruster
BlockDeviceMapEntry has never been used. It was added in commit facd6e2 "so that it is published through the introspection mechanism." What exactly introspecting types that aren't used for anything could accomplish isn't clear. What "introspection mechanism" to use is also nebulous. To the best

Re: [PATCH v2 3/8] accel/tcg/user-exec: silence the compiler warnings

2020-10-30 Thread Philippe Mathieu-Daudé
On 10/30/20 1:40 AM, Chen Qun wrote: > When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: > ../accel/tcg/user-exec.c: In function ‘handle_cpu_signal’: > ../accel/tcg/user-exec.c:169:13: warning: this statement may fall through > [-Wimplicit-fallthrough=] > 169 |

Re: [PATCH 09/36] qdev: Make qdev_get_prop_ptr() get Object* arg

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:07 AM Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Signed-off-by: Eduardo Habkost > Nice cleanup!, but fails to build atm ../hw/block/xen-block.c:403:9: error: ‘dev’ undeclared (first use in this function); did you mean

Re: [PATCH 07/36] qdev: Make PropertyInfo.print method get Object* argument

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:09 AM Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau -- Marc-André Lureau

Re: [PATCH 08/36] qdev: Make bit_prop_set() get Object* argument

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:11 AM Eduardo Habkost wrote: > Make the code more generic and not specific to TYPE_DEVICE. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau -- Marc-André Lureau

[PATCH 0/2] 9pfs: test suite fixes

2020-10-30 Thread Christian Schoenebeck
Fixes two bugs with the 9pfs 'local' tests as discussed with latest 9P PR (2020-10-23). See the discussion of that PR for details. Christian Schoenebeck (2): tests/9pfs: fix test dir for parallel tests tests/9pfs: fix coverity error in create_local_test_dir() tests/qtest/libqos/virtio-9p.c

[PATCH 1/2] tests/9pfs: fix test dir for parallel tests

2020-10-30 Thread Christian Schoenebeck
Use mkdtemp() to generate a unique directory for the 9p 'local' tests. This fixes occasional 9p test failures when running 'make check -jN' if QEMU was compiled for multiple target architectures, because the individual architecture's test suites would run in parallel and interfere with each

Re: [PATCH] pci: check bus pointer before dereference

2020-10-30 Thread Michael S. Tsirkin
On Wed, Sep 30, 2020 at 10:32:42AM +0530, P J P wrote: > > [+Paolo, +Fam Zheng - for scsi] > > +-- On Mon, 28 Sep 2020, P J P wrote --+ > | +-- On Wed, 16 Sep 2020, Peter Maydell wrote --+ > | | On Wed, 16 Sep 2020 at 07:28, P J P wrote: > | | > -> >

Re: [PATCH v2 7/7] tests/acceptance: Add virtiofs_submounts.py

2020-10-30 Thread Max Reitz
On 29.10.20 21:46, Eduardo Habkost wrote: > On Thu, Oct 29, 2020 at 06:17:44PM +0100, Max Reitz wrote: >> This test invokes several shell scripts to create a random directory >> tree full of submounts, and then check in the VM whether every submount >> has its own ID and the structure looks as

Re: Our abstract UNIX domain socket support is a mess

2020-10-30 Thread Daniel P . Berrangé
On Thu, Oct 29, 2020 at 01:47:02PM -0500, Eric Blake wrote: > On 10/29/20 11:07 AM, Kevin Wolf wrote: > > >>> > >>> QEMU's interface is differently messy. > >>> > >>> Our equivalent to struct sockaddr_un is QAPI type UnixSocketAddress: > >>> > >>> { 'struct': 'UnixSocketAddress', > >>>

Re: Migrating to the gitlab issue tracker

2020-10-30 Thread Daniel P . Berrangé
On Thu, Oct 29, 2020 at 04:27:44PM -0400, John Snow wrote: > On 10/29/20 3:55 PM, Thomas Huth wrote: > > On 29/10/2020 18.12, John Snow wrote: > > > On 10/29/20 12:49 PM, Alistair Francis wrote: > > > > On Thu, Oct 29, 2020 at 9:41 AM Cornelia Huck wrote: > > > > > > > > > > On Thu, 29 Oct 2020

Re: [PATCH for-5.2] util/cutils: Fix bounds check at freq_to_str()

2020-10-30 Thread Peter Maydell
On Thu, 29 Oct 2020 at 20:38, Eduardo Habkost wrote: > > Fix bounds check for idx at freq_to_str(), to actually ensure idx > never goes beyond the last element of the suffixes array. > > Reported-by: Coverity (CID 1435957: OVERRUN) > Suggested-by: Peter Maydell Personally I preferred the other

Re: [PATCH 18/36] qdev: Avoid unnecessary DeviceState* variable at set_prop_arraylen()

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:18 AM Eduardo Habkost wrote: > We're just doing pointer math with the device pointer, we can > simply use obj instead. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André Lureau --- > Cc: Paolo Bonzini > Cc: "Daniel P. Berrangé" > Cc: Eduardo Habkost >

Re: [PATCH v9 1/8] Introduce yank feature

2020-10-30 Thread Markus Armbruster
Lukas Straub writes: > On Thu, 29 Oct 2020 17:36:14 +0100 > Markus Armbruster wrote: > >> Nothing major, looks almost ready to me. >> >> Lukas Straub writes: >> >> > The yank feature allows to recover from hanging qemu by "yanking" >> > at various parts. Other qemu systems can register

Re: [PATCH-for-5.2 v2 12/25] block/nvme: Introduce Completion Queue definitions

2020-10-30 Thread Stefan Hajnoczi
On Thu, Oct 29, 2020 at 10:32:53AM +0100, Philippe Mathieu-Daudé wrote: > Rename Submission Queue flags with 'Sq' to differentiate > submission queue flags from command queue flags, and introduce > Completion Queue flag definitions. > > Reviewed-by: Eric Auger > Tested-by: Eric Auger >

[PULL 00/15] pc,pci,vhost,virtio: misc fixes

2020-10-30 Thread Michael S. Tsirkin
The following changes since commit 802427bcdae1ad2eceea8a8877ecad835e3f8fde: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20201027-1' into staging (2020-10-29 11:40:04 +) are available in the Git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git

[PULL 03/15] acpi/crs: Prevent bad ranges for host bridges

2020-10-30 Thread Michael S. Tsirkin
From: Ben Widawsky Prevent _CRS resources being quietly chopped off and instead throw an assertion. _CRS is used by host bridges to declare regions of io and/or memory that they consume. On some (all?) platforms the host bridge doesn't have PCI header space and so they need some way to convey

[PULL 01/15] vhost-vdpa: negotiate VIRTIO_NET_F_STATUS with driver

2020-10-30 Thread Michael S. Tsirkin
From: Si-Wei Liu Vendor driver may not support or implement config interrupt delivery for link status notifications. In this event, vendor driver is expected to NACK the feature, but guest will keep link always up. Signed-off-by: Si-Wei Liu Message-Id:

[PULL 05/15] hw/virtio/vhost-vdpa: Fix Coverity CID 1432864

2020-10-30 Thread Michael S. Tsirkin
From: Philippe Mathieu-Daudé Fix uninitialized value issues reported by Coverity: Field 'msg.reserved' is uninitialized when calling write(). Fixes: a5bd05800f8 ("vhost-vdpa: batch updating IOTLB mappings") Reported-by: Coverity (CID 1432864: UNINIT) Signed-off-by: Philippe Mathieu-Daudé

[PULL 12/15] pci: Disallow improper BAR registration for type 1

2020-10-30 Thread Michael S. Tsirkin
From: Ben Widawsky Prevent future developers working on root complexes, root ports, or bridges that also wish to implement a BAR for those, from shooting themselves in the foot. PCI type 1 headers only support 2 base address registers. It is incorrect and difficult to figure out what is wrong

[PULL 10/15] pci: advertise a page aligned ATS

2020-10-30 Thread Michael S. Tsirkin
From: Jason Wang After Linux kernel commit 61363c1474b1 ("iommu/vt-d: Enable ATS only if the device uses page aligned address."), ATS will be only enabled if device advertises a page aligned request. Unfortunately, vhost-net is the only user and we don't advertise the aligned request capability

[PULL 15/15] intel_iommu: Fix two misuse of "0x%u" prints

2020-10-30 Thread Michael S. Tsirkin
From: Peter Xu Dave magically found this. Fix them with "0x%x". Reported-by: Dr. David Alan Gilbert Signed-off-by: Peter Xu Message-Id: <20201019173922.100270-1-pet...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Philippe Mathieu-Daudé Acked-by: Jason Wang Reviewed-by:

Re: [PATCH 1/1] target/arm: fix handling of HCR.FB

2020-10-30 Thread Peter Maydell
On Thu, 29 Oct 2020 at 20:25, wrote: > > From: Rémi Denis-Courmont > > HCR should be applied when NS is set, not when it is cleared. > > Signed-off-by: Rémi Denis-Courmont > --- > target/arm/helper.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Applied to target-arm.next,

Re: [PATCH] hw/display/exynos4210_fimd: Fix potential NULL pointer dereference

2020-10-30 Thread Peter Maydell
On Fri, 30 Oct 2020 at 10:23, AlexChen wrote: > > In exynos4210_fimd_update(), the pointer s is dereferenced before > being check if it is valid, which may lead to NULL pointer dereference. > So move the assignment to global_width after checking that the s is valid > > Reported-by: Euler Robot >

Re: [PATCH 1/1] target/arm: fix LORID_EL1 access check

2020-10-30 Thread Peter Maydell
On Thu, 29 Oct 2020 at 20:25, wrote: > > From: Rémi Denis-Courmont > > Secure mode is not exempted from checking SCR_EL3.TLOR, and in the > future HCR_EL2.TLOR when S-EL2 is enabled. > > Signed-off-by: Rémi Denis-Courmont Applied to target-arm.next, thanks. -- PMM

Re: [PATCH] hw/display/omap_lcdc: Fix potential NULL pointer dereference

2020-10-30 Thread Peter Maydell
On Fri, 30 Oct 2020 at 10:23, AlexChen wrote: > > In omap_lcd_interrupts(), the pointer omap_lcd is dereferenced before > being check if it is valid, which may lead to NULL pointer dereference. > So move the assignment to surface after checking that the omap_lcd is valid. > > Reported-by: Euler

Re: [PULL 0/3] Ide patches

2020-10-30 Thread Peter Maydell
On Tue, 27 Oct 2020 at 14:43, John Snow wrote: > > The following changes since commit a95e0396c805735c491a049b01de6f5a713fb91b: > > Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' > into staging (2020-10-26 15:49:11 +) > > are available in the Git repository at: > >

[PULL v2 07/16] tests/9pfs: Turn fs_readdir_split() into a helper

2020-10-30 Thread Christian Schoenebeck
From: Greg Kurz fs_readdir_split() isn't a top level test function and thus shouldn't take the "void *obj, void *data, QGuestAllocator *t_alloc" arguments. Turn it into a helper to be used by test functions. Signed-off-by: Greg Kurz Message-Id:

[PULL v2 05/16] tests/9pfs: Set alloc in fs_create_dir()

2020-10-30 Thread Christian Schoenebeck
From: Greg Kurz fs_create_dir() is a top level test function. It should set alloc. Signed-off-by: Greg Kurz Message-Id: <160321016764.266767.3763279057643874020.st...@bahia.lan> Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 1 + 1 file changed, 1 insertion(+) diff

[PULL v2 10/16] tests/9pfs: add local Tunlinkat directory test

2020-10-30 Thread Christian Schoenebeck
This test case uses a Tunlinkat 9p request with flag AT_REMOVEDIR (see 'man 2 unlink') to remove a directory from host's test directory. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <3c7c65b476ba44bea6afd0b378b5287e1c671a32.1603285620.git.qemu_...@crudebyte.com>

Re: [PATCH] target/arm: Get correct MMU index for other-security-state

2020-10-30 Thread Peter Maydell
Ping for code review, please ? thanks -- PMM On Thu, 22 Oct 2020 at 17:44, Peter Maydell wrote: > > In arm_v7m_mmu_idx_for_secstate() we get the 'priv' level to pass to > armv7m_mmu_idx_for_secstate_and_priv() by calling arm_current_el(). > This is incorrect when the security state being

[PULL v2 11/16] tests/9pfs: add local Tlcreate test

2020-10-30 Thread Christian Schoenebeck
This test case uses a Tlcreate 9p request to create a regular file inside host's test directory. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <269cae0c00af941a3a4ae78f1e319f93462a7eb4.1603285620.git.qemu_...@crudebyte.com> Signed-off-by: Christian Schoenebeck ---

[PATCH-for-5.2] hw/arm/smmuv3: Fix potential integer overflow (CID 1432363)

2020-10-30 Thread Philippe Mathieu-Daudé
Use the BIT_ULL() macro to ensure we use 64-bit arithmetic. This fixes the following Coverity issue (OVERFLOW_BEFORE_WIDEN): CID 1432363 (#1 of 1): Unintentional integer overflow: overflow_before_widen: Potentially overflowing expression 1 << scale with type int (32 bits, signed) is

[PULL v2 09/16] tests/9pfs: simplify do_mkdir()

2020-10-30 Thread Christian Schoenebeck
Split out walking a directory path to a separate new utility function do_walk() and use that function in do_mkdir(). The code difference saved this way is not much, but we'll use that new do_walk() function in the upcoming patches, so it will avoid quite some code duplication after all.

[RFC PATCH-for-5.2] tools/virtiofsd: Check vu_init() return value (CID 1435958)

2020-10-30 Thread Philippe Mathieu-Daudé
Since commit 6f5fd837889, vu_init() can fail if malloc() returns NULL. This fixes the following Coverity warning: CID 1435958 (#1 of 1): Unchecked return value (CHECKED_RETURN) Fixes: 6f5fd837889 ("libvhost-user: support many virtqueues") Signed-off-by: Philippe Mathieu-Daudé ---

Re: QEMU release tagging script?

2020-10-30 Thread John Snow
On 10/30/20 9:51 AM, Daniel P. Berrangé wrote: On Fri, Oct 30, 2020 at 09:47:04AM -0400, John Snow wrote: On 10/30/20 9:38 AM, Peter Maydell wrote: On Fri, 30 Oct 2020 at 13:32, John Snow wrote: Is there a script that's public that you use for tagging the QEMU release? I see make-release in

Re: [PULL 34/37] gdbstub: add reverse continue support in replay mode

2020-10-30 Thread Philippe Mathieu-Daudé
Hi Pavel, On Tue, Oct 6, 2020 at 9:41 AM Paolo Bonzini wrote: > > From: Pavel Dovgalyuk > > This patch adds support of the reverse continue operation for gdbstub. > Reverse continue finds the last breakpoint that would happen in normal > execution from the beginning to the current moment. >

Re: [PATCH] configure: surface deprecated targets in the help output

2020-10-30 Thread Thomas Huth
On 29/10/2020 21.14, Alex Bennée wrote: > Show the targets but keep them separate from the main list. > > Signed-off-by: Alex Bennée > --- > configure | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/configure b/configure > index 55e07c82dd..6c2e9ff37c 100755 > ---

[PATCH v10 5/8] io/channel-tls.c: make qio_channel_tls_shutdown thread-safe

2020-10-30 Thread Lukas Straub
Make qio_channel_tls_shutdown thread-safe by using atomics when accessing tioc->shutdown. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi Reviewed-by: Daniel P. Berrangé --- io/channel-tls.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/io/channel-tls.c

[PATCH v10 3/8] chardev/char-socket.c: Add yank feature

2020-10-30 Thread Lukas Straub
Register a yank function to shutdown the socket on yank. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi --- chardev/char-socket.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/chardev/char-socket.c b/chardev/char-socket.c index

[PATCH v10 4/8] migration: Add yank feature

2020-10-30 Thread Lukas Straub
Register yank functions on sockets to shut them down. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi Acked-by: Dr. David Alan Gilbert --- migration/channel.c | 13 + migration/migration.c | 25 + migration/multifd.c | 10

Re: [PATCH 21/36] qom: Add allow_set callback to ObjectProperty

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:12 AM Eduardo Habkost wrote: > Note that this doesn't replace the check callback at > object*_property_add_link() (yet), because currently the link > property check callback needs to get the property value as > argument (despite this not being necessary in most cases).

Re: [PATCH 22/36] qdev: Make qdev_prop_allow_set() a property allow_set callback

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:15 AM Eduardo Habkost wrote: > This removes the last remaining DeviceState-specific line of code > inside qdev property registration code, and will allow us to make > static properties a core QOM feature. > > Signed-off-by: Eduardo Habkost > Reviewed-by: Marc-André

Re: [PATCH 19/36] qdev: Move array property creation/registration to separate functions

2020-10-30 Thread Marc-André Lureau
On Fri, Oct 30, 2020 at 2:17 AM Eduardo Habkost wrote: > The array property registration code is hard to follow. Move the > two steps into separate functions that have clear > responsibilities. > > Signed-off-by: Eduardo Habkost > --- > Cc: Paolo Bonzini > Cc: "Daniel P. Berrangé" > Cc:

Re: Migrating to the gitlab issue tracker

2020-10-30 Thread Peter Maydell
On Fri, 30 Oct 2020 at 09:23, Daniel P. Berrangé wrote: > My convincing strategy is "do nothing" :-) I am, er, not convinced :-) > Most importantly we need to be able to make the existing "QEMU" component > in launch read-only to prevent people filing new bugs there, ideally with > a change in

[PATCH V16 2/6] target/mips: Add unaligned access support for MIPS64R6 and Loongson-3

2020-10-30 Thread Huacai Chen
MIPSR6 (not only MIPS32R6) processors support unaligned access in hardware, so set MO_UNALN in their default_tcg_memop_mask. Btw, new Loongson-3 (such as Loongson-3A4000) also support unaligned access, since both old and new Loongson-3 use the same binaries, we can simply set MO_UNALN for all

Re: Migrating to the gitlab issue tracker

2020-10-30 Thread Alex Bennée
John Snow writes: > On 10/29/20 3:55 PM, Thomas Huth wrote: >> On 29/10/2020 18.12, John Snow wrote: >>> On 10/29/20 12:49 PM, Alistair Francis wrote: On Thu, Oct 29, 2020 at 9:41 AM Cornelia Huck wrote: > > On Thu, 29 Oct 2020 12:01:27 -0400 > John Snow wrote: > >>

Re: [PATCH v2 2/5] memory: Add IOMMUTLBEvent

2020-10-30 Thread Michael S. Tsirkin
On Mon, Oct 19, 2020 at 12:43:29PM +0200, Eugenio Pérez wrote: > This way we can tell between regular IOMMUTLBEntry (entry of IOMMU > hardware) and notifications. > > In the notifications, we set explicitly if it is a MAPs or an UNMAP, > instead of trusting in entry permissions to differentiate

Re: [PATCH] pci: check bus pointer before dereference

2020-10-30 Thread Fam Zheng
On Fri, 2020-10-30 at 05:01 -0400, Michael S. Tsirkin wrote: > On Wed, Sep 30, 2020 at 10:32:42AM +0530, P J P wrote: > > > > [+Paolo, +Fam Zheng - for scsi] > > > > +-- On Mon, 28 Sep 2020, P J P wrote --+ > > > +-- On Wed, 16 Sep 2020, Peter Maydell wrote --+ > > > > On Wed, 16 Sep 2020 at

Re: Migrating to the gitlab issue tracker

2020-10-30 Thread Peter Maydell
On Fri, 30 Oct 2020 at 10:10, Daniel P. Berrangé wrote: > This > makes it more appealing to leave existing bugs in the LP tracker until > they are resolved, auto-closed, or there is a compelling reason to move > to gitlab. The compelling reason is that there is no way that I want to have to

  1   2   3   4   >