Re: [PATCH v2 0/4] tcg: Include tcg files using tcg/ dirname, reduce cpp search path list

2020-01-02 Thread Stefan Weil
Am 01.01.20 um 12:22 schrieb Philippe Mathieu-Daudé: > Noticed we could clean this while reviewing Richard patch last night: > https://www.mail-archive.com/qemu-devel@nongnu.org/msg667606.html > > Since v1: > - moved headers to include/tcg/ (Paolo) > - include in .inc.c relative to parent (Stefan)

Re: sysbus usb xhci

2020-01-02 Thread kra...@redhat.com
On Thu, Jan 02, 2020 at 07:13:25AM +, Sai Pavan Boddu wrote: > Hi Gred, > > We are seeing of options to reuse the hcd-xhci model and use it over system > bus interface rather than pci. (for Xilinx ZynqMP SOC, usb emulation) > Are there any plans of implementing a sysbus device ? if none it wo

Re: [PATCH 0/7] console: screendump improvements

2020-01-02 Thread Gerd Hoffmann
On Fri, Dec 20, 2019 at 06:36:41PM +0400, Marc-André Lureau wrote: > Hi Gerd, > > On Wed, Nov 27, 2019 at 3:52 PM Marc-André Lureau > wrote: > > > > Hi, > > > > The following patches have been extracted from the "[PATCH v6 00/25] > > monitor: add asynchronous command type", as they are > > review

Re: [RFC v4 PATCH 00/49] Initial support of multi-process qemu - status update

2020-01-02 Thread Stefan Hajnoczi
On Fri, Dec 20, 2019 at 09:15:40AM -0800, John G Johnson wrote: > > On Dec 19, 2019, at 5:36 AM, Stefan Hajnoczi wrote: > > On Wed, Dec 18, 2019 at 01:00:55AM +0100, Paolo Bonzini wrote: > >> On 17/12/19 23:57, Felipe Franciosi wrote: > We don’t pin guest memory; we pass the QEMU file descriptors

Re: [RFC v4 PATCH 00/49] Initial support of multi-process qemu - status update

2020-01-02 Thread Stefan Hajnoczi
On Fri, Dec 20, 2019 at 09:15:40AM -0800, John G Johnson wrote: > > On Dec 19, 2019, at 5:36 AM, Stefan Hajnoczi wrote: > > On Wed, Dec 18, 2019 at 01:00:55AM +0100, Paolo Bonzini wrote: > >> On 17/12/19 23:57, Felipe Franciosi wrote: > We don’t pin guest memory; we pass the QEMU file descriptors

[PATCH] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Jason A. Donenfeld
On Linux, calling `reboot(RB_AUTOBOOT);` will result in arch/m68k/mac/misc.c's mac_reset function being called. That in turn looks at the rombase (or uses 0x4080 is there's no rombase), adds 0xa, and jumps to that address. At the moment, there's nothing there, so the kernel just crashes when tr

Re: [PATCH] q800: map reset function to poweroff of some random kernel

2020-01-02 Thread Jason A. Donenfeld
Superseded by https://lore.kernel.org/qemu-devel/20200102103644.233370-1-ja...@zx2c4.com , thankfully.

Re: [PATCH] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200102103644.233370-1-ja...@zx2c4.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] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200102103644.233370-1-ja...@zx2c4.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH] q800: implement mac rom reset function for BIOS-less mode Type: series Message-id: 20200102103644.233

Re: [RFC v4 PATCH 00/49] Initial support of multi-process qemu - status update

2020-01-02 Thread Stefan Hajnoczi
On Fri, Dec 20, 2019 at 10:22:37AM +, Daniel P. Berrangé wrote: > On Fri, Dec 20, 2019 at 09:47:12AM +, Stefan Hajnoczi wrote: > > On Thu, Dec 19, 2019 at 12:55:04PM +, Daniel P. Berrangé wrote: > > > On Thu, Dec 19, 2019 at 12:33:15PM +, Felipe Franciosi wrote: > > > > > On Dec 19,

[Bug 1849644] Re: QEMU VNC websocket proxy requires non-standard 'binary' subprotocol

2020-01-02 Thread Samuel
Did anyone at QEMU get a chance to look at that patch? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1849644 Title: QEMU VNC websocket proxy requires non-standard 'binary' subprotocol Status in QE

Re: [RFC v4 PATCH 00/49] Initial support of multi-process qemu - status update

2020-01-02 Thread Felipe Franciosi
> On Jan 2, 2020, at 10:42 AM, Stefan Hajnoczi wrote: > > On Fri, Dec 20, 2019 at 10:22:37AM +, Daniel P. Berrangé wrote: >> On Fri, Dec 20, 2019 at 09:47:12AM +, Stefan Hajnoczi wrote: >>> On Thu, Dec 19, 2019 at 12:55:04PM +, Daniel P. Berrangé wrote: On Thu, Dec 19, 2019 at

Re: PCI memory sync question (kvm,dpdk,e1000,packet stalled)

2020-01-02 Thread Stefan Hajnoczi
On Mon, Dec 30, 2019 at 01:10:15PM +0300, ASM wrote: > > It could be a bug in QEMU's e1000 emulation - maybe it's not doing > > things in the correct order and causes a race condition with the DPDK > > polling driver - or it could be a bug in the DPDK e1000 driver regarding > > the order in which t

Re: [PATCH] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Laurent Vivier
Le 02/01/2020 à 11:36, Jason A. Donenfeld a écrit : > On Linux, calling `reboot(RB_AUTOBOOT);` will result in > arch/m68k/mac/misc.c's mac_reset function being called. That in turn > looks at the rombase (or uses 0x4080 is there's no rombase), adds > 0xa, and jumps to that address. At the momen

Re: issue about virtio-blk queue size

2020-01-02 Thread Stefan Hajnoczi
On Sat, Dec 21, 2019 at 02:07:19AM +, Wangyong wrote: > > From: Stefan Hajnoczi [mailto:stefa...@gmail.com] > > Sent: Friday, December 20, 2019 5:53 PM > > To: wangyong (Cloud) > > Cc: Stefan Hajnoczi ; pbonz...@redhat.com; > > mark.ka...@oracle.com; h...@lst.de; qemu-devel@nongnu.org > > Subj

Re: [PATCH 00/18] block: Allow exporting BDSs via FUSE

2020-01-02 Thread Stefan Hajnoczi
On Fri, Dec 20, 2019 at 11:30:33AM +0100, Max Reitz wrote: > On 20.12.19 11:08, Stefan Hajnoczi wrote: > > On Thu, Dec 19, 2019 at 03:38:00PM +0100, Max Reitz wrote: > > Please send a follow-up patch that adds a qemu(1) -blockdev > > 'Driver-specific options for "fuse"' documentation section. > >

Re: Making QEMU easier for management tools and applications

2020-01-02 Thread Stefan Hajnoczi
On Fri, Dec 20, 2019 at 09:07:50PM +, Richard W.M. Jones wrote: > On Fri, Dec 20, 2019 at 04:13:59PM +, Stefan Hajnoczi wrote: > > 6. A configuration file format is sorely needed so that guest > > configuration can be persisted and easily launched. > > Actually qemu already has that, but

Re: sysbus usb xhci

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 10:45 AM, kra...@redhat.com wrote: On Thu, Jan 02, 2020 at 07:13:25AM +, Sai Pavan Boddu wrote: Hi Gred, We are seeing of options to reuse the hcd-xhci model and use it over system bus interface rather than pci. (for Xilinx ZynqMP SOC, usb emulation) Are there any plans of implem

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Helge Deller
On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: > On 12/31/19 2:03 PM, Igor Mammedov wrote: >> If user provided non-sense RAM size, board will complain and >> continue running with max RAM size supported. >> Also RAM is going to be allocated by generic code, so it won't be >> possible for board to

Re: [PATCH] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Laurent Vivier
Le 02/01/2020 à 12:10, Laurent Vivier a écrit : > Le 02/01/2020 à 11:36, Jason A. Donenfeld a écrit : >> On Linux, calling `reboot(RB_AUTOBOOT);` will result in >> arch/m68k/mac/misc.c's mac_reset function being called. That in turn >> looks at the rombase (or uses 0x4080 is there's no rombase)

Re: [PATCH 66/86] ppc:ppc440_bamboo/sam460ex: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Wed, 1 Jan 2020 12:54:37 +0100 (CET) BALATON Zoltan wrote: > On Tue, 31 Dec 2019, Igor Mammedov wrote: > > If user provided non-sense RAM size, board will complain and > > continue running with max RAM size supported. > > Also RAM is going to be allocated by generic code, so it won't be > > po

[PULL 4/7] object: add g_autoptr support

2020-01-02 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé --- include/qom/object.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/qom/object.h b/include/qom/object.h index 1d7b7e5a79..54a548868c 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -1766,4 +1766,

[PULL 3/7] ui: add pixman image g_autoptr support

2020-01-02 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé --- include/ui/qemu-pixman.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 0668109305..3b7cf70157 100644 --- a/include/ui/qemu-pixman.h +++ b/include/ui/qemu-pixman.

[PULL 0/7] Screendump patches

2020-01-02 Thread Marc-André Lureau
The following changes since commit dd5b0f95490883cd8bc7d070db8de70d5c979cbc: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20191219' into staging (2019-12-20 16:37:07 +) are available in the Git repository at: https://github.com/elmarco/qemu.git tags/screendump-pull-request f

[PULL 1/7] console: add graphic_hw_update_done()

2020-01-02 Thread Marc-André Lureau
Add a function to be called when a graphic update is done. Declare the QXL renderer as async: render_update_cookie_num counts the number of outstanding updates, and graphic_hw_update_done() is called when it reaches none. (note: this is preliminary work for asynchronous screendump support) Signe

[PULL 6/7] osdep: add qemu_unlink()

2020-01-02 Thread Marc-André Lureau
Add a helper function to match qemu_open() which may return files under the /dev/fdset prefix. Those shouldn't be removed, since it's only a qemu namespace. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé --- include/qemu/osdep.h | 1 + util/osdep.c | 15 ++

[PULL 5/7] screendump: replace FILE with QIOChannel and fix close()/qemu_close()

2020-01-02 Thread Marc-André Lureau
The file opened for ppm_save() may be a /dev/fdset, in which case a dup fd is added to the fdset. It should be removed by calling qemu_close(), instead of the implicit close() on fclose(). I don't see a convenient way to solve that with stdio streams, so I switched the code to QIOChannel which use

[PULL 7/7] screendump: use qemu_unlink()

2020-01-02 Thread Marc-André Lureau
Don't attempt to remove /dev/fdset files. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé --- ui/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/console.c b/ui/console.c index 587edf4ed4..e6ac462aa0 100644 --- a/ui/console.c +++ b/ui/console.c @

[PULL 2/7] ppm-save: pass opened fd

2020-01-02 Thread Marc-André Lureau
This will allow to pre-open the file before running the async finish handler and avoid potential monitor fdset races. (note: this is preliminary work for asynchronous screendump support) Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé --- ui/console.c| 45 +

[PATCH v2] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Jason A. Donenfeld
On Linux, calling `reboot(RB_AUTOBOOT);` will result in arch/m68k/mac/misc.c's mac_reset function being called. That in turn looks at the rombase (or uses 0x4080 is there's no rombase), adds 0xa, and jumps to that address. At the moment, there's nothing there, so the kernel just crashes when tr

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-01-02 Thread Laurent Vivier
Could you run qemu unimplemented error trace, by using "export QEMU_LOG=unimp"? You can also set the QEMU_STRACE="" to see which syscall fails. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 12:31 PM, Helge Deller wrote: On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: On 12/31/19 2:03 PM, Igor Mammedov wrote: If user provided non-sense RAM size, board will complain and continue running with max RAM size supported. Also RAM is going to be allocated by generic code, so it

[Bug 1829459] Re: qemu seems to lack support for pid namespace.

2020-01-02 Thread Laurent Vivier
PID namespace prevents to execute some syscalls, even if you use --map- root-user. This is managed at kernel level by the capabilities. Could you try to do the exact same thing with the native architecture binaries in the chroot to see if the problem really comes from qemu- user? Could you try to

Re: [PULL 0/7] Screendump patches

2020-01-02 Thread Marc-André Lureau
On Thu, Jan 2, 2020 at 3:55 PM Marc-André Lureau wrote: > > The following changes since commit dd5b0f95490883cd8bc7d070db8de70d5c979cbc: > > Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20191219' into > staging (2019-12-20 16:37:07 +) > > are available in the Git repository at: >

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Helge Deller
On 02.01.20 13:06, Philippe Mathieu-Daudé wrote: > On 1/2/20 12:31 PM, Helge Deller wrote: >> On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: >>> On 12/31/19 2:03 PM, Igor Mammedov wrote: If user provided non-sense RAM size, board will complain and continue running with max RAM size supp

Re: [PATCH 3/3] iotests: Test external snapshot with VM state

2020-01-02 Thread Dr. David Alan Gilbert
* Kevin Wolf (kw...@redhat.com) wrote: > Am 19.12.2019 um 15:26 hat Max Reitz geschrieben: > > On 17.12.19 15:59, Kevin Wolf wrote: > > > This tests creating an external snapshot with VM state (which results in > > > an active overlay over an inactive backing file, which is also the root > > > node

[Bug 1829459] Re: qemu seems to lack support for pid namespace.

2020-01-02 Thread crocket
According to `man unshare`, --keep-caps seems to apply only to user namespace. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829459 Title: qemu seems to lack support for pid namespace. Status in

[Bug 1829459] Re: qemu seems to lack support for pid namespace.

2020-01-02 Thread crocket
In a native chroot, `sudo unshare --pid -- echo hello world` works without a problem. In a qemu-aarch64 chroot, `sudo unshare --keep-caps --pid -- echo hello world` fails with the same error described in this issue. `qemu: qemu_thread_create: Invalid argument` -- You received this bug notificat

Re: [PATCH] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Jason A. Donenfeld
On Thu, Jan 2, 2020 at 12:41 PM Laurent Vivier wrote: > > Le 02/01/2020 à 12:10, Laurent Vivier a écrit : > > Le 02/01/2020 à 11:36, Jason A. Donenfeld a écrit : > >> On Linux, calling `reboot(RB_AUTOBOOT);` will result in > >> arch/m68k/mac/misc.c's mac_reset function being called. That in turn >

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-01-02 Thread crocket
I executed "emerge" with QEMU_LOG=unimp and QEMU_STRACE="". ** Attachment added: "emerge.log" https://bugs.launchpad.net/qemu/+bug/1857811/+attachment/5317106/+files/emerge.log -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. http

[Bug 1829459] Re: qemu seems to lack support for pid namespace.

2020-01-02 Thread crocket
I think you should investigate `qemu: qemu_thread_create: Invalid argument` -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829459 Title: qemu seems to lack support for pid namespace. Status in QE

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 13:06:33 +0100 Philippe Mathieu-Daudé wrote: > On 1/2/20 12:31 PM, Helge Deller wrote: > > On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: > >> On 12/31/19 2:03 PM, Igor Mammedov wrote: > >>> If user provided non-sense RAM size, board will complain and > >>> continue runni

Re: [PATCH v2] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Laurent Vivier
Le 02/01/2020 à 13:01, Jason A. Donenfeld a écrit : > On Linux, calling `reboot(RB_AUTOBOOT);` will result in > arch/m68k/mac/misc.c's mac_reset function being called. That in turn > looks at the rombase (or uses 0x4080 is there's no rombase), adds > 0xa, and jumps to that address. At the momen

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 3:12 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 13:06:33 +0100 Philippe Mathieu-Daudé wrote: On 1/2/20 12:31 PM, Helge Deller wrote: On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: On 12/31/19 2:03 PM, Igor Mammedov wrote: If user provided non-sense RAM size, board will complain

Re: Making QEMU easier for management tools and applications

2020-01-02 Thread Stefan Hajnoczi
On Tue, Dec 24, 2019 at 01:00:35PM +, Daniel P. Berrangé wrote: > On Fri, Dec 20, 2019 at 04:13:59PM +, Stefan Hajnoczi wrote: > > Hi, > > QEMU presents a command-line interface and QMP monitor for > > applications to interact with. Applications actually need API > > bindings in their prog

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 12:31:58 +0100 Helge Deller wrote: > On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: > > On 12/31/19 2:03 PM, Igor Mammedov wrote: > >> If user provided non-sense RAM size, board will complain and > >> continue running with max RAM size supported. > >> Also RAM is going to b

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 3:41 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 12:31:58 +0100 Helge Deller wrote: On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: On 12/31/19 2:03 PM, Igor Mammedov wrote: If user provided non-sense RAM size, board will complain and continue running with max RAM size supported.

Re: Making QEMU easier for management tools and applications

2020-01-02 Thread Stefan Hajnoczi
On Sat, Dec 21, 2019 at 10:02:23AM +0100, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > Hi, > > QEMU presents a command-line interface and QMP monitor for > > applications to interact with. Applications actually need API > > bindings in their programming language. Bindings avoid reim

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 14:02:01 +0100 Helge Deller wrote: > On 02.01.20 13:06, Philippe Mathieu-Daudé wrote: > > On 1/2/20 12:31 PM, Helge Deller wrote: > >> On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: > >>> On 12/31/19 2:03 PM, Igor Mammedov wrote: > If user provided non-sense RAM si

CONFIG_JUMP_LABEL=y on 32-bit x86 leads to intermittent qemu crashes

2020-01-02 Thread Jason A. Donenfeld
Hi, Here's an interesting crash I've seen pop up since enabling CONFIG_JUMP_LABEL=y: [4.716238] EIP: secure_tcp_seq+0x1e/0xa0^M [4.716238] Code: c1 e8 46 90 fb ff eb a2 8d 74 26 00 55 89 e5 83 ec 18 89 75 f8 89 c6 0f b7 45 08 89 5d f4 0f b7 d9 89 7d fc 89 d7 89 45 ec 3e <8d> 74 26 00 8b 4

Re: [PATCH v1] virtio: stregthen virtqueue size invariants

2020-01-02 Thread Stefan Hajnoczi
On Mon, Dec 23, 2019 at 04:18:20PM +0300, Denis Plotnikov wrote: > 1. virtqueue_size is a power of 2 > 2. virtqueue_size > 2, since seg_max is virtqueue_size - 2 > > Signed-off-by: Denis Plotnikov > --- > hw/virtio/virtio.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --gi

Re: Making QEMU easier for management tools and applications

2020-01-02 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > Stefan Hajnoczi writes: > > 4. Go and Rust bindings would also be useful. There is > > https://github.com/intel/govmm but I think it makes sense to keep it > > in qemu.git and provide an interface similar to our Python modules. > > Mapping QAPI/QM

Re: How to impove downtime of Live-Migration caused bdrv_drain_all()

2020-01-02 Thread Stefan Hajnoczi
On Thu, Dec 26, 2019 at 05:40:22PM +0800, 张海斌 wrote: > Stefan Hajnoczi 于2019年3月29日周五 上午1:08写道: > > > > On Thu, Mar 28, 2019 at 05:53:34PM +0800, 张海斌 wrote: > > > hi, stefan > > > > > > I have faced the same problem you wrote in > > > https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg04025.h

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 15:17:14 +0100 Philippe Mathieu-Daudé wrote: > On 1/2/20 3:12 PM, Igor Mammedov wrote: > > On Thu, 2 Jan 2020 13:06:33 +0100 > > Philippe Mathieu-Daudé wrote: > > > >> On 1/2/20 12:31 PM, Helge Deller wrote: > >>> On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: >

Re: GraphViz extension on QEMU Wiki

2020-01-02 Thread Stefan Hajnoczi
On Thu, Dec 26, 2019 at 07:05:04PM +0100, Philippe Mathieu-Daudé wrote: > I'm not sure who is responsible of this... Jeff maintains the web server and wiki. I can look into things when Jeff is too busy, but lets see if he has time in January. Stefan signature.asc Description: PGP signature

Re: Making QEMU easier for management tools and applications

2020-01-02 Thread Dr. David Alan Gilbert
* Stefan Hajnoczi (stefa...@gmail.com) wrote: > 5. A jailer is needed to isolate the QEMU process and vhost-user > device backends using seccomp, Linux namespaces, and maybe > SELinux/AppArmor. We used to be able to rely on libvirt for QEMU > security, but it's becoming a common task for any devi

Re: qemu_set_fd_handler callback is delayed

2020-01-02 Thread Stefan Hajnoczi
On Mon, Dec 30, 2019 at 06:21:27PM +, Eltahawy, Mahmoud wrote: > I am new to QEMU and I am using qemu-3.0.1, I noticed a strange behavior for > qemu_set_fd_handler that the callback for reading from a file descriptor is > delayed then expected while the file descriptor(socket) has a data to r

Re: How to impove downtime of Live-Migration caused bdrv_drain_all()

2020-01-02 Thread Felipe Franciosi
> On Jan 2, 2020, at 3:07 PM, Stefan Hajnoczi wrote: > > On Thu, Dec 26, 2019 at 05:40:22PM +0800, 张海斌 wrote: >> Stefan Hajnoczi 于2019年3月29日周五 上午1:08写道: >>> >>> On Thu, Mar 28, 2019 at 05:53:34PM +0800, 张海斌 wrote: hi, stefan I have faced the same problem you wrote in http

Re: GraphViz extension on QEMU Wiki

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 4:09 PM, Stefan Hajnoczi wrote: On Thu, Dec 26, 2019 at 07:05:04PM +0100, Philippe Mathieu-Daudé wrote: I'm not sure who is responsible of this... Jeff maintains the web server and wiki. I can look into things when Jeff is too busy, but lets see if he has time in January. Sure no

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 15:45:55 +0100 Philippe Mathieu-Daudé wrote: > On 1/2/20 3:41 PM, Igor Mammedov wrote: > > On Thu, 2 Jan 2020 12:31:58 +0100 > > Helge Deller wrote: > > > >> On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: > >>> On 12/31/19 2:03 PM, Igor Mammedov wrote: > If user

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 4:35 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 15:45:55 +0100 Philippe Mathieu-Daudé wrote: On 1/2/20 3:41 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 12:31:58 +0100 Helge Deller wrote: On 31.12.19 16:44, Philippe Mathieu-Daudé wrote: On 12/31/19 2:03 PM, Igor Mammedov wrot

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 4:08 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 15:17:14 +0100 Philippe Mathieu-Daudé wrote: On 1/2/20 3:12 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 13:06:33 +0100 Philippe Mathieu-Daudé wrote: On 1/2/20 12:31 PM, Helge Deller wrote: On 31.12.19 16:44, Philippe Mathieu-Da

[Bug 1858046] Re: qemu-aarch64 hangs on cptofs during a build of NixOS SD card image

2020-01-02 Thread Ryan Lahfa
Update: compiling qemu upstream & using the latest version didn't change anything. I don't know if this is an instance of user emulation limitations due to missing syscalls. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://b

Re: [PATCH 66/86] ppc:ppc440_bamboo/sam460ex: drop RAM size fixup

2020-01-02 Thread BALATON Zoltan
On Thu, 2 Jan 2020, Igor Mammedov wrote: On Wed, 1 Jan 2020 12:54:37 +0100 (CET) BALATON Zoltan wrote: On Tue, 31 Dec 2019, Igor Mammedov wrote: If user provided non-sense RAM size, board will complain and continue running with max RAM size supported. Also RAM is going to be allocated by gener

Re: [RFC v4 PATCH 00/49] Initial support of multi-process qemu - status update

2020-01-02 Thread Elena Ufimtseva
On Tue, Dec 17, 2019 at 04:33:16PM +, Stefan Hajnoczi wrote: > On Mon, Dec 16, 2019 at 07:57:32PM +, Felipe Franciosi wrote: > > > On 16 Dec 2019, at 20:47, Elena Ufimtseva > > > wrote: > > > On Fri, Dec 13, 2019 at 10:41:16AM +, Stefan Hajnoczi wrote: > > >> Is there a work-in-progr

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 16:49:00 +0100 Philippe Mathieu-Daudé wrote: > On 1/2/20 4:08 PM, Igor Mammedov wrote: > > On Thu, 2 Jan 2020 15:17:14 +0100 > > Philippe Mathieu-Daudé wrote: > > > >> On 1/2/20 3:12 PM, Igor Mammedov wrote: > >>> On Thu, 2 Jan 2020 13:06:33 +0100 > >>> Philippe Mathieu-D

[PATCH] hppa: allow max ram size upto 4Gb

2020-01-02 Thread Igor Mammedov
Previous patch drops silent ram_size fixup and makes QEMU error out with: "RAM size more than 3840m is not supported" when user specified -m X more than supported value. User shouldn't be bothered with starting QEMU with valid CLI, so for the sake of user convenience to allow using -m 4G vs -m

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 5:50 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 16:49:00 +0100 Philippe Mathieu-Daudé wrote: On 1/2/20 4:08 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 15:17:14 +0100 Philippe Mathieu-Daudé wrote: On 1/2/20 3:12 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 13:06:33 +0100 Phil

Re: [PATCH] hppa: allow max ram size upto 4Gb

2020-01-02 Thread Philippe Mathieu-Daudé
On 1/2/20 6:08 PM, Igor Mammedov wrote: Previous patch drops silent ram_size fixup and makes QEMU error out with: "RAM size more than 3840m is not supported" when user specified -m X more than supported value. User shouldn't be bothered with starting QEMU with valid CLI, so for the sake of u

Re: [PATCH 66/86] ppc:ppc440_bamboo/sam460ex: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 16:52:50 +0100 (CET) BALATON Zoltan wrote: > On Thu, 2 Jan 2020, Igor Mammedov wrote: > > On Wed, 1 Jan 2020 12:54:37 +0100 (CET) > > BALATON Zoltan wrote: > >> On Tue, 31 Dec 2019, Igor Mammedov wrote: > >>> If user provided non-sense RAM size, board will complain and > >

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 18:14:32 +0100 Philippe Mathieu-Daudé wrote: > On 1/2/20 5:50 PM, Igor Mammedov wrote: > > On Thu, 2 Jan 2020 16:49:00 +0100 > > Philippe Mathieu-Daudé wrote: > > > >> On 1/2/20 4:08 PM, Igor Mammedov wrote: > >>> On Thu, 2 Jan 2020 15:17:14 +0100 > >>> Philippe Mathieu-D

Re: [PATCH] hppa: allow max ram size upto 4Gb

2020-01-02 Thread Igor Mammedov
On Thu, 2 Jan 2020 18:15:02 +0100 Philippe Mathieu-Daudé wrote: > On 1/2/20 6:08 PM, Igor Mammedov wrote: > > Previous patch drops silent ram_size fixup and makes > > QEMU error out with: > > > > "RAM size more than 3840m is not supported" > > > > when user specified -m X more than supported

[PATCH v2] hppa: allow max ram size upto 4Gb

2020-01-02 Thread Igor Mammedov
Previous patch drops silent ram_size fixup and makes QEMU error out with: "RAM size more than 3840m is not supported" when user specified -m X more than supported value. User shouldn't be bothered with starting QEMU with valid CLI, so for the sake of user convenience allow using -m 4G vs -m 384

Re: [PATCH v1 01/36] target/riscv: Convert MIP CSR to target_ulong

2020-01-02 Thread Palmer Dabbelt
On Mon, 09 Dec 2019 10:10:43 PST (-0800), Alistair Francis wrote: The MIP CSR is a xlen CSR, it was only 32-bits to allow atomic access. Now that we don't use atomics for MIP we can change this back to a xlen CSR. Signed-off-by: Alistair Francis --- target/riscv/cpu.c | 2 +- target/riscv/cpu.

Re: [PATCH v10 Kernel 1/5] vfio: KABI for migration interface for device state

2020-01-02 Thread Dr. David Alan Gilbert
* Alex Williamson (alex.william...@redhat.com) wrote: > On Fri, 20 Dec 2019 01:40:35 +0530 > Kirti Wankhede wrote: > > > On 12/19/2019 10:57 PM, Alex Williamson wrote: > > > > > > > > > > If device state it at pre-copy state (011b). > > Transition, i.e., write to device state as stop-and-c

Re: [RFC v4 PATCH 00/49] Initial support of multi-process qemu - status update

2020-01-02 Thread Marc-André Lureau
Hi On Thu, Jan 2, 2020 at 3:03 PM Felipe Franciosi wrote: > The reason I dislike yet another offloading protocol (ie. there is > vhost, there is vfio, and then there would be qdev-over-socket) is > that we keep reinventing the wheel. I very much prefer picking > something solid (eg. VFIO) and kee

Re: [PATCH v2 00/10] Add Allwinner H3 SoC and Orange Pi PC Machine

2020-01-02 Thread Niek Linnenbank
Hi Philippe, I'm almost ready to send out v3 here. Now for documentation I'm not sure yet what to do: 1) Where should I place board documentation? For example, the information that I wrote on the cover letter with instructions on how to get the board up and running, some description of t

Re: [PATCH 43/86] hppa: drop RAM size fixup

2020-01-02 Thread Helge Deller
On 02.01.20 16:49, Philippe Mathieu-Daudé wrote: > On 1/2/20 4:08 PM, Igor Mammedov wrote: >> On Thu, 2 Jan 2020 15:17:14 +0100 >> Philippe Mathieu-Daudé wrote: >> >>> On 1/2/20 3:12 PM, Igor Mammedov wrote: On Thu, 2 Jan 2020 13:06:33 +0100 Philippe Mathieu-Daudé wrote:    > O

Re: [PATCH v2] hppa: allow max ram size upto 4Gb

2020-01-02 Thread Helge Deller
On 02.01.20 18:46, Igor Mammedov wrote: > Previous patch drops silent ram_size fixup and makes > QEMU error out with: > > "RAM size more than 3840m is not supported" > > when user specified -m X more than supported value. > > User shouldn't be bothered with starting QEMU with valid CLI, > so for t

[PATCH RFC] i386/kvm: fix enlightened VMCS with fine-grained VMX feature enablement

2020-01-02 Thread Vitaly Kuznetsov
When enlightened VMCS is enabled, certain VMX controls disappear, e.g. posted interrupts for PINBASED_CTLS. With fine-grained VMX feature enablement QEMU tries to do KVM_SET_MSRS with default (matching CPU model) values and fails as KVM doesn't allow to set now-unsupported controls. The ideal solu

[PATCH 1/2] RFC: savevm: check RAM is page_size aligned

2020-01-02 Thread Marc-André Lureau
Check the host pointer is correctly aligned, otherwise we may fail during migration in ram_block_discard_range(). Signed-off-by: Marc-André Lureau --- migration/savevm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/migration/savevm.c b/migration/savevm.c index a71b930b91..ab6e02011f

[PATCH 2/2] tpm-ppi: page-align PPI RAM

2020-01-02 Thread Marc-André Lureau
post-copy migration fails on destination with error such as: 2019-12-26T10:22:44.714644Z qemu-kvm: ram_block_discard_range: Unaligned start address: 0x559d2afae9a0 Use qemu_memalign() to constrain the PPI RAM memory alignment. Cc: qemu-sta...@nongnu.org Signed-off-by: Marc-André Lureau --- hw/t

[PATCH 0/2] tpm: fix PPI RAM migration

2020-01-02 Thread Marc-André Lureau
Hi, The following series fixes a migration issue with the TPM PPI code due to unaligned host RAM pointer. Marc-André Lureau (2): RFC: savevm: check RAM is page_size aligned tpm-ppi: page-align PPI RAM hw/tpm/tpm_ppi.c | 3 ++- migration/savevm.c | 5 + 2 files changed, 7 insertions(+)

Re: [PATCH v2 00/10] Add Allwinner H3 SoC and Orange Pi PC Machine

2020-01-02 Thread Philippe Mathieu-Daudé
Hi Niek, On 1/2/20 8:52 PM, Niek Linnenbank wrote: Hi Philippe, I'm almost ready to send out v3 here. Now for documentation I'm not sure yet what to do: 1) Where should I place board documentation?     For example, the information that I wrote on the cover letter with instructions on how to

Re: [PATCH v2 00/10] Add Allwinner H3 SoC and Orange Pi PC Machine

2020-01-02 Thread Niek Linnenbank
Hey Philippe, On Thu, Jan 2, 2020 at 10:11 PM Philippe Mathieu-Daudé wrote: > Hi Niek, > > On 1/2/20 8:52 PM, Niek Linnenbank wrote: > > Hi Philippe, > > > > I'm almost ready to send out v3 here. > > > > Now for documentation I'm not sure yet what to do: > > > > 1) Where should I place board doc

Re: [PATCH v7 6/6] docs: tpm: Add example command line for ppc64 and tpm-spapr

2020-01-02 Thread David Gibson
On Thu, Dec 19, 2019 at 09:06:05AM -0500, Stefan Berger wrote: > Add an example to the TPM docs for how to add a TPM SPAPR > device model to a QEMU VM emulating a pSeries machine. > > Signed-off-by: Stefan Berger I don't see any advantage to splitting this out - it can be merged into 3/6. > ---

Re: [PATCH v7 4/6] tpm_spapr: Support suspend and resume

2020-01-02 Thread David Gibson
On Thu, Dec 19, 2019 at 09:06:03AM -0500, Stefan Berger wrote: > Extend the tpm_spapr frontend with VM suspend and resume support. > > Signed-off-by: Stefan Berger > --- > hw/tpm/tpm_spapr.c | 67 - > hw/tpm/trace-events | 2 ++ > 2 files changed, 68

Re: [PATCH v3 2/3] spapr: Add NVDIMM device support

2020-01-02 Thread David Gibson
On Thu, Dec 12, 2019 at 02:22:56PM +0530, Shivaprasad G Bhat wrote: > > > On 12/11/2019 01:35 PM, Igor Mammedov wrote: > > On Wed, 11 Dec 2019 09:44:11 +0530 > > Shivaprasad G Bhat wrote: > > > > > On 12/06/2019 07:22 AM, David Gibson wrote: > > > > On Wed, Nov 27, 2019 at 09:50:54AM +0530, Bha

Re: [PATCH v2 0/4] tcg: Include tcg files using tcg/ dirname, reduce cpp search path list

2020-01-02 Thread Richard Henderson
On 1/1/20 10:22 PM, Philippe Mathieu-Daudé wrote: > Noticed we could clean this while reviewing Richard patch last night: > https://www.mail-archive.com/qemu-devel@nongnu.org/msg667606.html > > Since v1: > - moved headers to include/tcg/ (Paolo) > - include in .inc.c relative to parent (Stefan) >

Re: [PATCH v1 01/36] target/riscv: Convert MIP CSR to target_ulong

2020-01-02 Thread Alistair Francis
On Thu, Jan 2, 2020 at 10:18 AM Palmer Dabbelt wrote: > > On Mon, 09 Dec 2019 10:10:43 PST (-0800), Alistair Francis wrote: > > The MIP CSR is a xlen CSR, it was only 32-bits to allow atomic access. > > Now that we don't use atomics for MIP we can change this back to a xlen > > CSR. > > > > Signed

Re: [PATCH v18 5/7] ppc: spapr: Handle "ibm,nmi-register" and "ibm,nmi-interlock" RTAS calls

2020-01-02 Thread David Gibson
On Thu, Jan 02, 2020 at 01:21:09PM +0530, Ganesh Goudar wrote: > From: Aravinda Prasad > > This patch adds support in QEMU to handle "ibm,nmi-register" > and "ibm,nmi-interlock" RTAS calls. > > The machine check notification address is saved when the > OS issues "ibm,nmi-register" RTAS call. >

Re: [PATCH v4 3/4] spapr: Add NVDIMM device support

2020-01-02 Thread David Gibson
On Tue, Dec 17, 2019 at 02:49:14AM -0600, Shivaprasad G Bhat wrote: > Add support for NVDIMM devices for sPAPR. Piggyback on existing nvdimm > device interface in QEMU to support virtual NVDIMM devices for Power. > Create the required DT entries for the device (some entries have > dummy values righ

Re: [PATCH v4 4/4] spapr: Add Hcalls to support PAPR NVDIMM device

2020-01-02 Thread David Gibson
On Tue, Dec 17, 2019 at 02:49:36AM -0600, Shivaprasad G Bhat wrote: > This patch implements few of the necessary hcalls for the nvdimm support. > > PAPR semantics is such that each NVDIMM device is comprising of multiple > SCM(Storage Class Memory) blocks. The guest requests the hypervisor to > bi

Re: [PATCH v18 6/7] migration: Include migration support for machine check handling

2020-01-02 Thread David Gibson
On Thu, Jan 02, 2020 at 01:21:10PM +0530, Ganesh Goudar wrote: > From: Aravinda Prasad > > This patch includes migration support for machine check > handling. Especially this patch blocks VM migration > requests until the machine check error handling is > complete as these errors are specific to

Re: [PATCH v2 1/4] tcg: Search includes from the project root source directory

2020-01-02 Thread Alistair Francis
On Wed, Jan 1, 2020 at 3:24 AM Philippe Mathieu-Daudé wrote: > > We currently search both the root and the tcg/ directories for tcg > files: > > $ git grep '#include "tcg/' | wc -l > 28 > > $ git grep '#include "tcg[^/]' | wc -l > 94 > > To simplify the preprocessor search path, unify by e

Re: [PATCH v2 2/4] tcg: Search includes in the parent source directory

2020-01-02 Thread Alistair Francis
On Wed, Jan 1, 2020 at 3:24 AM Philippe Mathieu-Daudé wrote: > > All the *.inc.c files included by tcg/$TARGET/tcg-target.inc.c > are in tcg/, their parent directory. To simplify the preprocessor > search path, include the relative parent path: '..'. > > Patch created mechanically by running: > >

Re: [PATCH v2 3/4] tcg: Move TCG headers to include/tcg/

2020-01-02 Thread Alistair Francis
On Wed, Jan 1, 2020 at 3:27 AM Philippe Mathieu-Daudé wrote: > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Alistair > --- > {tcg => include/tcg}/tcg-gvec-desc.h | 0 > {tcg => include/tcg}/tcg-mo.h| 0 > {tcg => include/tcg}/tcg-op-gvec.h | 0 > {tcg => in

Re: [PATCH v2 4/4] configure: Remove tcg/ from the preprocessor include search list

2020-01-02 Thread Alistair Francis
On Wed, Jan 1, 2020 at 3:25 AM Philippe Mathieu-Daudé wrote: > > All tcg includes are relative to the repository root directory, > we can safely remove the tcg/ directory from the include search > path list. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Alistair > --

[PATCH v3 1/4] RISC-V: add vector extension field in CPURISCVState

2020-01-02 Thread LIU Zhiwei
The 32 vector registers will be viewed as a continuous memory block. It avoids the convension between element index and (regno,offset). Thus elements can be directly accessed by offset from the first vector base address. Signed-off-by: LIU Zhiwei --- target/riscv/cpu.h | 14 ++ 1 fil

[PATCH v3 0/4] RISC-V: support vector extension part 1

2020-01-02 Thread LIU Zhiwei
This is the first part of v3 patchset. The changelog of v3 is only coverd the part1. Features: * support specification riscv-v-spec-0.7.1. * support basic vector extension. * support Zvlsseg.

  1   2   >