[PATCH v3] arm/monitor: Add support for 'info tlb' command

2020-11-14 Thread Changbin Du
This adds hmp 'info tlb' command support for the arm platform. The limitation is that this only implements a page walker for ARMv8-A AArch64 Long Descriptor format, 32bit addressing is not supported yet. To reuse existing code, this patch also extracts some APIs from helper.c, including regime_tra

Re: [PATCH] hw: add compat machines for 6.0

2020-11-14 Thread Michael S. Tsirkin
On Mon, Nov 09, 2020 at 06:39:28PM +0100, Cornelia Huck wrote: > Add 6.0 machine types for arm/i440fx/q35/s390x/spapr. > > Signed-off-by: Cornelia Huck pc part Reviewed-by: Michael S. Tsirkin > --- > hw/arm/virt.c | 9 - > hw/core/machine.c | 3 +++ > hw/i386/

Re: [PATCH 1/4] configure: Fix the _BSD_SOURCE define for the Haiku build

2020-11-14 Thread Stefan Berger
On 11/14/20 11:51 AM, Thomas Huth wrote: The Haiku VM that we are going to add is using _BSD_SOURCE instead of BSD_SOURCE (without initial underscore)... according to David Carlier, the BSD_SOURCE without underscore was likely a typo, so let's simply add the underscore there now. This fixes the b

Re: [PATCH 2/4] configure: Do not build pc-bios/optionrom on Haiku

2020-11-14 Thread Stefan Berger
On 11/14/20 11:51 AM, Thomas Huth wrote: Compilation of pc-bios/optionrom fails on Haiku with: BUILD pvh.img ld: pvh_main.o: in function `pvh_load_kernel': pc-bios/optionrom/pvh_main.c:73: undefined reference to `GLOBAL_OFFSET_TABLE_' Makefile:57: recipe for target 'pvh.img' failed

Re: [PATCH 3/4] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h

2020-11-14 Thread Stefan Berger
On 11/14/20 11:51 AM, Thomas Huth wrote: On Solaris and Haiku, the _IO() macros are defined in . Add a proper check for this header to our configure scripts, and make sure to include the header in tpm_ioctl.h to fix a build failure on Solaris and Haiku. Signed-off-by: Thomas Huth Reviewed-by:

Re: [Qemu-devel] [PULL v2 12/12] target/mips: Introduce 32 R5900 multimedia registers

2020-11-14 Thread Philippe Mathieu-Daudé
Hi Fredrik and Aleksandar, On Fri, Jan 18, 2019 at 6:10 PM Aleksandar Markovic wrote: > > From: Fredrik Noring > > The 32 R5900 128-bit registers are split into two 64-bit halves: > the lower halves are the GPRs and the upper halves are accessible > by the R5900-specific multimedia instructions.

Re: [PATCH 1/2] ppc/translate: Implement lxvwsx opcode

2020-11-14 Thread Richard Henderson
On 11/10/20 10:22 PM, David Gibson wrote: > On Tue, Nov 10, 2020 at 10:14:23AM +0100, LemonBoy wrote: >> Is there any chance for this patch series to be merged for 5.2? > > No. We are now in hard freeze, and this is not a bugfix. Actually, patch 1/2 is a bugfix -- a missing instruction from an I

Re: [PATCH 3/4] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h

2020-11-14 Thread Yonggang Luo
Can we check this in meson.build? On Sun, Nov 15, 2020 at 12:53 AM Thomas Huth wrote: > > On Solaris and Haiku, the _IO() macros are defined in . > Add a proper check for this header to our configure scripts, and > make sure to include the header in tpm_ioctl.h to fix a build failure > on Solaris

[PATCH 4/4] tests/vm: Add Haiku test based on their vagrant images

2020-11-14 Thread Thomas Huth
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é [thuth: Add ninja package, /usr/bin/env hack and --disable-slirp] Signed-off-by: Thomas Huth --- tests/keys/vagrant| 27 + test

[PATCH 1/4] configure: Fix the _BSD_SOURCE define for the Haiku build

2020-11-14 Thread Thomas Huth
The Haiku VM that we are going to add is using _BSD_SOURCE instead of BSD_SOURCE (without initial underscore)... according to David Carlier, the BSD_SOURCE without underscore was likely a typo, so let's simply add the underscore there now. This fixes the build failure with the bswapXX() macros not

[PATCH 3/4] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h

2020-11-14 Thread Thomas Huth
On Solaris and Haiku, the _IO() macros are defined in . Add a proper check for this header to our configure scripts, and make sure to include the header in tpm_ioctl.h to fix a build failure on Solaris and Haiku. Signed-off-by: Thomas Huth --- backends/tpm/tpm_ioctl.h | 4 configure

[PATCH 2/4] configure: Do not build pc-bios/optionrom on Haiku

2020-11-14 Thread Thomas Huth
Compilation of pc-bios/optionrom fails on Haiku with: BUILD pvh.img ld: pvh_main.o: in function `pvh_load_kernel': pc-bios/optionrom/pvh_main.c:73: undefined reference to `GLOBAL_OFFSET_TABLE_' Makefile:57: recipe for target 'pvh.img' failed make[1]: *** [pvh.img] Error 1 Let's simply di

[PATCH for-5.2? 0/4] Fix build failures on Haiku

2020-11-14 Thread Thomas Huth
Some patches to fix build failures on Haiku, and the final patch adds a VM for testing compilation there. "make check" is still failing, but at least compiling of the sources can now be tested. Alexander von Gluck IV (1): tests/vm: Add Haiku test based on their vagrant images Thomas Huth (3):

Re: [PATCH V2] vhost-user-blk/scsi: Fix broken error handling for socket call

2020-11-14 Thread Michael S. Tsirkin
On Thu, Oct 29, 2020 at 02:03:52PM +0800, AlexChen wrote: > When socket() fails, it returns -1, 0 is the normal return value and should > not return error. > > Reported-by: Euler Robot > Signed-off-by: AlexChen Tagged, thanks! > --- > contrib/vhost-user-blk/vhost-user-blk.c | 2 +- > contr

Re: [PULL 0/2] riscv-to-apply queue

2020-11-14 Thread Peter Maydell
On Sat, 14 Nov 2020 at 05:56, Alistair Francis wrote: > > The following changes since commit 5ececc3a0b0086c6168e12f4d032809477b30fe5: > > Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20201113' into > staging (2020-11-13 13:40:23 +) > > are available in the Git repository at

[PATCH v2] arm/monitor: Add support for 'info tlb' command

2020-11-14 Thread Changbin Du
This adds hmp 'info tlb' command support for the arm platform. The limitation is that this only implements a page walker for ARMv8-A AArch64 Long Descriptor format, 32bit addressing is not supported yet. To reuse existing code, this patch also extracts some APIs from helper.c, including regime_tra

Re: [PATCH] arm/monitor: Add support for 'info tlb' command

2020-11-14 Thread Changbin Du
On Fri, Nov 13, 2020 at 01:13:42PM +, Dr. David Alan Gilbert wrote: > * Peter Maydell (peter.mayd...@linaro.org) wrote: > > On Fri, 13 Nov 2020 at 09:59, Changbin Du wrote: > > > > > > This adds hmp 'info tlb' command support for the arm platform. > > > The limitation is that this only impleme

Re: [PATCH] fpu/softfloat.c: add spaces around operator

2020-11-14 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20201114130715.1126922-1-zhangxinh...@huawei.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20201114130715.1126922-1-zhangxinh...@huawei.com Type: series Subject: [PATCH] fpu/softfloat.c:

[PATCH] fpu/softfloat.c: add spaces around operator

2020-11-14 Thread Xinhao Zhang
Fix code style. Operator needs spaces both sides. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- fpu/softfloat.c | 150 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 67cfa0fd82..9

Re: [PATCH for-5.2] qga: update schema for guest-get-disks 'dependents' field

2020-11-14 Thread Marc-André Lureau
On Fri, Nov 13, 2020 at 10:49 PM Michael Roth wrote: > The recently-added 'guest-get-disk' command returns a list of > GuestDiskInfo entries, which in turn have a 'dependents' field which > lists devices these entries are dependent upon. Thus, 'dependencies' > is a better name for this field. Add

[PATCH RFC] vfio: Move the saving of the config space to the right place in VFIO migration

2020-11-14 Thread Shenming Lu
When running VFIO migration, I found that the restoring of VFIO PCI device’s config space is before VGIC on ARM64 target. But generally, interrupt controllers need to be restored before PCI devices. Besides, if a VFIO PCI device is configured to have directly-injected MSIs (VLPIs), the restoring o

RE: [PATCH v2] json: Fix a memleak in parse_pair()

2020-11-14 Thread Chenqun (kuhn)
> -Original Message- > From: Chenzhendong (alex) > Sent: Friday, November 13, 2020 10:55 PM > To: arm...@redhat.com > Cc: Chenzhendong (alex) ; qemu-devel@nongnu.org; > qemu-triv...@nongnu.org; Zhanghailiang ; > Chenqun (kuhn) > Subject: [PATCH v2] json: Fix a memleak in parse_pair() >

Re: [PATCH 1/9] Enabling BSD symbols

2020-11-14 Thread Thomas Huth
On 29/06/2020 23.48, David CARLIER wrote: > From 5c6022f21289eb6e78e93d584c766db82165dced Mon Sep 17 00:00:00 2001 > From: David Carlier > Date: Mon, 29 Jun 2020 22:13:35 + > Subject: [PATCH 1/9] Enabling BSD symbols. > > Signed-off-by: David Carlier > --- > configure | 4 ++-- > 1 file cha