Re: [Qemu-devel] [libvirt] Question about the host-model CPU mode

2017-10-23 Thread Jiri Denemark
On Fri, Oct 20, 2017 at 15:04:57 +0200, David Hildenbrand wrote: > On 20.10.2017 14:50, Jiri Denemark wrote: > > The thing is libvirt calls query-cpu-model-expansion to check what the > > host CPU is. This 'host-model' CPU is replaced with the probed CPU model > > when a domain starts. The problem

Re: [Qemu-devel] [PATCH v3 0/5] Add a valid_cpu_types property

2017-10-23 Thread Alistair Francis
On Wed, Oct 18, 2017 at 12:31 AM, Alistair Francis wrote: > There are numorous QEMU machines that only have a single or a handful of > valid CPU options. To simplyfy the management of specificying which CPU > is/isn't valid let's create a property that can be set in the machine > init. We can then

Re: [Qemu-devel] [PATCH v3 46/46] target: Replace fprintf(stderr, "*\n" with error_report()

2017-10-23 Thread Alistair Francis
On Fri, Oct 20, 2017 at 9:34 AM, Thomas Huth wrote: > On 19.10.2017 18:18, Alistair Francis wrote: >> Replace a large number of the fprintf(stderr, "*\n" calls with >> error_report(). The functions were renamed with these commands and then >> compiler issues where manually fixed. > [...] >> targe

[Qemu-devel] [PULL 2/3] ui: add qemu-keymap and shader to .gitignore

2017-10-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Eric Blake Message-id: 20171020070914.7785-1-kra...@redhat.com --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 620eec6b47..588769b250 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ /trace/ge

[Qemu-devel] [PULL 0/3] Fixes 20171023 patches

2017-10-23 Thread Gerd Hoffmann
The following changes since commit e822e81e350825dd94f41ee2538ff1432b812eb9: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2017-10-20 15:04:00 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/fixes-20171023-pu

Re: [Qemu-devel] [PATCH] docker: Fix PATH for ccache

2017-10-23 Thread Alistair Francis
On Wed, Oct 18, 2017 at 10:35 AM, Daniel P. Berrange wrote: > On Wed, Oct 18, 2017 at 04:28:36PM +0800, Fam Zheng wrote: >> On Wed, 10/18 01:08, no-re...@patchew.org wrote: >> > Your branch is up-to-date with 'origin/test'. >> > Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for p

[Qemu-devel] [PULL 3/3] scripts: don't throw away stderr when checking out git submodules

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" The stderr from git is important if git fails to checkout modules due to network problems, or other unexpected errors. Signed-off-by: Daniel P. Berrange Reviewed-by: Peter Maydell Message-id: 20171020130748.22983-1-berra...@redhat.com Signed-off-by: Gerd Hoffmann --

[Qemu-devel] [PULL 1/3] configure: disable qemu-keymap for linux-user qemu

2017-10-23 Thread Gerd Hoffmann
From: Laurent Vivier We don't need qemu-keymap when we build only linux-user qemu. When we compile in static mode, the libxkbcommon is detected by configure if the shared one is available, but cannot be linked if the static version is not available. As we don't need it for qemu-linux-user, and

Re: [Qemu-devel] [RFC 0/6] enable numa configuration before machine_init() from HMP/QMP

2017-10-23 Thread Igor Mammedov
On Fri, 20 Oct 2017 17:53:09 -0200 Eduardo Habkost wrote: > On Fri, Oct 20, 2017 at 12:21:30PM +1100, David Gibson wrote: > > On Thu, Oct 19, 2017 at 02:23:04PM +0200, Paolo Bonzini wrote: > > > On 19/10/2017 13:49, David Gibson wrote: > > > > Note that describing socket/core/thread tuples as

Re: [Qemu-devel] [PATCH v2 00/43] Windbg supporting

2017-10-23 Thread Ladi Prosek
On Tue, Oct 17, 2017 at 3:08 PM, Mihail Abakumov wrote: > An update of: > > v1: > https://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg07092.html > > We made the debugger module WinDbg (like GDB) for QEMU. This is the > replacement of the remote stub in Windows kernel. Used for re

Re: [Qemu-devel] [PATCH] docker: Fix PATH for ccache

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 02:22:37PM +0800, Fam Zheng wrote: > On Fri, 10/20 13:51, Daniel P. Berrange wrote: > > On Wed, Oct 18, 2017 at 09:35:49AM +0100, Daniel P. Berrange wrote: > > > On Wed, Oct 18, 2017 at 04:28:36PM +0800, Fam Zheng wrote: > > > > On Wed, 10/18 01:08, no-re...@patchew.org wrot

Re: [Qemu-devel] [PATCH] docker: Fix PATH for ccache

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 10:02:20AM +0200, Alistair Francis wrote: > On Wed, Oct 18, 2017 at 10:35 AM, Daniel P. Berrange > wrote: > > On Wed, Oct 18, 2017 at 04:28:36PM +0800, Fam Zheng wrote: > >> On Wed, 10/18 01:08, no-re...@patchew.org wrote: > >> > Your branch is up-to-date with 'origin/test'

Re: [Qemu-devel] [PATCH] build: allow setting a custom GIT binary for transparent proxying

2017-10-23 Thread Daniel P. Berrange
On Fri, Oct 20, 2017 at 03:06:58PM -0500, Eric Blake wrote: > On 10/20/2017 09:10 AM, Daniel P. Berrange wrote: > > Some users can't run a bare 'git' command, due to need for a transparent > > proxying solution such as 'tsocks'. This adds an argument to configure to > > let users specify such a thi

Re: [Qemu-devel] [RFC 0/6] enable numa configuration before machine_init() from HMP/QMP

2017-10-23 Thread Igor Mammedov
On Fri, 20 Oct 2017 17:53:09 -0200 Eduardo Habkost wrote: > On Fri, Oct 20, 2017 at 12:21:30PM +1100, David Gibson wrote: > > On Thu, Oct 19, 2017 at 02:23:04PM +0200, Paolo Bonzini wrote: > > > On 19/10/2017 13:49, David Gibson wrote: > > > > Note that describing socket/core/thread tuples as

[Qemu-devel] [PULL 0/1] Usb 20171023 patches

2017-10-23 Thread Gerd Hoffmann
The following changes since commit e822e81e350825dd94f41ee2538ff1432b812eb9: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2017-10-20 15:04:00 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/usb-20171023-pu

[Qemu-devel] [PULL 1/1] usb-ccid: remove needless migration state code

2017-10-23 Thread Gerd Hoffmann
From: Marc-André Lureau This code appears to be unused since its introduction. We need to keep the state_vmstate field byte in VMState for compatibility reasons. Signed-off-by: Marc-André Lureau Message-id: 20171013125533.9153-1-marcandre.lur...@redhat.com Signed-off-by: Gerd Hoffmann --- hw/

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-23 Thread Marcel Apfelbaum
On 23/10/2017 8:45, Gerd Hoffmann wrote: Hi, The guest will still run with 40 bits physical! (judging the code anyway, I hope I am wrong) Then, the stakes are not so big, the Guest kernel will disregard the 64bit hole since is not CPU addressable and go on. But then there is no working 64

Re: [Qemu-devel] [PATCH] hw/display/sm501: Fix comment in sm501_sysbus_class_init()

2017-10-23 Thread Gerd Hoffmann
On Fri, 2017-10-20 at 11:53 +0200, Thomas Huth wrote: > The "cannot_instantiate_with_device_add_yet" flag has been renamed > to "user_creatable" a while ago. > > Signed-off-by: Thomas Huth > --- >  hw/display/sm501.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/dis

Re: [Qemu-devel] [RFC 0/6] enable numa configuration before machine_init() from HMP/QMP

2017-10-23 Thread Igor Mammedov
On Fri, 20 Oct 2017 18:07:03 -0200 Eduardo Habkost wrote: > On Fri, Oct 20, 2017 at 10:07:27AM +0100, Daniel P. Berrange wrote: > > On Thu, Oct 19, 2017 at 05:56:49PM -0200, Eduardo Habkost wrote: > > > On Thu, Oct 19, 2017 at 04:28:59PM +0100, Daniel P. Berrange wrote: > > > > On Thu, Oct 19

[Qemu-devel] [Bug 1725707] Re: QEMU sends excess VNC data to websockify even when network is poor

2017-10-23 Thread Daniel Berrange
This is nothing specific to websockets AFAIK. Even using regular VNC QEMU doesn't try to dynamically throttle data / quality settings. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1725707 Title: Q

[Qemu-devel] unsubscribe qemu-devel

2017-10-23 Thread wu.rongbing
unsubscribe qemu-devel 吴容兵 rongbingwu IT开发工程师 IT Development Engineer 华通科技有限公司/华通科技有限公司 深圳市南山区科技南路55号中兴通讯研发大楼34楼 33/F, R&D Building, ZTE Corporation Hi-tech Road South, Hi-tech Industrial Park Nanshan District, Shenzhen, P.R.China, 518057 T: +86 755 xxx

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-23 Thread Gerd Hoffmann
On Mon, 2017-10-23 at 11:46 +0300, Marcel Apfelbaum wrote: > On 23/10/2017 8:45, Gerd Hoffmann wrote: > >    Hi, > > > > > The guest will still run with 40 bits physical! > > > (judging the code anyway, I hope I am wrong) > > > > > > Then, the stakes are not so big, the Guest kernel will disregar

[Qemu-devel] [PULL 8/9] ui: normalize the 'sysrq' key into the 'print' key

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" The 'sysrq' key was mistakenly added to QEMU to deal with incorrect handling of the 'print' key in the ps2 device: commit f2289cb6924afc97b2a75d21bfc9217024d11741 Author: balrog Date: Wed Jun 4 10:14:16 2008 + Add sysrq to key names known by "sendkey"

[Qemu-devel] [PULL 9/9] ui: pull in latest keycodemapdb

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" Latest keycodemapdb has a fix for Sun keyboard Pause mapping and backcompat fix for QEMU's treatment of 0xb7 as an alternative to 0x54 for triggering Print/SysRq Signed-off-by: Daniel P. Berrange Message-id: 20171019142848.572-10-berra...@redhat.com Signed-off-by: Ger

[Qemu-devel] [PULL 5/9] ps2: fix scancodes sent for Shift/Ctrl+Print key combination

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" The 'Print' key is special in the AT set 1 / set 2 scancode definitions. An unmodified 'Print' key is supposed to send AT Set 1: e0 2a e0 37 (Down) e0 b7 e0 aa (Up) AT Set 2: e0 12 e0 7c (Down) e0 f0 7c e0 f0 12 (Up) which QEMU gets right. When combined with Sh

[Qemu-devel] [PULL 2/9] ui: fix crash with sendkey and raw key numbers

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" Previously we enforced that all key events are using QKeyCodes at time they are sent: commit af07e5ff02ae6d4258fc5331007811d0b1c4d35a Author: Daniel P. Berrange Date: Fri Sep 29 11:12:00 2017 +0100 ui: convert key events to QKeyCodes immediately This com

[Qemu-devel] [PULL 6/9] ps2: fix scancodess sent for Pause key in AT set 1

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" The ps2 device was previously fixed to send the special Pause/Print scancode sequences in: commit 8c10e0baf0260b59a4e984744462a18016662e3e Author: Hervé Poussineau Date: Thu Sep 15 22:06:26 2016 +0200 ps2: use QEMU qcodes instead of scancodes The sequenc

[Qemu-devel] [PULL 0/9] Input 20171023 patches

2017-10-23 Thread Gerd Hoffmann
The following changes since commit e822e81e350825dd94f41ee2538ff1432b812eb9: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2017-10-20 15:04:00 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/input-20171023-pu

[Qemu-devel] [PULL 1/9] input: use hex in ps2 keycode trace events

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" Hardware scancodes are all documented in hex, so use that in trace events to make it easier to understand. Signed-off-by: Daniel P. Berrange Reviewed-by: Eric Blake Message-id: 20171019142848.572-2-berra...@redhat.com Signed-off-by: Gerd Hoffmann --- hw/input/trace

[Qemu-devel] [PULL 7/9] ps2: fix scancodes sent for Ctrl+Pause key combination

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" The 'Pause' key is special in the AT set 1 / set 2 scancode definitions. An unmodified 'Pause' key is supposed to send AT Set 1: e1 1d 45 91 9d c5 (Down) (Up) AT Set 2: e1 14 77 e1 f0 14 f0 77 (Down) (Up) which QEMU gets right. When combined with Ctrl (both l

[Qemu-devel] [PULL 3/9] ui: use correct union field for key number

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" The code converting key numbers to QKeyCode in the 'input-send-event' command mistakenly accessed the key->u.qcode union field instead of the key->u.number field. This is harmless because the fields use the same size datatype in both cases, but none the less it should b

[Qemu-devel] [PULL 4/9] ps2: fix scancodes sent for Alt-Print key combination (aka SysRq)

2017-10-23 Thread Gerd Hoffmann
From: "Daniel P. Berrange" The 'Print' key is special in the AT set 1 / set 2 scancode definitions. An unmodified 'Print' key is supposed to send AT Set 1: e0 2a e0 37 (Down) e0 b7 e0 aa (Up) AT Set 2: e0 12 e0 7c (Down) e0 f0 7c e0 f0 12 (Up) which QEMU gets right. When pressed in combi

[Qemu-devel] [PATCH] block/snapshot: dirty all dirty bitmaps on snapshot-switch

2017-10-23 Thread Vladimir Sementsov-Ogievskiy
Snapshot-switch actually changes active state of disk so it should reflect on dirty bitmaps. Otherwise next incremental backup using these bitmaps will be invalid. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/snapshot.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a

Re: [Qemu-devel] [RFC 4/6] CLI: add -paused option

2017-10-23 Thread Alex Bennée
Eduardo Habkost writes: > On Thu, Oct 19, 2017 at 09:42:18PM +1100, David Gibson wrote: >> On Mon, Oct 16, 2017 at 02:59:16PM -0200, Eduardo Habkost wrote: >> > On Mon, Oct 16, 2017 at 06:22:54PM +0200, Igor Mammedov wrote: >> > > Signed-off-by: Igor Mammedov >> > > --- >> > > include/sysemu/s

Re: [Qemu-devel] [PATCH] BCM2837 and machine raspi3

2017-10-23 Thread KONRAD Frederic
Hi, Thanks for your patch. I'd split the patch as there are different piece of work here. eg: bcm2835: checking that the parameters are valid adding bcm2837 adding raspi3 etc.. And you should run your patch through ./script/checkpatch. See: https://wiki.qemu.org/Contribute/SubmitAPatch Thank

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-23 Thread Marcel Apfelbaum
On 23/10/2017 12:16, Gerd Hoffmann wrote: On Mon, 2017-10-23 at 11:46 +0300, Marcel Apfelbaum wrote: On 23/10/2017 8:45, Gerd Hoffmann wrote:    Hi, The guest will still run with 40 bits physical! (judging the code anyway, I hope I am wrong) Then, the stakes are not so big, the Guest kernel

Re: [Qemu-devel] Running Qemu in discrete time/step by step

2017-10-23 Thread Matt
I did not know about Qemu's record/replay mode which is an interesting feature but unneeded if a 2nd qemu run with the same inputs generated the same outputs (as it's the case with DCE). @nutaro Thanks for the updated patch. I will have a look at adevs. On a related note https://github.com/qemu/qe

Re: [Qemu-devel] Running Qemu in discrete time/step by step

2017-10-23 Thread Peter Maydell
On 23 October 2017 at 10:38, Matt wrote: > I did not know about Qemu's record/replay mode which is an interesting > feature but unneeded if a 2nd qemu run with the same inputs generated > the same outputs (as it's the case with DCE). Depends what you're trying to do. Deterministic execution is a

Re: [Qemu-devel] [RFC 4/6] CLI: add -paused option

2017-10-23 Thread Igor Mammedov
On Fri, 20 Oct 2017 12:21:00 -0200 Eduardo Habkost wrote: > On Fri, Oct 20, 2017 at 12:19:17PM +1100, David Gibson wrote: > > On Thu, Oct 19, 2017 at 10:15:48PM -0200, Eduardo Habkost wrote: > > > On Thu, Oct 19, 2017 at 09:42:18PM +1100, David Gibson wrote: > > > > On Mon, Oct 16, 2017 at 02

Re: [Qemu-devel] [RFC 4/6] CLI: add -paused option

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 11:49:13AM +0200, Igor Mammedov wrote: > On Fri, 20 Oct 2017 12:21:00 -0200 > Eduardo Habkost wrote: > > > On Fri, Oct 20, 2017 at 12:19:17PM +1100, David Gibson wrote: > > > On Thu, Oct 19, 2017 at 10:15:48PM -0200, Eduardo Habkost wrote: > > > > On Thu, Oct 19, 2017 at

[Qemu-devel] [PATCH v5 2/6] memfd: remove needless include

2017-10-23 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- util/memfd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/memfd.c b/util/memfd.c index e9c1a0e700..b5b7a41347 100644 --- a/util/memfd.c +++ b/util/memfd.c @@ -27,8 +27,6 @@ #include "qemu/osdep.h" -#include - #include "qemu/memfd.h" #ifd

[Qemu-devel] [PATCH v5 0/6] Add memfd memory backend

2017-10-23 Thread Marc-André Lureau
Add a new Linux-specific memory backend, similar to hostmem-file, except that it doesn't need file path. It also try to enforce memory sealing if available. It is thus slightly easier and secure, and is compatible with transparent huge-pages since Linux 4.8. Since Linux 4.14, memfd supports explic

[Qemu-devel] [PATCH v5 1/6] memfd: split qemu_memfd_alloc()

2017-10-23 Thread Marc-André Lureau
Add a function to only create a memfd, without mmap. The function is used in the following memory backend. Signed-off-by: Marc-André Lureau --- include/qemu/memfd.h | 1 + util/memfd.c | 61 +++- 2 files changed, 37 insertions(+), 25 delet

[Qemu-devel] [PATCH v5 3/6] memfd: add error argument, instead of perror()

2017-10-23 Thread Marc-André Lureau
This will allow callers to silence error report when the call is allowed to failed. Signed-off-by: Marc-André Lureau --- include/qemu/memfd.h | 5 +++-- hw/virtio/vhost.c| 8 +++- util/memfd.c | 57 +++- 3 files changed, 40 insert

[Qemu-devel] [PATCH v5 5/6] Add memfd based hostmem

2017-10-23 Thread Marc-André Lureau
Add a new memory backend, similar to hostmem-file, except that it doesn't need to create files. It also enforces memory sealing. This backend is mainly useful for sharing the memory with other processes. Note that Linux supports transparent huge-pages of shmem/memfd memory since 4.8. It is relati

[Qemu-devel] [PATCH v5 4/6] memfd: add hugetlb support

2017-10-23 Thread Marc-André Lureau
Linux commit 749df87bd7bee5a79cef073f5d032ddb2b211de8 (v4.14-rc1) added a new flag MFD_HUGETLB to memfd_create() that specify the file to be created resides in the hugetlbfs filesystem. This is the generic hugetlbfs filesystem not associated with any specific mount point. hugetlbfs does not suppo

[Qemu-devel] [PATCH v5 6/6] tests: use memfd in vhost-user-test

2017-10-23 Thread Marc-André Lureau
This will exercise the memfd memory backend and should generally be better for testing than memory-backend-file (thanks to anonymous files and sealing). Signed-off-by: Marc-André Lureau --- tests/vhost-user-test.c | 68 - 1 file changed, 44 inserti

Re: [Qemu-devel] [RFC 0/6] enable numa configuration before machine_init() from HMP/QMP

2017-10-23 Thread Igor Mammedov
On Fri, 20 Oct 2017 10:07:27 +0100 "Daniel P. Berrange" wrote: > On Thu, Oct 19, 2017 at 05:56:49PM -0200, Eduardo Habkost wrote: > > On Thu, Oct 19, 2017 at 04:28:59PM +0100, Daniel P. Berrange wrote: > > > On Thu, Oct 19, 2017 at 11:21:22AM -0400, Igor Mammedov wrote: > > > > - Original

Re: [Qemu-devel] [RFC 0/6] enable numa configuration before machine_init() from HMP/QMP

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 12:04:17PM +0200, Igor Mammedov wrote: > On Fri, 20 Oct 2017 10:07:27 +0100 > "Daniel P. Berrange" wrote: > > > On Thu, Oct 19, 2017 at 05:56:49PM -0200, Eduardo Habkost wrote: > > > On Thu, Oct 19, 2017 at 04:28:59PM +0100, Daniel P. Berrange wrote: > > > > On Thu, Oct

Re: [Qemu-devel] [PATCH v5 4/6] memfd: add hugetlb support

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 10:59:08AM +0100, Marc-André Lureau wrote: > Linux commit 749df87bd7bee5a79cef073f5d032ddb2b211de8 (v4.14-rc1) > added a new flag MFD_HUGETLB to memfd_create() that specify the file > to be created resides in the hugetlbfs filesystem. This is the > generic hugetlbfs filesys

Re: [Qemu-devel] [PATCH v5 6/6] tests: use memfd in vhost-user-test

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 10:59:10AM +0100, Marc-André Lureau wrote: > This will exercise the memfd memory backend and should generally be > better for testing than memory-backend-file (thanks to anonymous files > and sealing). Since we'll support vhost-user with both backends, it would be preferrab

[Qemu-devel] [PATCH] Fix compile with --disable-tpm

2017-10-23 Thread BALATON Zoltan
Signed-off-by: BALATON Zoltan --- tpm.c | 7 --- vl.c | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tpm.c b/tpm.c index 45520f5..b625cd4 100644 --- a/tpm.c +++ b/tpm.c @@ -30,8 +30,6 @@ void tpm_register_model(enum TpmModel model) tpm_models[model] = true; }

Re: [Qemu-devel] [RFC 4/6] CLI: add -paused option

2017-10-23 Thread Igor Mammedov
On Mon, 23 Oct 2017 10:53:16 +0100 "Daniel P. Berrange" wrote: > On Mon, Oct 23, 2017 at 11:49:13AM +0200, Igor Mammedov wrote: > > On Fri, 20 Oct 2017 12:21:00 -0200 > > Eduardo Habkost wrote: > > > > > On Fri, Oct 20, 2017 at 12:19:17PM +1100, David Gibson wrote: > > > > On Thu, Oct 19, 2

[Qemu-devel] [PATCH] COLO: remove the operation to clear connection list

2017-10-23 Thread Zhi Yong Wu
From 4439e5853f98fb4b32f346245a46414d3c7e2221 Mon Sep 17 00:00:00 2001 From: Zhi Yong Wu Date: Tue, 24 Oct 2017 03:19:00 +0800 Subject: [PATCH] COLO: remove the operation to clear connection list When hash table is created with g_hash_table_new_full(), the free function has been registered. So i

Re: [Qemu-devel] [RFC 4/6] CLI: add -paused option

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 12:36:20PM +0200, Igor Mammedov wrote: > On Mon, 23 Oct 2017 10:53:16 +0100 > "Daniel P. Berrange" wrote: > > > On Mon, Oct 23, 2017 at 11:49:13AM +0200, Igor Mammedov wrote: > > > On Fri, 20 Oct 2017 12:21:00 -0200 > > > Eduardo Habkost wrote: > > > > > > > On Fri, Oc

[Qemu-devel] [PATCH] COLO: remove the operation to clear connection list

2017-10-23 Thread Zhi Yong Wu
When hash table is created with g_hash_table_new_full(), the free function has been registered. So it isn't necessary since g_hash_table_remove_all() will call connection_destroy() for each connection struct automatically. Signed-off-by: Zhi Yong Wu --- net/colo.c |6 -- 1 files changed,

Re: [Qemu-devel] [PATCH v4 1/7] migration: Add 'pause-before-switchover' capability

2017-10-23 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > When 'pause-before-switchover' is enabled, the outgoing migration > will pause before invalidating the block devices and serializing > the device state. > At this point the management layer gets the chance to clean up any

Re: [Qemu-devel] [PATCH v4 2/7] migration: Add 'pre-switchover' and 'device' statuses

2017-10-23 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Add two statuses for use when the 'pause-before-switchover' > capability is enabled. > > 'pre-switchover' is the state that we wait in for management > to allow us to continue. > 'device' is the state we enter while serial

Re: [Qemu-devel] [PATCH v5 2/6] memfd: remove needless include

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/23/2017 06:59 AM, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé > --- > util/memfd.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/util/memfd.c b/util/memfd.c > index e9c1a0e700..b5b7a41347 100644 > --- a/util/memfd.c > +++ b

Re: [Qemu-devel] [PATCH v5 1/6] memfd: split qemu_memfd_alloc()

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/23/2017 06:59 AM, Marc-André Lureau wrote: > Add a function to only create a memfd, without mmap. The function is > used in the following memory backend. > > Signed-off-by: Marc-André Lureau > --- > include/qemu/memfd.h | 1 + > util/memfd.c | 61 > +++

Re: [Qemu-devel] [PATCH v4 3/7] migration: Wait for semaphore before completing migration

2017-10-23 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Wait for a semaphore before completing the migration, > if the previously added capability was enabled. > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by: Peter Xu Reviewed-by: Juan Quintela > +while (qemu_

Re: [Qemu-devel] [PATCH v4 4/7] migration: migrate-continue

2017-10-23 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > A new qmp command allows the caller to continue from a given > paused state. > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by: Peter Xu Reviewed-by: Juan Quintela > +qemu_sem_post(&s->pause_sem); one of th

Re: [Qemu-devel] [PATCH v4 5/7] migrate: HMP migate_continue

2017-10-23 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > HMP equivalent to the just added migrate-continue > Unpause a migrate paused at a given state. > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by: Peter Xu Reviewed-by: Juan Quintela

Re: [Qemu-devel] [PATCH v4 6/7] migration: allow cancel to unpause

2017-10-23 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > If a migration_cancel is issued during the new paused state, > kick the pause_sem to get to unpause so it can cancel. > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by: Peter Xu Reviewed-by: Juan Quintela

[Qemu-devel] [PATCH] COLO: remove the operation to clear connection list

2017-10-23 Thread zhiyong . wu
From: Zhi Yong Wu When hash table is created with g_hash_table_new_full(), the free function has been registered. So it isn't necessary since g_hash_table_remove_all() will call connection_destroy() for each connection struct automatically. Signed-off-by: Zhi Yong Wu --- net/colo.c |6

Re: [Qemu-devel] [PATCH v4 7/7] migration: pause-before-switchover for postcopy

2017-10-23 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Add pause-before-switchover support for postcopy. > After starting postcopy it will transition > active->pre-switchover->postcopy_active > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by: Peter Xu Reviewed-by:

[Qemu-devel] [PATCH] COLO: remove the operation to clear connection list

2017-10-23 Thread zhiyong . wu
From: Zhi Yong Wu When hash table is created with g_hash_table_new_full(), the free function has been registered. So it isn't necessary since g_hash_table_remove_all() will call connection_destroy() for each connection struct automatically. Signed-off-by: Zhi Yong Wu --- net/colo.c |6

Re: [Qemu-devel] [PATCH] Fix compile with --disable-tpm

2017-10-23 Thread Philippe Mathieu-Daudé
Hi Zoltan, On 10/23/2017 07:24 AM, BALATON Zoltan wrote: > Signed-off-by: BALATON Zoltan > --- > tpm.c | 7 --- > vl.c | 2 ++ > 2 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/tpm.c b/tpm.c > index 45520f5..b625cd4 100644 > --- a/tpm.c > +++ b/tpm.c > @@ -30,8 +30,6 @@ v

Re: [Qemu-devel] [PATCH v3 4/5] xlnx-zcu102: Specify the valid CPUs

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/17/2017 07:31 PM, Alistair Francis wrote: > List all possible valid CPU options. > > Signed-off-by: Alistair Francis > --- > > An implementation for single CPU machines is still being discussed. A > solution proposed by Eduardo is this: > > 1) Change the default on TYPE_MACHINE to: >

[Qemu-devel] [PATCH v5.1 8/8] configure: do_compiler: Dump some extra info under bash [and 1 more messages]

2017-10-23 Thread Ian Jackson
Ian Jackson writes ("[PATCH v5.1 8/8] configure: do_compiler: Dump some extra info under bash"): > This makes it much easier to find a particular thing in config.log. > > The information may be lacking in other shells, resulting in harmless > empty output. (This is why we don't use the proper ${

Re: [Qemu-devel] [Qemu devel v3 PATCH] msf2: Remove dead code reported by Coverity

2017-10-23 Thread sundeep subbaraya
Hi Fam, On Mon, Oct 23, 2017 at 10:48 AM, Fam Zheng wrote: > On Mon, 10/23 08:59, sundeep subbaraya wrote: > > > Cloning into '/var/tmp/patchew-tester-tmp-egubaaoc/src/dtc'... > > > fatal: Could not read from remote repository. > > > > > > Please make sure you have the correct access rights > >

Re: [Qemu-devel] [PATCH 1/4] migration: provide ram_state_init()

2017-10-23 Thread Juan Quintela
Peter Xu wrote: > The old ram_state_init() is not really initializing the RAMState only, > but including lots of other stuff that is RAM-related. Renaming it to > ram_init_all(). Instead, provide a real ram_state_init(). > > Signed-off-by: Peter Xu Reviewed-by: Juan Quintela

Re: [Qemu-devel] [RFC 4/6] CLI: add -paused option

2017-10-23 Thread Igor Mammedov
On Mon, 23 Oct 2017 11:49:44 +0100 "Daniel P. Berrange" wrote: > On Mon, Oct 23, 2017 at 12:36:20PM +0200, Igor Mammedov wrote: > > On Mon, 23 Oct 2017 10:53:16 +0100 > > "Daniel P. Berrange" wrote: > > > > > On Mon, Oct 23, 2017 at 11:49:13AM +0200, Igor Mammedov wrote: > > > > On Fri, 20

Re: [Qemu-devel] [PATCH 3/4] migration: clean up xbzrle cache init/destroy

2017-10-23 Thread Juan Quintela
Peter Xu wrote: > Let's further simplify ram_init_all() and ram_save_cleanup() by abstract > all the XBZRLE related codes into their own functions. > > When allocating xbzrle cache, we are always very careful on -ENOMEM; > which makes sense. Replacing the last g_malloc0() with g_try_malloc0(), >

Re: [Qemu-devel] [PATCH 2/4] migration: provide ram_state_cleanup

2017-10-23 Thread Juan Quintela
Peter Xu wrote: > There are two Mutexes that are created but not yet destroyed for > RAMState. Fix that. > > Since we are at it, provide helper function to clean up RAMState. > > Signed-off-by: Peter Xu Reviewed-by: Juan Quintela

Re: [Qemu-devel] [PATCH] COLO: remove the operation to clear connection list

2017-10-23 Thread Darren Kenny
That's consistent with the documented behaviour of g_hash_table_remove_all(). Reviewed-by: Darren Kenny Thanks, Darren. On Tue, Oct 24, 2017 at 03:27:59AM +0800, zhiyong...@ucloud.cn wrote: From: Zhi Yong Wu When hash table is created with g_hash_table_new_full(), the free function has

Re: [Qemu-devel] [PATCH v5 4/6] memfd: add hugetlb support

2017-10-23 Thread Marc-André Lureau
Hi - Original Message - > On Mon, Oct 23, 2017 at 10:59:08AM +0100, Marc-André Lureau wrote: > > Linux commit 749df87bd7bee5a79cef073f5d032ddb2b211de8 (v4.14-rc1) > > added a new flag MFD_HUGETLB to memfd_create() that specify the file > > to be created resides in the hugetlbfs filesystem.

Re: [Qemu-devel] [PATCH v5 4/6] memfd: add hugetlb support

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 07:27:31AM -0400, Marc-André Lureau wrote: > Hi > > - Original Message - > > On Mon, Oct 23, 2017 at 10:59:08AM +0100, Marc-André Lureau wrote: > > > Linux commit 749df87bd7bee5a79cef073f5d032ddb2b211de8 (v4.14-rc1) > > > added a new flag MFD_HUGETLB to memfd_create

Re: [Qemu-devel] [PATCH v5 5/6] Add memfd based hostmem

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 10:59:09AM +0100, Marc-André Lureau wrote: > Add a new memory backend, similar to hostmem-file, except that it > doesn't need to create files. It also enforces memory sealing. > > This backend is mainly useful for sharing the memory with other > processes. > > Note that Li

Re: [Qemu-devel] [PATCH 4/4] migration: new ram_init_bitmaps()

2017-10-23 Thread Juan Quintela
Peter Xu wrote: > Rearrange the bitmap initialization and the first sync. Since at it, > make sure the locks are taken/released in correct order (I moved RCU > unlock upper - though it may not affect much). > > Signed-off-by: Peter Xu Reviewed-by: Juan Quintela

Re: [Qemu-devel] [PATCH v5 5/6] Add memfd based hostmem

2017-10-23 Thread Marc-André Lureau
- Original Message - > On Mon, Oct 23, 2017 at 10:59:09AM +0100, Marc-André Lureau wrote: > > Add a new memory backend, similar to hostmem-file, except that it > > doesn't need to create files. It also enforces memory sealing. > > > > This backend is mainly useful for sharing the memory

Re: [Qemu-devel] [PATCH v5 5/6] Add memfd based hostmem

2017-10-23 Thread Daniel P. Berrange
On Mon, Oct 23, 2017 at 07:41:57AM -0400, Marc-André Lureau wrote: > > > - Original Message - > > On Mon, Oct 23, 2017 at 10:59:09AM +0100, Marc-André Lureau wrote: > > > Add a new memory backend, similar to hostmem-file, except that it > > > doesn't need to create files. It also enforces

Re: [Qemu-devel] [PATCH v5 06/11] nbd: Minimal structured read for server

2017-10-23 Thread Eric Blake
On 10/20/2017 02:30 PM, Vladimir Sementsov-Ogievskiy wrote: +    } else if (client->structured_reply) { +    ret = nbd_negotiate_send_rep_err( +    client->ioc, NBD_REP_ERR_INVALID, option, errp, +    "str

Re: [Qemu-devel] [PATCH v5 11/11] nbd: Minimal structured read for client

2017-10-23 Thread Eric Blake
On 10/19/2017 05:26 PM, Eric Blake wrote: > From: Vladimir Sementsov-Ogievskiy > > Minimal implementation: for structured error only error_report error > message. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > Signed-off-by: Eric Blake > > +static int nbd_parse_offset_hole_payload(NBDStru

[Qemu-devel] [PATCH v2] Fix compile with --disable-tpm

2017-10-23 Thread BALATON Zoltan
Signed-off-by: BALATON Zoltan --- tpm.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/tpm.c b/tpm.c index 45520f5..ed78ead 100644 --- a/tpm.c +++ b/tpm.c @@ -30,8 +30,6 @@ void tpm_register_model(enum TpmModel model) tpm_models[mode

[Qemu-devel] [PATCH 0/4] gtk: add dmabuf support

2017-10-23 Thread Gerd Hoffmann
This series adds dmabuf support to the gtk ui. Gerd Hoffmann (4): opengl: split up dpy_gl_cursor ops gtk: make GtkGlArea usage a runtime option gtk: use GtkGlArea on wayland only gtk-egl: add dmabuf support include/ui/console.h | 10 +--- include/ui/gtk.h | 13 ++ ui/cons

[Qemu-devel] [PATCH 4/4] gtk-egl: add dmabuf support

2017-10-23 Thread Gerd Hoffmann
Add support for the new dmabuf interface. Signed-off-by: Gerd Hoffmann --- include/ui/gtk.h | 11 ++ ui/gtk-egl.c | 64 ++-- ui/gtk.c | 6 ++ 3 files changed, 79 insertions(+), 2 deletions(-) diff --git a/include/ui/gt

[Qemu-devel] [PATCH 1/4] opengl: split up dpy_gl_cursor ops

2017-10-23 Thread Gerd Hoffmann
Add a separate callback to set the position of the cursor dmabuf. Note that the position is the upper left corner not the hotspot. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 10 ++ ui/console.c | 15 --- ui/egl-headless.c| 16 +++- 3 files

[Qemu-devel] [PATCH 3/4] gtk: use GtkGlArea on wayland only

2017-10-23 Thread Gerd Hoffmann
For dma-buf imports we need a egl context. The GtkGlArea widget uses glx though when running on X11. So use the GtkGlArea code on wayland only. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index

[Qemu-devel] [PATCH 2/4] gtk: make GtkGlArea usage a runtime option

2017-10-23 Thread Gerd Hoffmann
Compile gtk with both opengl code variants (GtkGlArea widget and egl context). This allows to select the code path at runtime. Signed-off-by: Gerd Hoffmann --- include/ui/gtk.h | 2 ++ ui/gtk.c | 53 + ui/Makefile.objs | 3 +-- 3 fil

[Qemu-devel] [Bug 1725707] Re: QEMU sends excess VNC data to websockify even when network is poor

2017-10-23 Thread Daniel Berrange
NB, if websockify crashes, then that is a serious flaw in websockify - it shouldn't read an unbounded amount of data from QEMU, if it is unable to send it onto the client. If websockify stopped reading data from QEMU, then QEMU would in turn stop sending it once the TCP buffer was full -- You re

Re: [Qemu-devel] [PATCH v5 11/11] nbd: Minimal structured read for client

2017-10-23 Thread Vladimir Sementsov-Ogievskiy
23.10.2017 14:57, Eric Blake wrote: On 10/19/2017 05:26 PM, Eric Blake wrote: From: Vladimir Sementsov-Ogievskiy Minimal implementation: for structured error only error_report error message. Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Eric Blake +static int nbd_parse_offset_

Re: [Qemu-devel] [PATCH] Fix compile with --disable-tpm

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/23/2017 08:09 AM, Philippe Mathieu-Daudé wrote: > On 10/23/2017 07:24 AM, BALATON Zoltan wrote: [...] >> info = g_new0(TPMInfoList, 1); >> +#ifdef CONFIG_TPM >> info->value = tpm_backend_query_tpm(drv); >> - >> +#endif >> if (!cur_item) { >> head = cur_

[Qemu-devel] [PATCH] hw/arm/virt: support 4 serial ports

2017-10-23 Thread Jason A. Donenfeld
The QEMU man page says: -serial dev This option can be used several times to simulate up to 4 serial ports. However, the ARM virt machine erroneously only provides 1 serial port. This patch fixes it by populating 4 of them. But, unfortunately, this patch doesn't actu

[Qemu-devel] Question regarding qemuimg check

2017-10-23 Thread Ala Hino
Hi, I have a question regarding qemuimg check. We use qemuimg check in order to get the offset of image. we need the offset to reduce the size of the image to optimal. In BZ 1502488 , we are encountering a use case where a leaked cluster error when executing q

Re: [Qemu-devel] [PATCH] BCM2837 and machine raspi3

2017-10-23 Thread bzt bzt
Okay, thanks! Sorry I haven't splitted. Best wishes, Zoli (bzt) On Mon, Oct 23, 2017 at 11:34 AM, KONRAD Frederic < frederic.kon...@adacore.com> wrote: > Hi, > > Thanks for your patch. > > I'd split the patch as there are different piece of work here. > > eg: > bcm2835: checking that the paramet

Re: [Qemu-devel] [PATCH v4 2/4] vhost-user-blk: introduce a new vhost-user-blk host device

2017-10-23 Thread Michael S. Tsirkin
On Mon, Oct 23, 2017 at 04:26:36AM +, Liu, Changpeng wrote: > > > > -Original Message- > > From: Stefan Hajnoczi [mailto:stefa...@gmail.com] > > Sent: Friday, October 20, 2017 5:55 PM > > To: Liu, Changpeng > > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com; m...@redhat.com; > > marc

Re: [Qemu-devel] [Qemu-arm] [PATCH] hw/arm/virt: support 4 serial ports

2017-10-23 Thread Peter Maydell
On 23 October 2017 at 13:27, Jason A. Donenfeld wrote: > The QEMU man page says: > >-serial dev >This option can be used several times to >simulate up to 4 serial ports. > > However, the ARM virt machine erroneously only provides 1 serial port. > This patch fixes it

[Qemu-devel] Qemu query ( support for new board)

2017-10-23 Thread Fahad Butt
Greetings qemu community, I am a master student here in germany and currently doing my master thesis. I want to use qemu for emulation and i just have few questions and will be very happy to get thek all answered by you experts: 1- I want to know whether qemu can be cycle accurate or not? from

[Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

2017-10-23 Thread Julian Andres Klode
Public bug reported: qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) unmodified, but the third argument is an address to a BPF filter, causing an EFAULT. Now, the filter is architecture-specifc, so you can't just rewrite the addresses, so the safest bet is to just retu

  1   2   3   >