Re: [PATCH] Semihost SYS_READC implementation (v4)

2019-11-04 Thread Keith Packard
Peter Maydell writes: > I'm going to push for somebody actually writing out a > document and putting it somewhere that we can point to > and say "that's the authoritative spec", please... > it doesn't have to be a big formal thing, but I do > think you want it written down, because the whole poin

Live migration primary vncviewer blocked.

2019-11-04 Thread Chang Howard
Hi, I know after live migration, primary would be blocked and vnc is also blocked. Could I let primary vnc still work after live migration? I do vm start after live migration and in text mode primary's vnc can still work, but graphic mode it would blocked. How can I do to make in graphic mode vnc c

Re: [Qemu-discuss] Cross-posted : Odd QXL/KVM performance issue with a Windows 7 Guest

2019-11-04 Thread Brad Campbell
On 6/9/19 4:49 pm, Brad Campbell wrote: On 2/9/19 6:23 pm, Brad Campbell wrote: Here is the holdup : 11725@1567416625.003504:qxl_ring_command_check 0 native 11725@1567416625.102653:qxl_io_write 0 native addr=0 (QXL_IO_NOTIFY_CMD) val=0 size=1 async=0 ~100ms delay prior to each logged QXL_I

Adding New, Unsupported ISA to Qemu

2019-11-04 Thread Hanson, Seth
Hello, I'm looking for in-depth documentation pertaining to how an unsupported 16 bit RISC ISA can be emulated in Qemu. I've referenced this: https://wiki.qemu.org/Documentation/TCG and have been hoping there's additional, related documentation that I've overlooked. Please advise. R

Re: Questions about the VFIO BAR region

2019-11-04 Thread Li Qiang
Alex Williamson 于2019年11月5日周二 上午2:49写道: > On Tue, 5 Nov 2019 00:40:39 +0800 > Li Qiang wrote: > > > Hello Alex, Auger and all, > > > > I have a question about the VFIO virtual device BAR. > > > > In vfio_region_setup, it initialize a ‘region->mem’ MR and set its ops > to ‘vfio_regions_ops’. > >

Re: QEMU for Qualcomm Hexagon - KVM Forum talk and code available

2019-11-04 Thread Aleksandar Markovic
On Friday, October 25, 2019, Taylor Simpson wrote: > We would like inform the you that we will be doing a talk at the KVM Forum > next week on QEMU for Qualcomm Hexagon. Alessandro Di Federico, Niccolo > Izzo, and I have been working independently on implementations of the > Hexagon target. We

[Bug 1851095] Re: [feature request] awareness of instructions that are well emulated

2019-11-04 Thread Aleksandar Markovic
Can you provide a clearer repro example of what doesn't wirk on mipsel platform? In last two QEMU releases mips (Wave) developers went to great lenghts making sure both mips SIMD and mips FP instructions (in both scalar and vector variants) are emulated properly. Some of the unit tests were publis

Re: [PATCH] global: Squash 'the the'

2019-11-04 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191104185202.102504-1-dgilb...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH] global: Squash 'the the' Type: series Message-id: 20191104185202.102504-1-dgilb...@redhat.com =

SIGSEGV question (Hexagon)

2019-11-04 Thread Taylor Simpson
Philippe suggested that I run the TCG tests for Hexagon. Thanks Philippe!! I discovered that I'm not handling SIGSEGV properly. We pass other signal tests, but not this one. I'm hoping someone can help. The first thing that I realized is that I hadn't provided a tlb_fill function for CPUClas

Re: [PATCH] net/cadence_gem: Set PHY autonegotiation restart status

2019-11-04 Thread Alistair Francis
On Mon, Nov 4, 2019 at 2:02 PM wrote: > > From: Linus Ziegert > > The Linux kernel PHY driver sets AN_RESTART in the BMCR of the > PHY when autonegotiation is started. > Recently the kernel started to read back the PHY's AN_RESTART > bit and now checks whether the autonegotiation is complete and

[Bug 1851095] Re: [feature request] awareness of instructions that are well emulated

2019-11-04 Thread Alex Bennée
I can confirm bench_simple gives the same result on both qemu-arm and my aarch32 hardware. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1851095 Title: [feature request] awareness of instructions t

Re: [PATCH v5 0/2] RTC support for QEMU RISC-V virt machine

2019-11-04 Thread Alistair Francis
On Sat, Nov 2, 2019 at 3:37 AM Peter Maydell wrote: > > On Tue, 29 Oct 2019 at 13:25, Alistair Francis wrote: > > > > On Fri, Oct 25, 2019 at 6:28 AM Anup Patel wrote: > > > > > > This series adds RTC device to QEMU RISC-V virt machine. We have > > > selected Goldfish RTC device model for this.

Re: [PATCH v5 0/2] RTC support for QEMU RISC-V virt machine

2019-11-04 Thread Alistair Francis
On Sun, Nov 3, 2019 at 12:12 AM Anup Patel wrote: > > On Sat, Nov 2, 2019 at 4:44 AM Palmer Dabbelt wrote: > > > > On Fri, 01 Nov 2019 08:40:24 PDT (-0700), a...@brainfault.org wrote: > > > On Tue, Oct 29, 2019 at 6:55 PM Alistair Francis > > > wrote: > > >> > > >> On Fri, Oct 25, 2019 at 6:28

Re: [PATCH v6 3/3] MAINTAINERS: Add maintainer entry for Goldfish RTC

2019-11-04 Thread Alistair Francis
On Sun, Nov 3, 2019 at 12:55 AM Anup Patel wrote: > > Add myself as Goldfish RTC maintainer until someone else is > willing to maintain it. > > Signed-off-by: Anup Patel Reviewed-by: Alistair Francis Alistair > --- > MAINTAINERS | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a

Re: [PATCH v7 0/11] add failover feature for assigned network devices

2019-11-04 Thread Laine Stump
On 11/4/19 4:21 PM, Parav Pandit wrote: Patches are great to see failover capability enabled on the netdevice. However it's very difficult to test it without having libvirt support. Can we please have the necessary libvirt enhancements? I'm working on libvirt support, and will make sure to C

Re: [RESEND PATCH 0/2] PCI DMA alias support

2019-11-04 Thread Alex Williamson
On Wed, 23 Oct 2019 16:47:02 -0600 Alex Williamson wrote: > Previous posting: > https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg06182.html > > Rebased (no change) and added Peter's R-b. Please apply for QEMU 4.2. Anyone? I suppose this has missed another release despite pings from me

[PATCH] net/cadence_gem: Set PHY autonegotiation restart status

2019-11-04 Thread linus . ziegert
From: Linus Ziegert The Linux kernel PHY driver sets AN_RESTART in the BMCR of the PHY when autonegotiation is started. Recently the kernel started to read back the PHY's AN_RESTART bit and now checks whether the autonegotiation is complete and the bit was cleared [1]. Otherwise the link status i

Re: [PATCH for-4.2 v10 06/15] virtio-iommu: Endpoint and domains structs and helpers

2019-11-04 Thread Jean-Philippe Brucker
Hi Eric, On Tue, Jul 30, 2019 at 07:21:28PM +0200, Eric Auger wrote: > static void virtio_iommu_device_unrealize(DeviceState *dev, Error **errp) > { > VirtIODevice *vdev = VIRTIO_DEVICE(dev); > +VirtIOIOMMU *s = VIRTIO_IOMMU(dev); > + > +g_tree_destroy(s->domains); > +g_tree_des

Re: [PATCH] global: Squash 'the the'

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 10:40 PM, no-re...@patchew.org wrote: Patchew URL: https://patchew.org/QEMU/20191104185202.102504-1-dgilb...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probab

Re: [PATCH] global: Squash 'the the'

2019-11-04 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191104185202.102504-1-dgilb...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN =

RE: [PATCH v7 0/11] add failover feature for assigned network devices

2019-11-04 Thread Parav Pandit
Hi Jens, > -Original Message- > From: Jens Freimann > Sent: Tuesday, October 29, 2019 6:49 AM > To: qemu-devel@nongnu.org > Cc: ehabk...@redhat.com; m...@redhat.com; berra...@redhat.com; > la...@redhat.com; aa...@redhat.com; ai...@redhat.com; Parav Pandit > ; dgilb...@redhat.com; alex.wi

[Bug 1851095] Re: [feature request] awareness of instructions that are well emulated

2019-11-04 Thread Shawn Landden
appears the random number generator produces different results on 32-bit arches, while my code seems to work fine in qemu ** Changed in: qemu Status: New => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.

[PATCH] Semihost SYS_READC implementation (v6)

2019-11-04 Thread Keith Packard
Provides a blocking call to read a character from the console using semihosting.chardev, if specified. This takes some careful command line options to use stdio successfully as the serial ports, monitor and semihost all want to use stdio. Here's a sample set of command line options which share stdi

[Bug 1851095] Re: [feature request] awareness of instructions that are well emulated

2019-11-04 Thread Shawn Landden
Here is the same thing compiled with optimizations on ** Attachment added: "bench_simple" https://bugs.launchpad.net/qemu/+bug/1851095/+attachment/5302825/+files/bench_simple -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https:

Re: [PATCH] global: Squash 'the the'

2019-11-04 Thread Laurent Vivier
Le 04/11/2019 à 19:52, Dr. David Alan Gilbert (git) a écrit : > From: "Dr. David Alan Gilbert" > > 'the' has a tendency to double up; squash them back down. > > Signed-off-by: Dr. David Alan Gilbert > --- > disas/libvixl/vixl/invalset.h | 2 +- > docs/interop/pr-helper.rst | 2 +

Re: [RFC v2 15/22] intel_iommu: bind/unbind guest page table to host

2019-11-04 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:36AM -0400, Liu Yi L wrote: > This patch captures the guest PASID table entry modifications and > propagates the changes to host to setup nested translation. The > guest page table is configured as 1st level page table (GVA->GPA) > whose translation result would furthe

[Bug 1851095] Re: [feature request] awareness of instructions that are well emulated

2019-11-04 Thread Shawn Landden
example binary doing double-precision exponent on 16 megs expected output: checksum: f181b401cd42aa7b actual output: checksum: 4004022b0ba624fb ** Attachment added: "bench_simple" https://bugs.launchpad.net/qemu/+bug/1851095/+attachment/5302817/+files/bench_simple -- You received this b

Re: [RFC v2 13/22] intel_iommu: add PASID cache management infrastructure

2019-11-04 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:34AM -0400, Liu Yi L wrote: > This patch adds a PASID cache management infrastructure based on > new added structure VTDPASIDAddressSpace, which is used to track > the PASID usage and future PASID tagged DMA address translation > support in vIOMMU. > > struct VTDP

Re: [PATCH] global: Squash 'the the'

2019-11-04 Thread Alex Bennée
Dr. David Alan Gilbert (git) writes: > From: "Dr. David Alan Gilbert" > > 'the' has a tendency to double up; squash them back down. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Alex Bennée > --- > disas/libvixl/vixl/invalset.h | 2 +- > docs/interop/pr-helper.rst

Re: [PATCH v7 0/8] Acceptance test: Add "boot_linux" acceptance test

2019-11-04 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191104151323.9883-1-cr...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v7 0/8] Acceptance test: Add "boot_linux" acceptance test Type: series Message-id: 20191104151323.9883-

Re: [Qemu-devel] [Fail] tests/test-util-filemonitor fails

2019-11-04 Thread Miguel Arruga Vivas
Hi Daniel, I've been trying to open a bug in launchpad about exactly this, but it always raises an error when trying to log in. Then I found this thread diving into the archives, so I'll try to kindly ask here about it. Daniel P. Berrangé wrote: > On Fri, Aug 09, 2019 at 08:06:09AM +0800, Wei Y

Re: [PATCH v1 3/6] tests/vm: use console_consume for netbsd

2019-11-04 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Hi Alex, > > On 11/4/19 6:36 PM, Alex Bennée wrote: >> From: Gerd Hoffmann >> Use new helper to read all pending console output, >> not just a single char. Unblocks installer boot. > > Again, why not use this by default for everything? I thought that has alre

Re: [PATCH v1 5/6] tests: only run ipmi-bt-test if CONFIG_LINUX

2019-11-04 Thread Alex Bennée
Corey Minyard writes: > On Mon, Nov 04, 2019 at 05:36:53PM +, Alex Bennée wrote: >> This test has been unstable on NetBSD for awhile. It seems the >> mechanism used to listen to a random port is a Linux-ism (although a >> received wisdom Linux-ism rather than a well documented one). As > >

Re: [PATCH v1 1/6] tests/vm: netbsd autoinstall, using serial console

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 6:36 PM, Alex Bennée wrote: From: Gerd Hoffmann Instead of fetching the prebuilt image from patchew download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds.

[PATCH] global: Squash 'the the'

2019-11-04 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" 'the' has a tendency to double up; squash them back down. Signed-off-by: Dr. David Alan Gilbert --- disas/libvixl/vixl/invalset.h | 2 +- docs/interop/pr-helper.rst | 2 +- docs/specs/ppc-spapr-hotplug.txt| 2 +- docs/specs/ppc-xive.rst

Re: [PATCH v1 6/6] tests/vm: support sites with sha512 checksums

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 6:36 PM, Alex Bennée wrote: The NetBSD project uses SHA512 for its checksums so lets support that in the download helper. Signed-off-by: Alex Bennée --- tests/vm/basevm.py | 10 -- tests/vm/netbsd| 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git

Re: Questions about the VFIO BAR region

2019-11-04 Thread Alex Williamson
On Tue, 5 Nov 2019 00:40:39 +0800 Li Qiang wrote: > Hello Alex, Auger and all, > > I have a question about the VFIO virtual device BAR. > > In vfio_region_setup, it initialize a ‘region->mem’ MR and set its ops to > ‘vfio_regions_ops’. > In ‘vfio_region_mmap’, it maps the physical device’s MM

Re: [PATCH v1 3/6] tests/vm: use console_consume for netbsd

2019-11-04 Thread Philippe Mathieu-Daudé
Hi Alex, On 11/4/19 6:36 PM, Alex Bennée wrote: From: Gerd Hoffmann Use new helper to read all pending console output, not just a single char. Unblocks installer boot. Again, why not use this by default for everything? Anyway, Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathie

Re: [PATCH v1 4/6] tests/vm: update netbsd to version 8.1

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 6:36 PM, Alex Bennée wrote: From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20191031085306.2-5-kra...@redhat.com> Signed-off-by: Alex Bennée --- tests/vm/netbsd | 2 +- 1 file changed,

Re: [PATCH v1 2/6] tests/vm: add console_consume helper

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 6:36 PM, Alex Bennée wrote: From: Gerd Hoffmann Helper function to read all console output. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20191031085306.2-3-kra...@redhat.com> Signed-off-by: Alex Bennée --

Re: [PATCH v1 1/6] tests/vm: netbsd autoinstall, using serial console

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 6:36 PM, Alex Bennée wrote: From: Gerd Hoffmann Instead of fetching the prebuilt image from patchew download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds. S

Re: [PATCH v26 00/21] Add RX archtecture support

2019-11-04 Thread Philippe Mathieu-Daudé
Hi Yoshinori, On 10/14/19 1:57 PM, Yoshinori Sato wrote: Hello. This patch series is added Renesas RX target emulation. Your series is (very) ready to get merged. IIUC it won't be merged for the next release (4.2) but will be merged first thing once 5.0 opens. You don't need to do anything (ex

Re: [PATCH v1 5/6] tests: only run ipmi-bt-test if CONFIG_LINUX

2019-11-04 Thread Corey Minyard
On Mon, Nov 04, 2019 at 05:36:53PM +, Alex Bennée wrote: > This test has been unstable on NetBSD for awhile. It seems the > mechanism used to listen to a random port is a Linux-ism (although a > received wisdom Linux-ism rather than a well documented one). As Hmm. I got reports of this issue

Re: The problems about COLO

2019-11-04 Thread Lukas Straub
On Thu, 31 Oct 2019 17:05:20 +0800 Daniel Cho wrote: > Hello all, > I have some questions about the COLO. > 1) Could we dynamic set fault tolerance feature on running VM? > In your document, the primary VM could not start first (if you start > primary VM, the secondary VM will need to start), i

Re: [PATCH v7 4/8] Acceptance tests: use relative location for tests

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 4:13 PM, Cleber Rosa wrote: An Avocado Test ID[1] is composed by a number of components, but it starts with the Test Name, usually a file system location that was given to the loader. Because the source directory is being given as a prefix to the "tests/acceptance" directory containin

Re: [PATCH v7 1/8] Acceptance test x86_cpu_model_versions: use default vm

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 4:13 PM, Cleber Rosa wrote: The default vm provided by the test, available as self.vm, serves the same purpose of the one obtained by self.get_vm(), but saves a line and matches the style of other tests. Signed-off-by: Cleber Rosa Reviewed-by: Philippe Mathieu-Daudé --- tests/

Questions about the VFIO BAR region

2019-11-04 Thread Li Qiang
Hello Alex, Auger and all, I have a question about the VFIO virtual device BAR. In vfio_region_setup, it initialize a ‘region->mem’ MR and set its ops to ‘vfio_regions_ops’. In ‘vfio_region_mmap’, it maps the physical device’s MMIO to QEMU’s virtual address space as a raw MR ‘region->mmaps[i]

Re: [PATCH v2 0/2] block/nvme: add support for write zeros and discard

2019-11-04 Thread Maxim Levitsky
On Tue, 2019-10-29 at 09:33 -0400, John Snow wrote: > > On 10/28/19 6:35 AM, Max Reitz wrote: > > On 13.09.19 15:36, Maxim Levitsky wrote: > > > This is the second part of the patches I prepared > > > for this driver back when I worked on mdev-nvme. > > > > > > V2: addressed review feedback, no m

Re: [PATCH v2 2/2] nbd: Allow description when creating NBD blockdev

2019-11-04 Thread Maxim Levitsky
On Thu, 2019-10-10 at 16:00 -0500, Eric Blake wrote: > Allow blockdevs to match the feature already present in qemu-nbd -D. > Enhance iotest 223 to cover it. > > Signed-off-by: Eric Blake > --- > qapi/block.json| 8 +--- > blockdev-nbd.c | 9 - > monitor/hmp-c

[PATCH v1 6/6] tests/vm: support sites with sha512 checksums

2019-11-04 Thread Alex Bennée
The NetBSD project uses SHA512 for its checksums so lets support that in the download helper. Signed-off-by: Alex Bennée --- tests/vm/basevm.py | 10 -- tests/vm/netbsd| 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py in

Re: [PATCH v2 1/2] nbd: Don't send oversize strings

2019-11-04 Thread Maxim Levitsky
On Tue, 2019-10-15 at 16:16 +, Vladimir Sementsov-Ogievskiy wrote: > 15.10.2019 18:07, Eric Blake wrote: > > On 10/11/19 2:32 AM, Vladimir Sementsov-Ogievskiy wrote: > > > 11.10.2019 0:00, Eric Blake wrote: > > > > Qemu as server currently won't accept export names larger than 256 > > > > bytes

[PATCH v1 1/6] tests/vm: netbsd autoinstall, using serial console

2019-11-04 Thread Alex Bennée
From: Gerd Hoffmann Instead of fetching the prebuilt image from patchew download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds. Signed-off-by: Gerd Hoffmann Reviewed-by:

[PATCH v1 4/6] tests/vm: update netbsd to version 8.1

2019-11-04 Thread Alex Bennée
From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann Message-Id: <20191031085306.2-5-kra...@redhat.com> Signed-off-by: Alex Bennée --- tests/vm/netbsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vm/netbsd b/tests/vm/netbsd index d1bfd01..33779402dd1 100755 ---

[PATCH v1 5/6] tests: only run ipmi-bt-test if CONFIG_LINUX

2019-11-04 Thread Alex Bennée
This test has been unstable on NetBSD for awhile. It seems the mechanism used to listen to a random port is a Linux-ism (although a received wisdom Linux-ism rather than a well documented one). As working around would add more hard to test complexity to the test I've gone for the easier option of m

[PATCH v1 0/6] testing/next (netbsd stuff)

2019-11-04 Thread Alex Bennée
Hi, As we approach hard-freeze I'm trying to temper what comes in through the testing/next tree. However it would be nice to get the NetBSD upto speed with the other NetBSDs. Although the serial install is working well for me this has had a rocky road so if others could also give it a good testing

[PATCH v1 2/6] tests/vm: add console_consume helper

2019-11-04 Thread Alex Bennée
From: Gerd Hoffmann Helper function to read all console output. Signed-off-by: Gerd Hoffmann Message-Id: <20191031085306.2-3-kra...@redhat.com> Signed-off-by: Alex Bennée --- tests/vm/basevm.py | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tests/vm/basevm.py b/t

[PATCH v1 3/6] tests/vm: use console_consume for netbsd

2019-11-04 Thread Alex Bennée
From: Gerd Hoffmann Use new helper to read all pending console output, not just a single char. Unblocks installer boot. Signed-off-by: Gerd Hoffmann Message-Id: <20191031085306.2-4-kra...@redhat.com> Signed-off-by: Alex Bennée --- tests/vm/netbsd | 2 +- 1 file changed, 1 insertion(+), 1

[PULL 1/2] qga-win: network-get-interfaces command name field bug fix

2019-11-04 Thread Michael Roth
From: Bishara AbuHattoum Network interface name is fetched as an encoded WCHAR array, (wide character), then it is decoded using the guest's CP_ACP Windows code page, which is the default code page as configure in the guest's Windows, then it is returned as a byte array, (char array). As stated

[PULL 0/2] qemu-ga patch queue for 4.2-rc0

2019-11-04 Thread Michael Roth
The following changes since commit 36609b4fa36f0ac934874371874416f7533a5408: Merge remote-tracking branch 'remotes/palmer/tags/palmer-for-master-4.2-sf1' into staging (2019-11-02 17:59:03 +) are available in the Git repository at: git://github.com/mdroth/qemu.git tags/qga-pull-2019-11-0

[PULL 2/2] qga: Add "guest-get-memory-block-info" to blacklist

2019-11-04 Thread Michael Roth
From: Basil Salman Memory block commands are only supported for linux with sysfs, "guest-get-memory-block-info" was not in blacklist for other cases. Reported on: https://bugzilla.redhat.com/show_bug.cgi?id=1751431 Signed-off-by: Basil Salman Reviewed-by: Marc-André Lureau Signed-off-by: Mich

Re: [RFC v2 00/22] intel_iommu: expose Shared Virtual Addressing to VM

2019-11-04 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:21AM -0400, Liu Yi L wrote: > Shared virtual address (SVA), a.k.a, Shared virtual memory (SVM) on Intel > platforms allow address space sharing between device DMA and applications. > SVA can reduce programming complexity and enhance security. > This series is intended

Re: [RFC v2 13/22] intel_iommu: add PASID cache management infrastructure

2019-11-04 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:34AM -0400, Liu Yi L wrote: > This patch adds a PASID cache management infrastructure based on > new added structure VTDPASIDAddressSpace, which is used to track > the PASID usage and future PASID tagged DMA address translation > support in vIOMMU. > > struct VTDP

Re: [PATCH 1/1] target/arm: Add support for cortex-m7 CPU

2019-11-04 Thread Alex Bennée
Christophe Lyon writes: > This is derived from cortex-m4 description, adding DP support and FPv5 > instructions with the corresponding flags in isar and mvfr2. > > Checked that it could successfully execute > vrinta.f32 s15, s15 > while cortex-m4 emulation rejects it with "illegal instruction".

Re: [RFC v2 14/22] vfio/pci: add iommu_context notifier for pasid bind/unbind

2019-11-04 Thread David Gibson
On Thu, Oct 24, 2019 at 08:34:35AM -0400, Liu Yi L wrote: > This patch adds notifier for pasid bind/unbind. VFIO registers this > notifier to listen to the dual-stage translation (a.k.a. nested > translation) configuration changes and propagate to host. Thus vIOMMU > is able to set its translation

Re: [PING] [PATCH 1/1] target/arm: Add support for cortex-m7 CPU

2019-11-04 Thread Christophe Lyon
ping? http://patchwork.ozlabs.org/patch/1183934/ On Fri, 25 Oct 2019 at 11:08, Christophe Lyon wrote: > > This is derived from cortex-m4 description, adding DP support and FPv5 > instructions with the corresponding flags in isar and mvfr2. > > Checked that it could successfully execute > vrinta.

Re: [PATCH v17 4/7] target/ppc: Build rtas error log upon an MCE

2019-11-04 Thread David Gibson
On Thu, Oct 24, 2019 at 01:13:04PM +0530, Ganesh Goudar wrote: > From: Aravinda Prasad > > Upon a machine check exception (MCE) in a guest address space, > KVM causes a guest exit to enable QEMU to build and pass the > error to the guest in the PAPR defined rtas error log format. > > This patch

Re: RFC: New device for zero-copy VM memory access

2019-11-04 Thread Dr. David Alan Gilbert
* ge...@hostfission.com (ge...@hostfission.com) wrote: > > > On 2019-11-04 22:55, Dr. David Alan Gilbert wrote: > > * ge...@hostfission.com (ge...@hostfission.com) wrote: > > > > > > > > > On 2019-11-03 21:10, ge...@hostfission.com wrote: > > > > On 2019-11-01 02:52, Dr. David Alan Gilbert wrot

Re: [PATCH] tcg plugins: expose an API version concept

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 2:18 PM, Alex Bennée wrote: This is a very simple versioning API which allows the plugin infrastructure to check the API a plugin was built against. We also expose a min/cur API version to the plugin via the info block in case it wants to avoid using old deprecated APIs in the future.

Re: [RFC 0/3] block/file-posix: Work around XFS bug

2019-11-04 Thread Max Reitz
On 04.11.19 16:49, Alberto Garcia wrote: > On Mon 04 Nov 2019 04:14:56 PM CET, Max Reitz wrote: > No, what I meant was that the original problem that led to c8bb23cbdbe would go away. >>> >>> Ah, right. Not quite, according to my numbers: >>> >>> |--++

Re: [RFC 0/3] block/file-posix: Work around XFS bug

2019-11-04 Thread Alberto Garcia
On Mon 04 Nov 2019 04:14:56 PM CET, Max Reitz wrote: >>> No, what I meant was that the original problem that led to >>> c8bb23cbdbe would go away. >> >> Ah, right. Not quite, according to my numbers: >> >> |--++-+-| >> | Cluster size | subc

Re: [PATCH v5 08/13] hw/core: deprecate old reset functions and introduce new ones

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 1:01 PM, Damien Hedde wrote: On 11/1/19 12:35 AM, Philippe Mathieu-Daudé wrote: On 10/18/19 5:06 PM, Damien Hedde wrote: Deprecate device_legacy_reset(), qdev_reset_all() and qbus_reset_all() to be replaced by new functions device_cold_reset() and bus_cold_reset() which uses resettab

Re: [RFC 0/3] block/file-posix: Work around XFS bug

2019-11-04 Thread Max Reitz
On 04.11.19 16:12, Alberto Garcia wrote: > On Mon 04 Nov 2019 03:25:12 PM CET, Max Reitz wrote: >> So, it's obvious that c8bb23cbdbe32f5c326 is significant for 1M >> cluster-size, even on rotational disk, which means that previous >> assumption about calling handle_alloc_space() only fo

[PATCH v7 7/8] Acceptance tests: depend on qemu-img

2019-11-04 Thread Cleber Rosa
Tests using the avocado.utils.vmimage library make use of qemu-img, and because it makes sense to use the version matching the rest of the source code, let's make sure it gets built. Its selection, instead of a possible qemu-img binary installed system wide, is already dealt with by the change tha

[PATCH v7 8/8] Acceptance test: add "boot_linux" tests

2019-11-04 Thread Cleber Rosa
This acceptance test, validates that a full blown Linux guest can successfully boot in QEMU. In this specific case, the guest chosen is Fedora version 31. * x86_64, pc and q35 machine types, with and without kvm as an accellerator * aarch64 and virt machine type, with and without kvm as an

[PATCH v7 4/8] Acceptance tests: use relative location for tests

2019-11-04 Thread Cleber Rosa
An Avocado Test ID[1] is composed by a number of components, but it starts with the Test Name, usually a file system location that was given to the loader. Because the source directory is being given as a prefix to the "tests/acceptance" directory containing the acceptance tests, the test names wi

[PATCH v7 6/8] Acceptance tests: add the build directory to the system PATH

2019-11-04 Thread Cleber Rosa
So that when binaries such as qemu-img are searched for, those in the build tree will be favored. As a clarification, SRC_ROOT_DIR is dependent on the location from where tests are executed, so they are equal to the build directory if one is being used. The original motivation is that Avocado lib

[PATCH v7 5/8] Acceptance tests: keep a stable reference to the QEMU build dir

2019-11-04 Thread Cleber Rosa
This is related to the the differences in in-tree and out-of-tree builds in QEMU. For simplification, means my build directory. Currently, by running a `make check-acceptance` one gets (in tests/acceptance/avocado_qemu/__init__.py): SRC_ROOT_DIR: /tests/acceptance/avocado_qemu/../../.. This

[PATCH v7 2/8] Acceptance tests: introduce utility method for tags unique vals

2019-11-04 Thread Cleber Rosa
Currently a test can describe the target architecture binary that it should primarily be run with, be setting a single tag value. The same approach is expected to be done with other QEMU aspects to be tested, for instance, the machine type and accelerator, so let's generalize the logic into a util

[PATCH v7 3/8] Acceptance tests: use avocado tags for machine type

2019-11-04 Thread Cleber Rosa
The same way the arch tag is being used as a fallback for the arch parameter, let's do the same for QEMU's machine and avoid some boiler plate code. Signed-off-by: Cleber Rosa --- docs/devel/testing.rst | 18 tests/acceptance/avocado_qemu/__init__.py | 5 ++ tests/

[PATCH v7 1/8] Acceptance test x86_cpu_model_versions: use default vm

2019-11-04 Thread Cleber Rosa
The default vm provided by the test, available as self.vm, serves the same purpose of the one obtained by self.get_vm(), but saves a line and matches the style of other tests. Signed-off-by: Cleber Rosa --- tests/acceptance/x86_cpu_model_versions.py | 100 ++--- 1 file changed, 4

[PATCH v7 0/8] Acceptance test: Add "boot_linux" acceptance test

2019-11-04 Thread Cleber Rosa
This acceptance test, validates that a full blown Linux guest can successfully boot in QEMU. In this specific case, the guest chosen is Fedora version 31. * x86_64, pc and q35 machine types, with and without kvm as an accellerator * aarch64 and virt machine type, with and without kvm as an

Re: [RFC 0/3] block/file-posix: Work around XFS bug

2019-11-04 Thread Alberto Garcia
On Mon 04 Nov 2019 03:25:12 PM CET, Max Reitz wrote: > So, it's obvious that c8bb23cbdbe32f5c326 is significant for 1M > cluster-size, even on rotational disk, which means that previous > assumption about calling handle_alloc_space() only for ssd is wrong, > we need smarter heuristi

[PATCH] hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine

2019-11-04 Thread Clement Deschamps
Set the NSACR CP11 and CP10 bits, to allow FPU access in Non-Secure state when using dummy SMC setup routine. Otherwise an AArch32 kernel will UNDEF as soon as it tries to use the FPU. This fixes kernel panic when booting raspbian on raspi2. Successfully tested with: 2017-01-11-raspbian-jessie-

Re: [RFC PATCH v2 15/26] qcow2: Add subcluster support to zero_in_l2_slice()

2019-11-04 Thread Max Reitz
On 04.11.19 16:04, Max Reitz wrote: > On 26.10.19 23:25, Alberto Garcia wrote: >> Setting the QCOW_OFLAG_ZERO bit of the L2 entry is forbidden if an >> image has subclusters. Instead, the individual 'all zeroes' bits must >> be used. >> >> Signed-off-by: Alberto Garcia >> --- >> block/qcow2-clust

Re: [RFC PATCH v2 16/26] qcow2: Add subcluster support to discard_in_l2_slice()

2019-11-04 Thread Max Reitz
On 26.10.19 23:25, Alberto Garcia wrote: > Setting the QCOW_OFLAG_ZERO bit of the L2 entry is forbidden if an > image has subclusters. Instead, the individual 'all zeroes' bits must > be used. > > Signed-off-by: Alberto Garcia > --- > block/qcow2-cluster.c | 6 +- > 1 file changed, 5 inserti

Re: [RFC PATCH v2 15/26] qcow2: Add subcluster support to zero_in_l2_slice()

2019-11-04 Thread Max Reitz
On 26.10.19 23:25, Alberto Garcia wrote: > Setting the QCOW_OFLAG_ZERO bit of the L2 entry is forbidden if an > image has subclusters. Instead, the individual 'all zeroes' bits must > be used. > > Signed-off-by: Alberto Garcia > --- > block/qcow2-cluster.c | 14 ++ > 1 file changed,

Re: [RFC PATCH v2 11/26] qcow2: Add qcow2_get_subcluster_type()

2019-11-04 Thread Max Reitz
On 04.11.19 13:35, Max Reitz wrote: > On 26.10.19 23:25, Alberto Garcia wrote: >> This function returns the type of an individual subcluster. If an >> image does not have subclusters then this returns the exact same value >> as qcow2_get_cluster_type(). >> >> The information in standard and extende

Re: [RFC PATCH v2 14/26] qcow2: Add subcluster support to qcow2_get_cluster_offset()

2019-11-04 Thread Max Reitz
On 26.10.19 23:25, Alberto Garcia wrote: > The logic of this function remains pretty much the same, except that > it uses count_contiguous_subclusters(), which combines the logic of > count_contiguous_clusters() / count_contiguous_clusters_unallocated() > and checks individual subclusters. > > Sig

Re: [PATCH v5 02/13] hw/core/qdev: add trace events to help with resettable transition

2019-11-04 Thread Philippe Mathieu-Daudé
On 11/4/19 1:16 PM, Damien Hedde wrote: On 11/1/19 12:23 AM, Philippe Mathieu-Daudé wrote: On 10/18/19 5:06 PM, Damien Hedde wrote: Adds trace events to reset procedure and when updating the parent bus of a device. Signed-off-by: Damien Hedde ---   hw/core/qdev.c   | 27 +

Re: [RFC 0/3] block/file-posix: Work around XFS bug

2019-11-04 Thread Max Reitz
On 04.11.19 15:03, Alberto Garcia wrote: > On Fri 25 Oct 2019 04:19:30 PM CEST, Max Reitz wrote: So, it's obvious that c8bb23cbdbe32f5c326 is significant for 1M cluster-size, even on rotational disk, which means that previous assumption about calling handle_alloc_space() only for ssd

Re: [RFC PATCH v2 13/26] qcow2: Add subcluster support to calculate_l2_meta()

2019-11-04 Thread Max Reitz
On 26.10.19 23:25, Alberto Garcia wrote: > If an image has subclusters then there are more copy-on-write > scenarios that we need to consider. Let's say we have a write request > from the middle of subcluster #3 until the end of the cluster: > >- If the cluster is new, then subclusters #0 to #

Re: [PATCH] qom: Fix error message in object_class_property_add()

2019-11-04 Thread Laurent Vivier
Le 04/11/2019 à 14:23, Greg Kurz a écrit : > The error message in object_class_property_add() was copied from > object_property_add() in commit 16bf7f522a2ff. Clarify that it is > about a class, not an object. > > While here, have the format string in both functions to fit in a > single line for b

Re: [RFC 0/3] block/file-posix: Work around XFS bug

2019-11-04 Thread Alberto Garcia
On Fri 25 Oct 2019 04:19:30 PM CEST, Max Reitz wrote: >>> So, it's obvious that c8bb23cbdbe32f5c326 is significant for 1M >>> cluster-size, even on rotational disk, which means that previous >>> assumption about calling handle_alloc_space() only for ssd is wrong, >>> we need smarter heuristics.. >>

[PATCH] pl031: Expose RTCICR as proper WC register

2019-11-04 Thread Alexander Graf
The current pl031 RTCICR register implementation always clears the IRQ pending status on a register write, regardless of the value it writes. To justify that behavior, it references the arm926e documentation (DDI0287B) and indicates that said document states that any write clears the internal IRQ

[PATCH] qom: Fix error message in object_class_property_add()

2019-11-04 Thread Greg Kurz
The error message in object_class_property_add() was copied from object_property_add() in commit 16bf7f522a2ff. Clarify that it is about a class, not an object. While here, have the format string in both functions to fit in a single line for better grep-ability, despite the checkpatch warning. Si

[PATCH] tcg plugins: expose an API version concept

2019-11-04 Thread Alex Bennée
This is a very simple versioning API which allows the plugin infrastructure to check the API a plugin was built against. We also expose a min/cur API version to the plugin via the info block in case it wants to avoid using old deprecated APIs in the future. Signed-off-by: Alex Bennée --- include

[Bug 1851095] Re: [feature request] awareness of instructions that are well emulated

2019-11-04 Thread Laurent Desnogues
Can you please provide a binary (preferably statically built or with required shared libraries attached)? Thanks, Laurent -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1851095 Title: [feature req

Re: [RFC PATCH v2 12/26] qcow2: Handle QCOW2_CLUSTER_UNALLOCATED_SUBCLUSTER

2019-11-04 Thread Max Reitz
On 04.11.19 14:03, Alberto Garcia wrote: > On Mon 04 Nov 2019 01:57:42 PM CET, Max Reitz wrote: >> On 26.10.19 23:25, Alberto Garcia wrote: >>> In the previous patch we added a new QCow2ClusterType named >>> QCOW2_CLUSTER_UNALLOCATED_SUBCLUSTER. There is a couple of places >>> where this new value

Re: [PATCH] Makefile: install bios-microvm like other binary blobs

2019-11-04 Thread Sergio Lopez
Philippe Mathieu-Daudé writes: > From: Bruce Rogers > > Commit 0d5fae3e52e introduced bios-microvm.bin but forgot to add > it to the list of blobs being installed. > Add it to the list of BLOBS that get installed. > > Fixes: 0d5fae3e52e "roms: add microvm-bios (qboot) as binary" > Signed-off-b

Re: [RFC PATCH v2 12/26] qcow2: Handle QCOW2_CLUSTER_UNALLOCATED_SUBCLUSTER

2019-11-04 Thread Alberto Garcia
On Mon 04 Nov 2019 01:57:42 PM CET, Max Reitz wrote: > On 26.10.19 23:25, Alberto Garcia wrote: >> In the previous patch we added a new QCow2ClusterType named >> QCOW2_CLUSTER_UNALLOCATED_SUBCLUSTER. There is a couple of places >> where this new value needs to be handled, and that is what this patc

  1   2   >