Re: [Qemu-devel] [PATCH] postcopy: Synchronize usage of the balloon inhibitor

2018-08-23 Thread Christian Borntraeger
On 08/22/2018 09:32 PM, Alex Williamson wrote: > While the qemu_balloon_inhibit() interface appears rather general purpose, > postcopy uses it in a last-caller-wins approach with no guarantee of balanced > inhibits and de-inhibits. Wrap postcopy's usage of the inhibitor to give it > one vote ov

[Qemu-devel] [PATCH v6 2/2] target: arm: Add support for VCPU event states

2018-08-23 Thread Dongjiu Geng
This patch extends the qemu-kvm state sync logic with support for KVM_GET/SET_VCPU_EVENTS, giving access to yet missing SError exception. And also it can support the exception state migration. Signed-off-by: Dongjiu Geng --- Change since v5: address Peter's comments: 1. Move the "struct serror" b

[Qemu-devel] [PATCH v6 1/2] linux-headers: Update to kernel mainline commit 815f0ddb3

2018-08-23 Thread Dongjiu Geng
Update our kernel headers to mainline commit 815f0ddb346c196018d4d8f8f55c12b83da1de3f (include/linux/compiler*.h: make compiler-*.h mutually exclusive) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13 +

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

2018-08-23 Thread Gerd Hoffmann
> > Reviewed-by: Thomas Huth > > > > Off-topic: I wonder whether we could even deprecate the SGA device > > nowadays, since the main seabios now can redirect the console to the > > serial port, too? > > No idea, but then I think we can deprecate it, we already have enough > weird things around.

[Qemu-devel] [PATCH V3 4/4] target-i386: add i440fx 0xcf8 port as coalesced_pio

2018-08-23 Thread Peng Hao
Signed-off-by: Peng Hao --- hw/pci-host/piix.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0e60834..da73743 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -327,6 +327,10 @@ static void i440fx_pcihost_realize(DeviceState *dev,

[Qemu-devel] [PATCH V3 3/4] target-i386: add rtc 0x70 port as coalesced_pio

2018-08-23 Thread Peng Hao
Signed-off-by: Peng Hao --- hw/timer/mc146818rtc.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index 6f1f723..1ef5f77 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -70,6 +70,7 @@ typedef struct RTCState { I

[Qemu-devel] [PATCH V3 1/4] target-i386: introduce coalesced_pio kvm header update

2018-08-23 Thread Peng Hao
add coalesced_pio's struct and KVM_CAP_COALESCED_PIO. Signed-off-by: Peng Hao --- linux-headers/linux/kvm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 98f389a..747b473 100644 --- a/linux-headers/linux/kvm.h

[Qemu-devel] [PATCH V3 0/4] introduce coalesced pio support

2018-08-23 Thread Peng Hao
Coalesced pio is base on coalesced mmio and can be used for some port like rtc port, pci-host config port, virtio-pci config port and so on. Specially in case of rtc as coalesced pio, some versions of windows guest access rtc frequently because of rtc as system tick. guest access rtc like this:

[Qemu-devel] [PATCH V3 2/4] target-i386:add coalesced_pio API

2018-08-23 Thread Peng Hao
Signed-off-by: Peng Hao --- accel/kvm/kvm-all.c | 58 - include/exec/memattrs.h | 2 +- 2 files changed, 53 insertions(+), 7 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index eb7db92..830745e 100644 --- a/accel/kvm/kvm-

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

2018-08-23 Thread Thomas Huth
On 2018-08-23 09:43, Gerd Hoffmann wrote: >>> Reviewed-by: Thomas Huth >>> >>> Off-topic: I wonder whether we could even deprecate the SGA device >>> nowadays, since the main seabios now can redirect the console to the >>> serial port, too? >> >> No idea, but then I think we can deprecate it, we a

Re: [Qemu-devel] [PULL 1/4] balloon: Allow multiple inhibit users

2018-08-23 Thread Cornelia Huck
On Wed, 22 Aug 2018 13:01:39 -0600 Alex Williamson wrote: > So apparently I assumed too much about the existing balloon inhibitor > use case, it's clearly not as general as the interface would lead one > to believe. The immediate solution is probably to make a postcopy > specific wrapper around

Re: [Qemu-devel] [PATCH] pc: acpi: revert back to 1 SRAT entry for hotpluggable area

2018-08-23 Thread Igor Mammedov
On Wed, 22 Aug 2018 15:01:12 -0300 Eduardo Habkost wrote: > On Wed, Aug 22, 2018 at 03:05:36PM +0200, Igor Mammedov wrote: > > On Wed, 22 Aug 2018 12:06:26 +0200 > > Laszlo Ersek wrote: > > > > > On 08/22/18 11:46, Igor Mammedov wrote: > > > > Commit > > > > 10efd7e108 "pc: acpi: fix memo

Re: [Qemu-devel] [PATCH] postcopy: Synchronize usage of the balloon inhibitor

2018-08-23 Thread Cornelia Huck
On Wed, 22 Aug 2018 13:32:24 -0600 Alex Williamson wrote: > While the qemu_balloon_inhibit() interface appears rather general purpose, > postcopy uses it in a last-caller-wins approach with no guarantee of balanced > inhibits and de-inhibits. Wrap postcopy's usage of the inhibitor to give it > o

Re: [Qemu-devel] [PATCH] postcopy: Synchronize usage of the balloon inhibitor

2018-08-23 Thread Juan Quintela
Alex Williamson wrote: > While the qemu_balloon_inhibit() interface appears rather general purpose, > postcopy uses it in a last-caller-wins approach with no guarantee of balanced > inhibits and de-inhibits. Wrap postcopy's usage of the inhibitor to give it > one vote overall, using the same last

Re: [Qemu-devel] virtio_stw_phys_cached crash

2018-08-23 Thread Fam Zheng
On Wed, 08/22 19:45, Paolo Bonzini wrote: > On 22/08/2018 16:57, Fam Zheng wrote: > > On master (13b7b188501) and v3.0.0, booting the OpenBSD install63.iso with a > > virtio-net (slirp backend) device gives this assertion failure: > > > > (gdb) bt > > #0 0x7f6f25703feb in raise () at /lib64/l

Re: [Qemu-devel] [PATCH] char-pty: remove unnecessary #ifdef

2018-08-23 Thread Paolo Bonzini
On 23/08/2018 00:12, Roman Bolshakov wrote: > On Wed, Aug 22, 2018 at 12:38:35PM +0200, Paolo Bonzini wrote: >> For some reason __APPLE__ was not checked in pty code. However, the #ifdef >> is redundant: this file is already compiled only if CONFIG_POSIX, same as >> util/qemu-openpty.c which it us

Re: [Qemu-devel] [PATCH v2 0/3] ui: remove deprecated UI frontends

2018-08-23 Thread Fam Zheng
On Wed, 08/22 14:15, Daniel P. Berrangé wrote: > We deprecated GTK2 and SDL1.2 in the 2.12.0 release, so they are able to > be removed entirely in the 3.1.0 release. The min GTK3 version can also > be bumped up based the distros we aim to support. > > Note that before this can merge, the openbsd V

Re: [Qemu-devel] [PATCH] pc: acpi: revert back to 1 SRAT entry for hotpluggable area

2018-08-23 Thread Yu Zhang
On 8/23/2018 2:01 AM, Eduardo Habkost wrote: On Wed, Aug 22, 2018 at 03:05:36PM +0200, Igor Mammedov wrote: On Wed, 22 Aug 2018 12:06:26 +0200 Laszlo Ersek wrote: On 08/22/18 11:46, Igor Mammedov wrote: Commit 10efd7e108 "pc: acpi: fix memory hotplug regression by reducing stub SRAT en

[Qemu-devel] KVM call for 2018-08-28

2018-08-23 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. At the end of Monday I will send an email with the agenda or the cancellation of the call, so hurry up. After discussions on the QEMU Summit, we are going to have always open a KVM call where you can add topics. Call details: B

Re: [Qemu-devel] [PULL 0/7] Usb 20180821 patches

2018-08-23 Thread Peter Maydell
On 21 August 2018 at 10:11, Gerd Hoffmann wrote: > The following changes since commit d0092d90eb546a8bbe9e9120426c189474123797: > > Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180820' into > staging (2018-08-20 17:41:18 +0100) > > are available in the git repository at: > > git:

[Qemu-devel] [Bug 1788582] [NEW] Race condition during shutdown

2018-08-23 Thread Marc Hartmayer
Public bug reported: I ran into a bug when I started several VMs in parallel using libvirt. The VMs are using only a kernel and a initrd (which includes a minimal OS). The guest OS itself does a 'poweroff -f' as soon as the login prompt shows up. So the expectaction is that the VMs will start, the

Re: [Qemu-devel] [PULL 00/12] Ui 20180821 v2 patches

2018-08-23 Thread Peter Maydell
On 21 August 2018 at 13:05, Gerd Hoffmann wrote: > The following changes since commit d0092d90eb546a8bbe9e9120426c189474123797: > > Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180820' into > staging (2018-08-20 17:41:18 +0100) > > are available in the git repository at: > > git:

Re: [Qemu-devel] [Qemu-arm] [PATCH 0/8] arm/raspi: Make fb handle virtual viewport

2018-08-23 Thread Peter Maydell
Ping for code review? thanks -- PMM On 14 August 2018 at 15:44, Peter Maydell wrote: > The raspi framebuffer supports a virtual viewport which can > be set up so that the virtual framebuffer size is larger than > the physical screen size, and the displayed area is at some > offset within this vi

Re: [Qemu-devel] [PATCH V11 15/20] net/net.c: Add net client type check function for COLO

2018-08-23 Thread Zhang Chen
On Wed, Aug 22, 2018 at 4:22 PM Jason Wang wrote: > > > On 2018年08月21日 17:26, Zhang Chen wrote: > > > > > > On Tue, Aug 21, 2018 at 11:27 AM Jason Wang > > wrote: > > > > > > > > On 2018年08月12日 04:59, Zhang Chen wrote: > > > From: Zhang Chen >

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

2018-08-23 Thread Gerd Hoffmann
> > I remember we even discussed that a while back ... > > Oh yes: > > https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e > > Somehow never ended up being merged. > > Sounds like a good idea! Could you repost the patch, with an update to > qemu-

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

2018-08-23 Thread Daniel P . Berrangé
On Thu, Aug 23, 2018 at 11:48:50AM +0200, Gerd Hoffmann wrote: > > > I remember we even discussed that a while back ... > > > Oh yes: > > > https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e > > > Somehow never ended up being merged. > > > > Sou

[Qemu-devel] [PULL 04/12] sdl2: redraw correctly when scanout_mode enabled.

2018-08-23 Thread Gerd Hoffmann
From: Tao Wu When scanout_mode enabled, surface is out of sync with actual screen. In such case, we just call sdl2_gl_scanout_flush to do redraw. This fixes bug reported in https://lists.freedesktop.org/archives/virglrenderer-devel/2018-July/001330.html Signed-off-by: Tao Wu Message-id: 2018072

[Qemu-devel] [PULL 01/12] ui/sdl2: Remove the obsolete SDL_INIT_NOPARACHUTE flag

2018-08-23 Thread Gerd Hoffmann
From: Thomas Huth SDL_INIT_NOPARACHUTE is not used in SDL2 anymore, and the define is just a dummy (see https://wiki.libsdl.org/MigrationGuide#Some_general_truths for example). So we can remove it and get rid of the "flags" variable nowadays. Signed-off-by: Thomas Huth Message-id: 1533721602-15

[Qemu-devel] [PULL 03/12] ui: use enum to string helpers

2018-08-23 Thread Gerd Hoffmann
From: Marc-André Lureau Minor code simplification. Signed-off-by: Marc-André Lureau Reviewed-by: Markus Armbruster Message-id: 20180801092508.4927-1-marcandre.lur...@redhat.com Signed-off-by: Gerd Hoffmann --- qemu-keymap.c | 2 +- ui/console.c | 6 +++--- 2 files changed, 4 insertions(+),

[Qemu-devel] [PULL 07/12] spice-display: access ptr_x/ptr_y under Mutex

2018-08-23 Thread Gerd Hoffmann
From: Paolo Bonzini The OpenGL-enabled SPICE code was not accessing the cursor position under the SimpleSpiceDisplay lock. Fix this. Signed-off-by: Paolo Bonzini Reviewed-by: Marc-André Lureau Message-id: 20180720063109.4631-2-pbonz...@redhat.com Signed-off-by: Gerd Hoffmann --- ui/spice-di

[Qemu-devel] [PULL 02/12] vnc: fix memleak of the "vnc-worker-output" name

2018-08-23 Thread Gerd Hoffmann
From: Peter Wu Fixes repeated memory leaks of 18 bytes when using VNC: Direct leak of 831024 byte(s) in 46168 object(s) allocated from: ... #4 0x7f6d2f919bdd in g_strdup_vprintf glib/gstrfuncs.c:514 #5 0x56085cdcf660 in buffer_init util/buffer.c:59 #6 0x56085c

[Qemu-devel] [PULL 08/12] spice-display: fix qemu_spice_cursor_refresh_bh locking

2018-08-23 Thread Gerd Hoffmann
From: Paolo Bonzini spice-display should not call the ui/console.c functions dpy_cursor_define and dpy_moues_set with the SimpleSpiceDisplay lock taken. That will cause a deadlock, because the DisplayChangeListener callbacks will take the lock again. It is also in general a bad idea to invoke g

[Qemu-devel] [PULL 00/12] Ui 20180823 v3 patches

2018-08-23 Thread Gerd Hoffmann
The following changes since commit d0092d90eb546a8bbe9e9120426c189474123797: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180820' into staging (2018-08-20 17:41:18 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/ui-20180823-v3-pull-re

[Qemu-devel] [PULL 11/12] dmabuf: add y0_top, pass it to spice

2018-08-23 Thread Gerd Hoffmann
From: Marc-André Lureau Some scanouts during boot are top-down without it. y0_top is set from VHOST_USER_GPU_DMABUF_SCANOUT code path in the last patch of this series. In current QEMU code base, only vfio/display uses dmabuf API. But the VFIO query interface doesn't provide or need that detail

[Qemu-devel] [PULL 09/12] ui/sdl2: Fix broken -full-screen CLI option

2018-08-23 Thread Gerd Hoffmann
From: Thomas Huth We've got to set the gui_fullscreen variable before creating the SDL2 window, otherwise the initial window will not be created in fullscreen mode. Buglink: https://bugs.launchpad.net/bugs/1780812 Signed-off-by: Thomas Huth Message-id: 1531161850-6860-1-git-send-email-th...@red

[Qemu-devel] [PULL 12/12] util: promote qemu_egl_rendernode_open() to libqemuutil

2018-08-23 Thread Gerd Hoffmann
From: Marc-André Lureau vhost-user-gpu will share the same code to open a DRM node. Signed-off-by: Marc-André Lureau Message-Id: <20180713130916.4153-20-marcandre.lur...@redhat.com> Signed-off-by: Gerd Hoffmann --- include/qemu/drm.h | 6 + ui/egl-helpers.c | 51 ++-

[Qemu-devel] [PULL 05/12] doc: switch to modern syntax for VNC TLS setup

2018-08-23 Thread Gerd Hoffmann
From: Daniel P. Berrangé The use of 'tls', 'x509' and 'x509verify' properties is the deprecated backcompat syntax, replaced by use of TLS creds objects. Signed-off-by: Daniel P. Berrangé Message-id: 20180725092751.21767-2-berra...@redhat.com Signed-off-by: Gerd Hoffmann --- qemu-doc.texi | 20

[Qemu-devel] [PULL 06/12] vnc: remove support for deprecated tls, x509, x509verify options

2018-08-23 Thread Gerd Hoffmann
From: Daniel P. Berrangé The 'tls-creds' option accepts the name of a TLS credentials object. This replaced the usage of 'tls', 'x509' and 'x509verify' options in 2.5.0. These deprecated options were grandfathered in when the deprecation policy was introduded in 2.10.0, so can now finally be remo

Re: [Qemu-devel] [PULL 00/12] Ui 20180821 v2 patches

2018-08-23 Thread Gerd Hoffmann
On Thu, Aug 23, 2018 at 10:22:08AM +0100, Peter Maydell wrote: > On 21 August 2018 at 13:05, Gerd Hoffmann wrote: > > The following changes since commit d0092d90eb546a8bbe9e9120426c189474123797: > > > > Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180820' into > > staging (2018-08-

[Qemu-devel] [PULL 10/12] ui/vnc: Remove useless parenthesis around DIV_ROUND_UP macro

2018-08-23 Thread Gerd Hoffmann
From: Philippe Mathieu-Daudé Patch created mechanically by rerunning: $ spatch --sp-file scripts/coccinelle/round.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180704153919.12432-7-f4...@amsa

Re: [Qemu-devel] [PATCH v2 0/3] ui: remove deprecated UI frontends

2018-08-23 Thread Andrea Bolognani
On Wed, 2018-08-22 at 14:15 +0100, Daniel P. Berrangé wrote: > We deprecated GTK2 and SDL1.2 in the 2.12.0 release, so they are able to > be removed entirely in the 3.1.0 release. The min GTK3 version can also > be bumped up based the distros we aim to support. > > Note that before this can merge,

Re: [Qemu-devel] [PATCH 18/22] hw/ssi/pl022: Use DeviceState::realize rather than SysBusDevice::init

2018-08-23 Thread Peter Maydell
On 21 August 2018 at 07:53, Philippe Mathieu-Daudé wrote: > On 08/20/2018 11:11 AM, Peter Maydell wrote: >> Move from the legacy SysBusDevice::init method to using >> DeviceState::realize. > > It would be nice to have a wiki page where each maintainer list his > deprecated/legacy API and which cur

Re: [Qemu-devel] [PATCH 1/9] hw/intc/arm_gic: Document QEMU interface

2018-08-23 Thread Peter Maydell
On 22 August 2018 at 09:15, Luc Michel wrote: > > > On 8/21/18 3:28 PM, Peter Maydell wrote: >> The GICv2's QEMU interface (sysbus MMIO regions, IRQs, >> etc) is now quite complicated with the addition of the >> virtualization extensions. Add a comment in the header >> file which documents it. >>

Re: [Qemu-devel] [PULL v3 00/46] MIPS queue August 21, 2018 v3

2018-08-23 Thread Peter Maydell
On 21 August 2018 at 14:31, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: > > Merge remote-tracking branch > 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging > (2018-08-21 11:36:15 +01

[Qemu-devel] [PATCH] scripts: report on author emails that are mangled by the mailing list

2018-08-23 Thread Daniel P . Berrangé
In some cases the Author: email address in patches submitted to the list gets mangled such that it says John Doe via Qemu-devel This change is a result of workarounds for DMARC policies. Subsystem maintainers accepting patches need to catch these and fix them before sending pull requests, s

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

2018-08-23 Thread Gerd Hoffmann
Hi, > The only way we can stop using "-device sga" is if we either have > something explicit in the XML saying whether to use it or not, or > alternatively have some indicator associated with the next versioned > machine type that we can hook off. i.e. add some flag to MachineClass (and print i

Re: [Qemu-devel] [PATCH] scripts: report on author emails that are mangled by the mailing list

2018-08-23 Thread Cornelia Huck
On Thu, 23 Aug 2018 11:25:02 +0100 Daniel P. Berrangé wrote: > In some cases the Author: email address in patches submitted to the > list gets mangled such that it says > > John Doe via Qemu-devel > > This change is a result of workarounds for DMARC policies. > > Subsystem maintainers acc

[Qemu-devel] [Bug 1775702] Re: High host CPU load and slower guest after upgrade guest OS Windows 10 to ver 1803

2018-08-23 Thread costinel
hv_synic && hv_stimer only reduces the cpu from 40-50% to 4-5%. still expecting under 1% like linux guests. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1775702 Title: High host CPU load and slowe

[Qemu-devel] [PATCH v2] hw/intc/arm_gic: Document QEMU interface

2018-08-23 Thread Peter Maydell
The GICv2's QEMU interface (sysbus MMIO regions, IRQs, etc) is now quite complicated with the addition of the virtualization extensions. Add a comment in the header file which documents it. Signed-off-by: Peter Maydell --- I needed to write this out to figure out what I was connecting to what in

Re: [Qemu-devel] [PATCH] scripts: report on author emails that are mangled by the mailing list

2018-08-23 Thread Peter Maydell
On 23 August 2018 at 11:25, Daniel P. Berrangé wrote: > In some cases the Author: email address in patches submitted to the > list gets mangled such that it says > > John Doe via Qemu-devel > > This change is a result of workarounds for DMARC policies. I do wonder if overall we'd be better o

Re: [Qemu-devel] [RFC v6 10/27] monitor: allow to use IO thread for parsing

2018-08-23 Thread Marc-André Lureau
Hi On Fri, Jan 5, 2018 at 6:22 PM Stefan Hajnoczi wrote: > > On Tue, Dec 19, 2017 at 04:45:40PM +0800, Peter Xu wrote: > > if (monitor_is_qmp(mon)) { > > -qemu_chr_fe_set_handlers(&mon->chr, monitor_can_read, > > monitor_qmp_read, > > - monitor_qmp_ev

Re: [Qemu-devel] [PATCH] scripts: report on author emails that are mangled by the mailing list

2018-08-23 Thread Daniel P . Berrangé
On Thu, Aug 23, 2018 at 11:41:20AM +0100, Peter Maydell wrote: > On 23 August 2018 at 11:25, Daniel P. Berrangé wrote: > > In some cases the Author: email address in patches submitted to the > > list gets mangled such that it says > > > > John Doe via Qemu-devel > > > > This change is a resul

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

2018-08-23 Thread Juan Quintela
Daniel P. Berrangé wrote: > On Thu, Aug 23, 2018 at 11:48:50AM +0200, Gerd Hoffmann wrote: >> > > I remember we even discussed that a while back ... >> > > Oh yes: >> > > https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e >> > > Somehow never end

Re: [Qemu-devel] [PULL 00/74] Misc patches for 2018-08-21

2018-08-23 Thread Peter Maydell
On 21 August 2018 at 18:01, Paolo Bonzini wrote: > The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: > > Merge remote-tracking branch > 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging > (2018-08-21 11:36:15 +0100) > > are available in the git repo

[Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes

2018-08-23 Thread Peter Maydell
The VM tests currently have a timeout of 2 minutes for trying to connect to ssh. Since the guest VM has to boot from cold to the point of accepting inbound ssh during this time, if the host machine is heavily loaded it can spuriously time out. Increase the timeout from 2 to 5 minutes. Signed-off-b

[Qemu-devel] [Query] Live Migration between machines with different processor ids

2018-08-23 Thread Jaggi, Manish
Hi, Posting again with my cavium ID and CCing relevant folks Live Migration between machines with different processorIds VM Migration between machines with different processorId values throws error in qemu/kvm. Though this check is appropriate but is overkill where two machines are of same SoC/

[Qemu-devel] [PULL v2 00/73] Misc patches for 2018-08-21

2018-08-23 Thread Paolo Bonzini
The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100) are available in the Git repository at: git://github.com/bonzini/qemu.git tags/for-upstr

Re: [Qemu-devel] virtio_stw_phys_cached crash

2018-08-23 Thread Paolo Bonzini
On 23/08/2018 10:43, Fam Zheng wrote: >> Does this help? > Nope. The crash happens the same (once you press "Auto Install" at the first > prompt). The patch has a typo; I have now sent it properly. Paolo

[Qemu-devel] [PATCH] virtio: update MemoryRegionCaches when guest negotiates features

2018-08-23 Thread Paolo Bonzini
Because the cache is sized to include the rings and the event indices, negotiating the VIRTIO_RING_F_EVENT_IDX feature will result in the size of the cache changing. And because MemoryRegionCache accesses are range-checked, if we skip this we end up with an assertion failure. This happens with Ope

[Qemu-devel] [PATCH] tests/migration: Enable the migration test on s390x, too

2018-08-23 Thread Thomas Huth
We can re-use the s390-ccw bios code to implement a small firmware for a s390x guest which prints out the "A" and "B" characters and modifies the memory, as required for the migration test. Signed-off-by: Thomas Huth --- tests/Makefile.include | 1 + tests/migration-test.c

Re: [Qemu-devel] [PATCH] pc: acpi: revert back to 1 SRAT entry for hotpluggable area

2018-08-23 Thread Igor Mammedov
On Thu, 23 Aug 2018 17:01:33 +0800 Yu Zhang wrote: > On 8/23/2018 2:01 AM, Eduardo Habkost wrote: > > On Wed, Aug 22, 2018 at 03:05:36PM +0200, Igor Mammedov wrote: > >> On Wed, 22 Aug 2018 12:06:26 +0200 > >> Laszlo Ersek wrote: > >> > >>> On 08/22/18 11:46, Igor Mammedov wrote: > Co

Re: [Qemu-devel] [PULL 0/7] Linux user for 3.1 patches

2018-08-23 Thread Peter Maydell
On 22 August 2018 at 02:14, Laurent Vivier wrote: > The following changes since commit 13b7b188501d419a7d63c016e00065bcc693b7d4: > > Merge remote-tracking branch > 'remotes/kraxel/tags/vga-20180821-pull-request' into staging (2018-08-21 > 15:57:56 +0100) > > are available in the Git repository

Re: [Qemu-devel] ?==?utf-8?q? [PULL v3 00/46] MIPS queue August 21, 2018 v3

2018-08-23 Thread Aleksandar Markovic
> Original Message > Subject: Re: [PULL v3 00/46] MIPS queue August 21, 2018 v3 > Date: Thursday, August 23, 2018 12:19 CEST > From: Peter Maydell > To: Aleksandar Markovic > CC: QEMU Developers > References: <1534858316-12945-1-git-send-email-aleksandar.marko...@rt-rk.com> >

Re: [Qemu-devel] [PULL v2 00/73] Misc patches for 2018-08-21

2018-08-23 Thread Peter Maydell
On 23 August 2018 at 12:36, Paolo Bonzini wrote: > The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: > > Merge remote-tracking branch > 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging > (2018-08-21 11:36:15 +0100) > > are available in the Git repo

Re: [Qemu-devel] [PATCH 02/22] hw/misc/mps2-fpgaio: Implement PSCNTR and COUNTER

2018-08-23 Thread Richard Henderson
On 08/20/2018 07:10 AM, Peter Maydell wrote: > In the MPS2 FPGAIO, PSCNTR is a free-running downcounter with > a reload value configured via the PRESCALE register, and > COUNTER counts up by 1 every time PSCNTR reaches zero. > Implement these counters. > > We can just increment the counters migrat

[Qemu-devel] [PULL v4 04/46] target/mips: Prevent switching mode related to Config3 ISA bit for nanoMIPS

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Only if Config3.ISA is 3 (microMIPS), the mode should be switched in cpu_state_reset(). Config3.ISA is 1 for nanoMIPS processors, and no mode change should happen. Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 4 ++-- 1

[Qemu-devel] [PULL v4 15/46] target/mips: Add emulation of nanoMIPS instructions MOVE.P and MOVE.PREV

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of nanoMIPS instructions MOVE.P and MOVE.PREV. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 33 - 1 file changed, 32 i

[Qemu-devel] [PULL v3 00/69] Misc patches for 2018-08-21

2018-08-23 Thread Paolo Bonzini
The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100) are available in the Git repository at: git://github.com/bonzini/qemu.git tags/for-upstr

[Qemu-devel] [PULL v4 09/46] target/mips: Add emulation of nanoMIPS 16-bit shift instructions

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of nanoMIPS 16-bit shift instructions. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a

[Qemu-devel] [PULL v4 01/46] target/mips: Add preprocessor constants for nanoMIPS

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Markovic Add ISA_NANOMIPS32 and CPU_NANOMIPS32 preprocessor constants. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/mips-defs.h | 4 1 file changed, 4 insertions(+) diff --g

[Qemu-devel] [PULL v4 12/46] target/mips: Add emulation of nanoMIPS 16-bit logic instructions

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of NOT16, AND16, XOR16, OR16 instructions. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 38 ++ 1 file changed, 38

[Qemu-devel] [PULL v4 08/46] target/mips: Add emulation of nanoMIPS 16-bit branch instructions

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Add emulation of nanoMIPS 16-bit branch instructions. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 158 1 file

[Qemu-devel] [PULL v4 05/46] target/mips: Add placeholder and invocation of decode_nanomips_opc()

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Markovic Add empty body and invocation of decode_nanomips_opc() if the bit ISA_NANOMIPS32 is set in ctx->insn_flags. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 18

[Qemu-devel] [PULL v4 06/46] target/mips: Add nanoMIPS decoding and extraction utilities

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Markovic Add some basic utility functions and macros for nanoMIPS decoding engine. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 11 +++ 1 file changed, 11 in

[Qemu-devel] [PULL v4 03/46] target/mips: Add nanoMIPS DSP ASE opcodes

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Add nanoMIPS opcodes for DSP ASE instruction pools and instructions. Reviewed-by: Richard Henderson Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 215 1 file changed, 215

[Qemu-devel] [PULL v4 27/46] target/mips: Fix pre-nanoMIPS MT ASE instructions availability control

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Rikalo Use bits from configuration registers for availability control of MT ASE instructions, rather than only ISA_MT bit in insn_flags. This is done by adding a field in hflags for MT bit, and adding functions check_mt() and check_cp0_mt(). Reviewed-by: Aleksandar Markovic Sig

[Qemu-devel] [PULL v4 02/46] target/mips: Add nanoMIPS base instruction set opcodes

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add nanoMIPS opcodes. nanoMIPS instruction are organized by so-called instruction pools. Each pool contains a set of opcodes, that in turn can be instruction opcodes or instruction pool opcodes. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksand

[Qemu-devel] [PULL v4 13/46] target/mips: Add emulation of nanoMIPS 16-bit save and restore instructions

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Add emulation of SAVE16 and RESTORE.JRC16 instructions. Routines gen_save(), gen_restore(), and gen_adjust_sp() are provided to support this feature. This patch at the same time provides function gen_op_addr_addi(). This function will be used in emulation of some other nano

[Qemu-devel] [PULL v4 00/46] MIPS queue August 2018 v4

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Markovic The following changes since commit 3392fbee4e435658733bbe9aab23392660558b59: Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-23 12:28:17 +0100) are available in the git repository at: https://github.com/A

[Qemu-devel] [PULL v4 34/46] target/mips: Add emulation of DSP ASE for nanoMIPS - part 6

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Add emulation of DSP ASE instructions for nanoMIPS - part 6. Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 58 + 1 file changed, 58 inserti

[Qemu-devel] [PULL v4 21/46] target/mips: Implement emulation of nanoMIPS ROTX instruction

2018-08-23 Thread Aleksandar Markovic
From: Matthew Fortune Added a helper for ROTX based on the pseudocode from the architecture spec. This instraction was not present in previous MIPS instruction sets. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic

[Qemu-devel] [PULL v4 07/46] target/mips: Add emulation of nanoMIPS 16-bit arithmetic instructions

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of nanoMIPS 16-bit arithmetic instructions. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 142 1 file

[Qemu-devel] [PULL v4 22/46] target/mips: Implement emulation of nanoMIPS EXTW instruction

2018-08-23 Thread Aleksandar Markovic
From: James Hogan Implement emulation of nanoMIPS EXTW instruction. EXTW instruction is similar to the MIPS r6 ALIGN instruction, except that it counts the other way and in bits instead of bytes. We therefore generalise gen_align() function into a new gen_align_bits() function (which counts in bi

[Qemu-devel] [PULL v4 45/46] mips_malta: Fix semihosting argument passing for nanoMIPS bare metal

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Fix passing argument for nanoMIPS bare metal related to the semihosting regime. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- hw/mips/mips_malta.c |

[Qemu-devel] [PULL v4 24/46] target/mips: Add CP0 Config3 and Config5 fields to DisasContext structure

2018-08-23 Thread Aleksandar Markovic
From: Dimitrije Nikolic Add CP0_Config3 and CP0_Config5 to DisasContext structure. This is needed for implementing availability control of various instructions. Reviewed-by: "Aleksandar Markovic " Signed-off-by: "Aleksandar Markovic " --- target/mips/translate.c | 4 1 file changed, 4 inse

[Qemu-devel] [PULL v4 11/46] target/mips: Add emulation of nanoMIPS 16-bit load and store instructions

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of LWXS16, LB16, SB16, LBU16, LH16, SH16, LHU16, LW16, LWSP16, LW4X4, SW4X4, LWGP16, SWSP16, SW16, and SWGP16 instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic Reviewed-by: Aleksandar Markovic --- targe

[Qemu-devel] [PULL v4 25/46] target/mips: Implement emulation of nanoMIPS LLWP/SCWP pair

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Rikalo Implement support for nanoMIPS LLWP/SCWP instructions. Beside adding core functionality of these instructions, this patch adds support for availability control via configuration bit XNP. Reviewed-by: Richard Henderson Reviewed-by: Aleksandar Markovic Signed-off-by: Dimi

[Qemu-devel] [PULL v4 43/46] mips_malta: Add basic nanoMIPS boot code for Malta board

2018-08-23 Thread Aleksandar Markovic
From: Matthew Fortune Add basic nanoMIPS boot code for Malta. Reviewed-by: Aleksandar Markovic Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- hw/mips/mips_malta.c | 63 +--- 1 file changed, 60

Re: [Qemu-devel] [PULL v2 00/73] Misc patches for 2018-08-21

2018-08-23 Thread Peter Maydell
On 23 August 2018 at 14:30, Peter Maydell wrote: > On 23 August 2018 at 12:36, Paolo Bonzini wrote: >> The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: >> >> Merge remote-tracking branch >> 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging >> (201

[Qemu-devel] [PULL v4 10/46] target/mips: Add emulation of nanoMIPS 16-bit misc instructions

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of misc nanoMIPS 16-bit instructions. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 41 + 1 file changed, 41 in

[Qemu-devel] [PULL v4 35/46] target/mips: Add availability control via bit NMS

2018-08-23 Thread Aleksandar Markovic
From: Dimitrije Nikolic A set of nanoMIPS instructions is not available if Config5 bit NMS is set. Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 47 +-- 1 file changed, 45 insertions(+), 2 deletion

[Qemu-devel] [PULL v4 16/46] target/mips: Add emulation of nanoMIPS 48-bit instructions

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of LI48, ADDIU48, ADDIUGP48, ADDIUPC48, LWPC48, and SWPC48 instructions. Reviewed-by: Richard Henderson Reviewed-by: Aleksandar Markovic Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c

[Qemu-devel] [PULL v4 28/46] target/mips: Implement MT ASE support for nanoMIPS

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Add emulation of MT ASE instructions for nanoMIPS. Reviewed-by: Richard Henderson Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 85 +++-- 1 file changed, 83 insertions(+), 2 de

[Qemu-devel] [PULL v4 18/46] target/mips: Add emulation of misc nanoMIPS instructions (pool32a0)

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of nanoMIPS instructions that are situated in pool32a0. Reviewed-by: Richard Henderson Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 185 +++

[Qemu-devel] [PULL v4 44/46] mips_malta: Add setting up GT64120 BARs to the nanoMIPS bootloader

2018-08-23 Thread Aleksandar Markovic
From: Paul Burton Setup the GT64120 BARs in the nanoMIPS bootloader, in the same way that they are setup in the MIPS32 bootloader. This is necessary for Linux to be able to access peripherals, including the UART. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Signed-off-b

[Qemu-devel] [PULL v4 30/46] target/mips: Add emulation of DSP ASE for nanoMIPS - part 2

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Add emulation of DSP ASE instructions for nanoMIPS - part 2. Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/target/mips/transl

[Qemu-devel] [PULL v4 40/46] elf: Relax MIPS' elf_check_arch() to accept EM_NANOMIPS too

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Markovic Starting from nanoMIPS introduction, machine variant can be EM_MIPS or EM_NANOMIPS. Reviewed-by: Richard Henderson Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/elfload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-

[Qemu-devel] [PULL v4 19/46] target/mips: Add emulation of misc nanoMIPS instructions (pool32axf)

2018-08-23 Thread Aleksandar Markovic
From: Yongbok Kim Add emulation of misc nanoMIPS instructions situated in pool32axf. Reviewed-by: Richard Henderson Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 91 +

[Qemu-devel] [PULL v4 39/46] elf: Add EM_NANOMIPS value as a valid one for e_machine field

2018-08-23 Thread Aleksandar Markovic
From: Aleksandar Rikalo Value 249 is registered as valid for usage for nanoMIPS executables. Reviewed-by: Richard Henderson Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --gi

[Qemu-devel] [PULL v4 37/46] target/mips: Add updating BadInstr and BadInstrX for nanoMIPS

2018-08-23 Thread Aleksandar Markovic
From: Stefan Markovic Update BadInstr and BadInstrX registers for nanoMIPS. The same support for pre-nanoMIPS remains unimplemented. Reviewed-by: Aleksandar Markovic Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/helper.c | 16 ++

  1   2   3   4   >