Re: [Qemu-devel] [PATCH v3] ps2: Fix lost scancodes by recent changes

2017-01-05 Thread Gerd Hoffmann
On Do, 2017-01-05 at 06:11 +0900, OGAWA Hirofumi wrote: > Hervé Poussineau writes: > > > Le 04/01/2017 à 09:50, Gerd Hoffmann a écrit : > >> On Mi, 2016-12-28 at 04:55 +0900, OGAWA Hirofumi wrote: > >>> With "ps2: use QEMU qcodes instead of scancodes", key handling was > >>> changed to qcode base

[Qemu-devel] Live migration + cpu/mem hotplug

2017-01-05 Thread Bob Chen
Hi, According to the docs, the destination Qemu must have the exactly same parameters as the source one. So if the source has just finished cpu or memory hotplug, what would the dest's parameters be like? Does DIMM device, or logically QOM object, have to be reflected on the new command-line para

Re: [Qemu-devel] [PATCH v2] qemu-thread: fix qemu_thread_set_name() race in qemu_thread_create()

2017-01-05 Thread Hailiang Zhang
On 2017/1/4 18:32, Daniel P. Berrange wrote: On Wed, Jan 04, 2017 at 09:32:01AM +0800, zhanghailiang wrote: From: Caoxinhua QEMU will crash with the follow backtrace if the new created thread exited before we call qemu_thread_set_name() for it. (gdb) bt #0 0x7f9a68b095d7 in __GI_ra

Re: [Qemu-devel] [PATCH v2] qemu-thread: fix qemu_thread_set_name() race in qemu_thread_create()

2017-01-05 Thread Hailiang Zhang
On 2017/1/4 19:59, Paolo Bonzini wrote: On 04/01/2017 02:32, zhanghailiang wrote: From: Caoxinhua QEMU will crash with the follow backtrace if the new created thread exited before we call qemu_thread_set_name() for it. (gdb) bt #0 0x7f9a68b095d7 in __GI_raise (sig=sig@entry=6) at

Re: [Qemu-devel] [PATCH v3] ps2: Fix lost scancodes by recent changes

2017-01-05 Thread OGAWA Hirofumi
Gerd Hoffmann writes: >> Yes, please use v3. Here is copy&paste, FWIW. > > Please don't send new versions of patches as reply. That confuses > various patch management tools, they are considered being part of the > discussion then. This is how the reviewed-by tag ended up being > attributed to

Re: [Qemu-devel] [PATCH 0/3] virtio: disable notifications in blk and scsi

2017-01-05 Thread Stefan Hajnoczi
On Thu, Nov 17, 2016 at 07:38:45PM +0200, Michael S. Tsirkin wrote: > On Thu, Nov 17, 2016 at 01:27:49PM +, Stefan Hajnoczi wrote: > > On Thu, Nov 17, 2016 at 12:17:57AM +0200, Michael S. Tsirkin wrote: > > > On Wed, Nov 16, 2016 at 09:53:06PM +, Stefan Hajnoczi wrote: > > > > Disabling not

Re: [Qemu-devel] [PATCH v3 0/4] migration: skip scanning and migrating ram pages released by virtio-balloon driver.

2017-01-05 Thread David Hildenbrand
If we want to actually host enforce (disallow) access to inflated pages, having Is that a new feature? Still in the design phase. Andrea Arcangeli briefly mentioned in in his reply to v5 of your patch series "We also plan to use userfaultfd to make the balloon driver host enforced (will wo

[Qemu-devel] [PATCH 0/2] VT-d migration support

2017-01-05 Thread Peter Xu
This series enables VT-d IOMMU migration. First patch is an enhancement to current migration framework to allow prioritized save state entry. This is required to let VT-d migrate properly. The second patch enables the migration for the vIOMMU. Please check commit message for more information. T

[Qemu-devel] [PATCH 1/2] migration: allow to prioritize save state entries

2017-01-05 Thread Peter Xu
During migration, save state entries are saved/loaded without a specific order - we just traverse the savevm_state.handlers list and do it one by one. This might not be enough in the future. There is case that we need to load specific device's vmstate first before others. For example, VT-d IOMMU c

[Qemu-devel] [PATCH 2/2] intel_iommu: allow migration

2017-01-05 Thread Peter Xu
IOMMU needs to be migrated before all the PCI devices (in case there are devices that will request for address translation). So marking it with priority 100. Migration framework helped to do all the rest. Signed-off-by: Peter Xu --- hw/i386/intel_iommu.c | 21 - 1 file change

Re: [Qemu-devel] Live migration + cpu/mem hotplug

2017-01-05 Thread Daniel P. Berrange
On Thu, Jan 05, 2017 at 04:27:26PM +0800, Bob Chen wrote: > Hi, > > According to the docs, the destination Qemu must have the exactly same > parameters as the source one. So if the source has just finished cpu or > memory hotplug, what would the dest's parameters be like? > > Does DIMM device, or

Re: [Qemu-devel] [PATCH v3 0/4] migration: skip scanning and migrating ram pages released by virtio-balloon driver.

2017-01-05 Thread Li, Liang Z
> >> If we want to actually host enforce (disallow) access to inflated > >> pages, having > > > > Is that a new feature? > > Still in the design phase. Andrea Arcangeli briefly mentioned in in his reply > to > v5 of your patch series > > "We also plan to use userfaultfd to make the balloon drive

Re: [Qemu-devel] [PATCH] serial: fix memory leak in serial exit

2017-01-05 Thread Paolo Bonzini
On 04/01/2017 14:24, Michael S. Tsirkin wrote: > On Wed, Jan 04, 2017 at 12:43:35PM +0100, Paolo Bonzini wrote: >> >> >> On 04/01/2017 09:43, Li Qiang wrote: >>> From: Li Qiang >>> >>> The serial_exit_core function doesn't free some resources. >>> This can lead memory leak when hotplug and unplu

Re: [Qemu-devel] [PATCH 2/3] io: make qio_channel_yield aware of AioContexts

2017-01-05 Thread Daniel P. Berrange
On Wed, Jan 04, 2017 at 04:26:24PM -0500, Paolo Bonzini wrote: > > > @@ -84,8 +83,8 @@ struct QIOChannel { > > > +static void qio_channel_set_fd_handlers(QIOChannel *ioc) > > > +{ > > > +IOHandler *rd_handler = NULL, *wr_handler = NULL; > > > + > > > +if (ioc->read_coroutine) { > > > + rd_h

Re: [Qemu-devel] [PATCH v2 1/2] Do endian swapping.

2017-01-05 Thread Uri Lublin
On 01/03/2017 08:16 PM, Michal Suchanek wrote: This allows running big endian and little endian guest side by side using cut & paste between them. There is a general design idea that swapping should come as close to virtio_read/virtio_write as possible. In particular, the protocol between vdagen

Re: [Qemu-devel] [PATCH 2/3] io: make qio_channel_yield aware of AioContexts

2017-01-05 Thread Paolo Bonzini
On 05/01/2017 11:26, Daniel P. Berrange wrote: +if (condition == G_IO_IN) { +ioc->read_coroutine = qemu_coroutine_self(); +} else if (condition == G_IO_OUT) { +ioc->write_coroutine = qemu_coroutine_self(); +} else { +abort();

Re: [Qemu-devel] [PATCH v2] qemu-thread: fix qemu_thread_set_name() race in qemu_thread_create()

2017-01-05 Thread Paolo Bonzini
On 05/01/2017 09:36, Hailiang Zhang wrote: > On 2017/1/4 19:59, Paolo Bonzini wrote: >> On 04/01/2017 02:32, zhanghailiang wrote: >>> From: Caoxinhua >>> >>> QEMU will crash with the follow backtrace if the new created thread >>> exited before >>> we call qemu_thread_set_name() for it. >>> >>>

Re: [Qemu-devel] TSC frequency configuration & invtsc migration (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-05 Thread Marcelo Tosatti
On Wed, Jan 04, 2017 at 11:36:31PM -0200, Eduardo Habkost wrote: > On Wed, Jan 04, 2017 at 08:26:27PM -0200, Marcelo Tosatti wrote: > > On Wed, Jan 04, 2017 at 05:59:17PM -0200, Eduardo Habkost wrote: > > > On Wed, Jan 04, 2017 at 11:39:16AM -0200, Eduardo Habkost wrote: > > > > On Wed, Jan 04, 201

Re: [Qemu-devel] TSC frequency configuration & invtsc migration (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-05 Thread Marcelo Tosatti
On Thu, Jan 05, 2017 at 08:48:32AM -0200, Marcelo Tosatti wrote: > > Note that even if we follow your suggestion and implement an > > alternative version of patch 4/4 to cover your use case, I will > > strongly recommend libvirt developers to support configuring TSC > > frequency if they want to su

Re: [Qemu-devel] [PULL 0/5] virtio-gpu: misc bugfixes.

2017-01-05 Thread Peter Maydell
On 3 January 2017 at 14:52, Gerd Hoffmann wrote: > Hi, > > New year, new pull request. Here comes the vga patch queue with > a collection of virtio-gpu fixes. > > please pull, > Gerd > > The following changes since commit 6a928d25b6d8bc3729c3d28326c6db13b9481059: > > Update version for v2.8

[Qemu-devel] [PATCH 02/14] target-ppc: Add xxinsertw instruction

2017-01-05 Thread Nikunj A Dadhania
xxinsertw: VSX Vector Insert Word Signed-off-by: Nikunj A Dadhania --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 25 + target-ppc/translate/vsx-impl.inc.c | 5 +++-- target-ppc/translate/vsx-ops.inc.c | 1 + 4 files changed, 30 i

[Qemu-devel] [PATCH 00/14] POWER9 TCG enablements - part10

2017-01-05 Thread Nikunj A Dadhania
This series contains 11 new instructions for POWER9 ISA3.0 VSX Vector Insert/Extract Word VSX Scalar Extract Exponent/Significand VSX Scalar Convert VSX Scalar Add QP Various float related improvements Bharata B Rao (8): target-ppc: Use float64 arg in helper_compute_fprf

[Qemu-devel] [PATCH 06/14] target-ppc: Add xsaddqp instructions

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao xsaddqp: VSX Scalar Add Quad-Precision Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania --- target-ppc/fpu_helper.c | 36 target-ppc/helper.h | 1 + target-ppc/internal.h | 2 ++

[Qemu-devel] [PATCH 08/14] target-ppc: Use correct precision for FPRF setting

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao Use correct FP precision when setting FPRF in FP conversion helpers instead of always assuming float64 precision. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania --- target-ppc/fpu_helper.c | 4 ++-- target-ppc/internal.h | 1 + 2 files changed, 3 insertion

[Qemu-devel] [PATCH 07/14] target-ppc: Add xscvdphp, xscvhpdp

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao xscvdphp: VSX Scalar round & Convert Double-Precision format to Half-Precision format xscvhpdp: VSX Scalar Convert Half-Precision format to Double-Precision format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania --- include/fpu/softfloat.h

[Qemu-devel] [PATCH 01/14] target-ppc: Add xxextractuw instruction

2017-01-05 Thread Nikunj A Dadhania
xxextractuw: VSX Vector Extract Unsigned Word Signed-off-by: Nikunj A Dadhania --- target-ppc/helper.h | 1 + target-ppc/int_helper.c | 26 ++ target-ppc/translate/vsx-impl.inc.c | 30 ++ target-ppc/translate/vsx-op

[Qemu-devel] [PATCH 04/14] target-ppc: Replace isden by float64_is_zero_or_denormal

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao Replace isden() by float64_is_zero_or_denormal() so that code in helper_compute_fprf() can be reused to work with float128 argument. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania --- target-ppc/fpu_helper.c | 11 +-- 1 file changed, 1 insertion(+),

[Qemu-devel] [PATCH 05/14] target-ppc: Rename helper_compute_fprf to helper_compute_fprf_float64

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao Since helper_compute_fprf() works on float64 argument, rename it to helper_compute_fprf_float64(). Also use a macro to generate helper_compute_fprf_float64() so that float128 version of the same helper can be introduced easily later. Signed-off-by: Bharata B Rao Signed-off-b

[Qemu-devel] [PATCH 12/14] target-ppc: Add xsxexpqp instruction

2017-01-05 Thread Nikunj A Dadhania
xsxexpqp: VSX Scalar Extract Exponent Quad Precision Signed-off-by: Nikunj A Dadhania --- target-ppc/translate/vsx-impl.inc.c | 15 +++ target-ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 16 insertions(+) diff --git a/target-ppc/translate/vsx-impl.inc.c b/target-ppc/transl

[Qemu-devel] [PATCH 09/14] target-ppc: Add xscvdpqp instruction

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao xscvdpqp: VSX Scalar Convert Double-Precision format to Quad-Precision format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania --- target-ppc/fpu_helper.c | 10 ++ target-ppc/helper.h | 1 + target-ppc/translate/v

[Qemu-devel] [PATCH 10/14] target-ppc: Add xscvqpdp instruction

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao xscvqpdp: VSX Scalar round & Convert Quad-Precision format to Double-Precision format Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania --- target-ppc/fpu_helper.c | 28 target-ppc/helper.h |

[Qemu-devel] [PATCH 03/14] target-ppc: Use float64 arg in helper_compute_fprf()

2017-01-05 Thread Nikunj A Dadhania
From: Bharata B Rao Use float64 argument instead of unit64_t in helper_compute_fprf() This allows code in helper_compute_fprf() to be reused later to work with float128 argument too. Signed-off-by: Bharata B Rao Signed-off-by: Nikunj A Dadhania --- target-ppc/fpu_helper.c | 16 +++

[Qemu-devel] [PATCH 13/14] target-ppc: Add xsxsigdp instruction

2017-01-05 Thread Nikunj A Dadhania
xsxsigdp: VSX Scalar Extract Significand Dual Precision Signed-off-by: Nikunj A Dadhania --- target-ppc/translate/vsx-impl.inc.c | 29 + target-ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 30 insertions(+) diff --git a/target-ppc/translate/vsx-impl.inc.c b/

[Qemu-devel] [PATCH 11/14] target-ppc: Add xsxexpdp instruction

2017-01-05 Thread Nikunj A Dadhania
xsxexpdp: VSX Scalar Extract Exponent Dual Precision Signed-off-by: Nikunj A Dadhania --- target-ppc/translate/vsx-impl.inc.c | 13 + target-ppc/translate/vsx-ops.inc.c | 4 2 files changed, 17 insertions(+) diff --git a/target-ppc/translate/vsx-impl.inc.c b/target-ppc/trans

Re: [Qemu-devel] New Year's starting over ... bsd-user

2017-01-05 Thread Peter Maydell
On 3 January 2017 at 16:18, Sean Bruno wrote: > I'm pondering where to start with getting FreeBSD's bsd-user code into > shape so it could actually be reviewed and accepted now that its sort of > working again (signal handling fixed finally). > > I almost feel like the existing code should be purg

[Qemu-devel] [PATCH 14/14] target-ppc: Add xsxsigqp instructions

2017-01-05 Thread Nikunj A Dadhania
xsxsigqp: VSX Scalar Extract Significand Quad Precision Signed-off-by: Nikunj A Dadhania --- target-ppc/translate/vsx-impl.inc.c | 29 + target-ppc/translate/vsx-ops.inc.c | 1 + 2 files changed, 30 insertions(+) diff --git a/target-ppc/translate/vsx-impl.inc.c b/

Re: [Qemu-devel] [PATCH] hw/dma: Fix dead code in pl080.c

2017-01-05 Thread Peter Maydell
On 27 December 2016 at 23:11, Sergio Andrés Gómez Del Real wrote: > The patch fixes dead code in pl080_read() and pl080_write() as reported > in bug #1637974. According to ARM's official Technical Reference Manual, > offsets handled by the switch statement are 0x100, 0x104, 0x108, 0x10C > and 0x11

Re: [Qemu-devel] [PATCH v2] linux-user: Fix s390x safe-syscall for z900

2017-01-05 Thread Riku Voipio
On Wed, Oct 26, 2016 at 12:08:52PM -0700, Richard Henderson wrote: > The LT instruction was added in the extended immediate facility > introduced with the z9-109 processor. Sorry I missed this during 2.8. This is stable-2.8 material once it opens. Applied to linux-user now, thanks. > Cc: Riku Vo

Re: [Qemu-devel] [PATCH v2 2/7] linux-user: Fix inotify_init1 support

2017-01-05 Thread Riku Voipio
On Thu, Nov 24, 2016 at 05:08:53PM +0100, Lena Djokic wrote: > This commit adds necessary conversion of argument passed to inotify_init1. > inotify_init1 flags can be IN_NONBLOCK and IN_CLOEXEC which rely on O_NONBLOCK > and O_CLOEXEC and those can have different values on different platforms. Tha

Re: [Qemu-devel] [PATCH v2 5/7] linux-user: Fix readahead

2017-01-05 Thread Riku Voipio
On Thu, Nov 24, 2016 at 05:08:56PM +0100, Lena Djokic wrote: > Calculation of 64-bit offset was not correct for all cases. Thanks, applied to linux-user > Signed-off-by: Lena Djokic > --- > linux-user/syscall.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-use

Re: [Qemu-devel] [PATCH v2 7/7] linux-user: Fix mq_open

2017-01-05 Thread Riku Voipio
On Thu, Nov 24, 2016 at 05:08:58PM +0100, Lena Djokic wrote: > If fourth argument is NULL it should be passed without > using lock_user function which would, in that case, return > EFAULT, and system call supports passing NULL as fourth argument. Thanks, applied to linux-user > Signed-off-by: Le

Re: [Qemu-devel] TSC frequency configuration & invtsc migration (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-05 Thread Eduardo Habkost
On Thu, Jan 05, 2017 at 08:48:32AM -0200, Marcelo Tosatti wrote: > On Wed, Jan 04, 2017 at 11:36:31PM -0200, Eduardo Habkost wrote: > > On Wed, Jan 04, 2017 at 08:26:27PM -0200, Marcelo Tosatti wrote: > > > On Wed, Jan 04, 2017 at 05:59:17PM -0200, Eduardo Habkost wrote: > > > > On Wed, Jan 04, 201

Re: [Qemu-devel] [libvirt] TSC frequency configuration & invtsc migration (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-05 Thread Daniel P. Berrange
On Thu, Jan 05, 2017 at 10:19:50AM -0200, Eduardo Habkost wrote: > On Thu, Jan 05, 2017 at 08:48:32AM -0200, Marcelo Tosatti wrote: > > On Wed, Jan 04, 2017 at 11:36:31PM -0200, Eduardo Habkost wrote: > > > I am considering two possible scenarios below. You probably have > > > another scenario in m

Re: [Qemu-devel] [PULL 00/13] 9p patches 20170104

2017-01-05 Thread Peter Maydell
On 4 January 2017 at 08:21, Greg Kurz wrote: > The following changes since commit dbe2b65566e76d3c3a0c3358285c0336ac61e757: > > Merge remote-tracking branch > 'remotes/vivier/tags/m68k-for-2.9-pull-request' into staging (2016-12-28 > 17:11:11 +) > > are available in the git repository at:

Re: [Qemu-devel] [libvirt] TSC frequency configuration & invtsc migration (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-05 Thread Eduardo Habkost
On Thu, Jan 05, 2017 at 12:33:51PM +, Daniel P. Berrange wrote: > On Thu, Jan 05, 2017 at 10:19:50AM -0200, Eduardo Habkost wrote: > > On Thu, Jan 05, 2017 at 08:48:32AM -0200, Marcelo Tosatti wrote: > > > On Wed, Jan 04, 2017 at 11:36:31PM -0200, Eduardo Habkost wrote: [...] > > > > Scenario 2

Re: [Qemu-devel] [PATCH 1/2] migration: allow to prioritize save state entries

2017-01-05 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > During migration, save state entries are saved/loaded without a specific > order - we just traverse the savevm_state.handlers list and do it one by > one. This might not be enough in the future. > > There is case that we need to load specific device's vmstat

Re: [Qemu-devel] [libvirt] TSC frequency configuration & invtsc migration (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-05 Thread Daniel P. Berrange
On Thu, Jan 05, 2017 at 10:48:57AM -0200, Eduardo Habkost wrote: > On Thu, Jan 05, 2017 at 12:33:51PM +, Daniel P. Berrange wrote: > > On Thu, Jan 05, 2017 at 10:19:50AM -0200, Eduardo Habkost wrote: > > > On Thu, Jan 05, 2017 at 08:48:32AM -0200, Marcelo Tosatti wrote: > > > > On Wed, Jan 04,

Re: [Qemu-devel] [libvirt] TSC frequency configuration & invtsc migration (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-05 Thread Eduardo Habkost
On Thu, Jan 05, 2017 at 01:00:32PM +, Daniel P. Berrange wrote: > On Thu, Jan 05, 2017 at 10:48:57AM -0200, Eduardo Habkost wrote: > > On Thu, Jan 05, 2017 at 12:33:51PM +, Daniel P. Berrange wrote: > > > On Thu, Jan 05, 2017 at 10:19:50AM -0200, Eduardo Habkost wrote: > > > > On Thu, Jan 0

Re: [Qemu-devel] [PATCH v3 0/4] migration: skip scanning and migrating ram pages released by virtio-balloon driver.

2017-01-05 Thread David Hildenbrand
Am 05.01.2017 um 11:15 schrieb Li, Liang Z: If we want to actually host enforce (disallow) access to inflated pages, having Is that a new feature? Still in the design phase. Andrea Arcangeli briefly mentioned in in his reply to v5 of your patch series "We also plan to use userfaultfd to make

Re: [Qemu-devel] [PATCH v5 3/4] Plumb the HAXM-based hardware acceleration support

2017-01-05 Thread Vincent Palatin
On Thu, Dec 22, 2016 at 10:57 AM, Paolo Bonzini wrote: > > > On 19/12/2016 17:24, Vincent Palatin wrote: >> #else /* _WIN32 */ >> -abort(); >> +if (!qemu_cpu_is_self(cpu)) { >> +CONTEXT context; >> +if (SuspendThread(cpu->hThread) == (DWORD)(-1)) { >> +fprintf(

Re: [Qemu-devel] [PATCH v5 4/4] hax: add Darwin support

2017-01-05 Thread Vincent Palatin
On Thu, Dec 22, 2016 at 10:49 AM, Paolo Bonzini wrote: > > > On 19/12/2016 17:24, Vincent Palatin wrote: >> diff --git a/cpus.c b/cpus.c >> index 0e01791..b8db313 100644 >> --- a/cpus.c >> +++ b/cpus.c >> @@ -1264,6 +1264,11 @@ static void qemu_cpu_kick_thread(CPUState *cpu) >> return; >>

Re: [Qemu-devel] [PULL 00/14] Block patches

2017-01-05 Thread Peter Maydell
On 4 January 2017 at 13:34, Stefan Hajnoczi wrote: > The following changes since commit dbe2b65566e76d3c3a0c3358285c0336ac61e757: > > Merge remote-tracking branch > 'remotes/vivier/tags/m68k-for-2.9-pull-request' into staging (2016-12-28 > 17:11:11 +) > > are available in the git repositor

[Qemu-devel] [PATCH] error: report hints on stderr when no monitor

2017-01-05 Thread Marc-André Lureau
Report the error hint when running from the command line and reaching an error, ex: $ qemu-system-x86_64 -m 1Z qemu-system-x86_64: -m 1Z: Parameter 'size' expects a size You may use k, M, G or T suffixes for kilobytes, megabytes, gigabytes and terabytes. Signed-off-by: Marc-André Lureau --- mo

Re: [Qemu-devel] [PATCH v5 3/4] Plumb the HAXM-based hardware acceleration support

2017-01-05 Thread Paolo Bonzini
On 05/01/2017 14:50, Vincent Palatin wrote: > Sorry I missed it. > I move it to qemu_cpu_kick() as asked in the Darwin patch. > >> Apart from the above change, can you check if there are some less >> heavyeight methods to force an exit? I can think of QueueUserAPC with >> an empty pfnAPC here,

Re: [Qemu-devel] [PATCH 12/54] spice-char: improve error reporting

2017-01-05 Thread Marc-André Lureau
Hi On Wed, Jan 4, 2017 at 11:00 PM Eric Blake wrote: > On 12/12/2016 04:42 PM, Marc-André Lureau wrote: > > Set errp to report errors up. > > > > Use error_report() to give hints about parameters on the right monitor, > > instead of a direct fprintf() call. > > > > Signed-off-by: Marc-André Lure

Re: [Qemu-devel] [PATCH] error: report hints on stderr when no monitor

2017-01-05 Thread Paolo Bonzini
On 05/01/2017 14:59, Marc-André Lureau wrote: > Report the error hint when running from the command line and reaching an > error, ex: > > $ qemu-system-x86_64 -m 1Z > qemu-system-x86_64: -m 1Z: Parameter 'size' expects a size > You may use k, M, G or T suffixes for kilobytes, megabytes, gigabyte

Re: [Qemu-devel] [PATCH for-2.9] block: get rid of bdrv_io_unplugged_begin/end

2017-01-05 Thread Paolo Bonzini
On 29/11/2016 12:33, Paolo Bonzini wrote: > bdrv_io_plug and bdrv_io_unplug are only called (via their > BlockBackend equivalents) after starting asynchronous I/O. > bdrv_drain is not going to be called while they are running, > because---even if a coroutine runs for some reason---it will > only

Re: [Qemu-devel] [RESEND PATCH] target-arm/abi32: check for segfault in do_kernel_trap

2017-01-05 Thread Peter Maydell
On 2 January 2017 at 12:44, Seraphime Kirkovski wrote: > Currently, the cmpxchg implementation tests whether the destination address > is readable: > - if it is, we read the value and continue with the comparison > - if isn't, i.e. access to addr would segfault, we assume that src != dest >

[Qemu-devel] [PATCH v6] qqq: module for synchronizing with a simulation

2017-01-05 Thread James J. Nutaro
This patch adds an interface for pacing the execution of QEMU to match an external simulation clock. Its aim is to permit QEMU to be used as a module within a larger simulation system. Signed-off-by: James J. Nutaro --- Makefile.target | 3 + cpus.c | 8 +++ docs/

Re: [Qemu-devel] [PATCH] hw/display: QOM'ify g364fb.c

2017-01-05 Thread Peter Maydell
On 25 December 2016 at 08:25, xiaoqiang zhao wrote: > Drop the old Sysbus init and use instance_init and > DeviceClass::realize instead > > Signed-off-by: xiaoqiang zhao > --- > hw/display/g364fb.c | 16 +++- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/hw/disp

[Qemu-devel] [Bug 1654271] [NEW] host machine freezes

2017-01-05 Thread Masato Yoshida
Public bug reported: When trying to install Radeon crimson relive 16.12.1, each host machine freezes at the machine environment check stage. Even if you launch the installer in an environment where GPU is not installed, each host machine freezes in the same way. When Gusest's CPU is changed from

[Qemu-devel] [PATCH v2 1/5] qtest: add netfilter tests for ppc64

2017-01-05 Thread Laurent Vivier
Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth Reviewed-by: Greg Kurz Tested-by: Greg Kurz --- tests/Makefile.include | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 4841d58..8d6ac7a 100644 --- a/tests/Makefile.include +++ b/

[Qemu-devel] [PATCH v2 2/5] qtest: add display-vga-test to ppc64

2017-01-05 Thread Laurent Vivier
Only enable for ppc64 in the Makefile, but added code in the file to check cirrus card only on architectures supporting it (alpha, mips, i386, x86_64). Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth Reviewed-by: Greg Kurz Tested-by: Greg Kurz --- tests/Makefile.include | 1 + tests/

[Qemu-devel] [PATCH v2 4/5] qtest: convert ivshmem-test to use libqos

2017-01-05 Thread Laurent Vivier
This will allow to use it with ppc64. Signed-off-by: Laurent Vivier --- tests/ivshmem-test.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/tests/ivshmem-test.c b/tests/ivshmem-test.c index 04a5c5d..8095d72 100644 --- a/tests/ivshmem-test.c

[Qemu-devel] [PATCH v2 3/5] libqos: fix spapr qpci_map()

2017-01-05 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- tests/libqos/pci-spapr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libqos/pci-spapr.c b/tests/libqos/pci-spapr.c index 1e5d015..2043f1e 100644 --- a/tests/libqos/pci-spapr.c +++ b/tests/libqos/pci-spapr.c @@ -193,8 +193,8 @@ QP

[Qemu-devel] [PATCH v2 0/5] qtest: enable several tests for ppc64

2017-01-05 Thread Laurent Vivier
This series enables some tests existing for i386 and which can also work on ppc64. VGA tests and netfilter tests are trivial, but ivshmem test needs to enable the SPAPR PCI framework. We also fix a bug in qpci_map() for SPAPR, where the PCI base is not correctly set in the CPU address space. v2:

Re: [Qemu-devel] [PATCH v6] qqq: module for synchronizing with a simulation

2017-01-05 Thread Paolo Bonzini
On 05/01/2017 16:07, James J. Nutaro wrote: > This patch adds an interface for pacing the execution of QEMU to match an > external > simulation clock. Its aim is to permit QEMU to be used as a module within a > larger simulation system. > > Signed-off-by: James J. Nutaro What's the difference

[Qemu-devel] [PATCH v2 5/5] qtest: add ivshmem-test for ppc64

2017-01-05 Thread Laurent Vivier
The test has been converted to use libqos, we can now use it on ppc64. We also make the test fail on all other architectures. As libqos on ppc64 is not able to manage hotplug and IRQ/MSI, we disable this part in the test on ppc64. Signed-off-by: Laurent Vivier --- tests/Makefile.include | 3 ++-

Re: [Qemu-devel] [PATCH] error: report hints on stderr when no monitor

2017-01-05 Thread Eric Blake
On 01/05/2017 07:59 AM, Marc-André Lureau wrote: > Report the error hint when running from the command line and reaching an > error, ex: > > $ qemu-system-x86_64 -m 1Z > qemu-system-x86_64: -m 1Z: Parameter 'size' expects a size > You may use k, M, G or T suffixes for kilobytes, megabytes, gigabyt

Re: [Qemu-devel] [PATCH] i2c: Allow I2C devices to NAK start events

2017-01-05 Thread Peter Maydell
On 20 December 2016 at 21:26, wrote: > From: Corey Minyard > > Add a return value to the event handler. Some I2C devices will > NAK if they have no data, so allow them to do this. This required > the following changes: > > Go through all the event handlers and change them to return int > and r

Re: [Qemu-devel] [PATCH 2/2] hw/char: QOM'ify grlib_apbuart.c

2017-01-05 Thread Peter Maydell
On 31 December 2016 at 01:18, xiaoqiang zhao wrote: > Drop the old Sysbus init and use instance_init and > DeviceClass::realize instead > > Signed-off-by: xiaoqiang zhao > --- > hw/char/grlib_apbuart.c | 26 +++--- > 1 file changed, 15 insertions(+), 11 deletions(-) > > diff

Re: [Qemu-devel] [PATCH 15/54] chardev: qom-ify

2017-01-05 Thread Eric Blake
On 12/12/2016 04:42 PM, Marc-André Lureau wrote: > Turn Chardev into Object. > > qemu_chr_alloc() is replaced by the qemu_chardev_new() constructor. It > will call qemu_char_open() to open/intialize the chardev with the > ChardevCommon *backend settings. Review part 2: > spice-qemu-char.c |

Re: [Qemu-devel] New Year's starting over ... bsd-user

2017-01-05 Thread Sean Bruno
On 01/05/17 04:33, Peter Maydell wrote: > On 3 January 2017 at 16:18, Sean Bruno wrote: >> I'm pondering where to start with getting FreeBSD's bsd-user code into >> shape so it could actually be reviewed and accepted now that its sort of >> working again (signal handling fixed finally). >> >> I

[Qemu-devel] [PATCH 0/8] io: enable DNS resolving separately of socket create

2017-01-05 Thread Daniel P. Berrange
Currently DNS resolution of SocketAddress structs is done as part of the socket connect/listen process. This is very inflexible as it assumes that a single SocketAddress struct will only ever require a single socket to be opened. While true for connect(), it is not the case for listen() in two scen

Re: [Qemu-devel] New Year's starting over ... bsd-user

2017-01-05 Thread Sean Bruno
On 01/03/17 09:18, Sean Bruno wrote: > > I'm pondering where to start with getting FreeBSD's bsd-user code into > shape so it could actually be reviewed and accepted now that its sort of > working again (signal handling fixed finally). > > I almost feel like the existing code should be purged,

[Qemu-devel] [PATCH 6/8] io: change the QIOTask callback signature

2017-01-05 Thread Daniel P. Berrange
Currently the QIOTaskFunc signature takes an Object * for the source, and an Error * for any error. We also need to be able to provide a result pointer. Rather than continue to add parameters to QIOTaskFunc, remove the existing ones and simply pass the QIOTask object instead. This has methods to ac

Re: [Qemu-devel] [Qemu-arm] [PATCH 1/2] hw/char: QOM'ify exynos4210_uart.c

2017-01-05 Thread Peter Maydell
On 31 December 2016 at 01:18, xiaoqiang zhao wrote: > Drop the old Sysbus init and use instance_init and > DeviceClass::realize instead > > Signed-off-by: xiaoqiang zhao > --- > hw/char/exynos4210_uart.c | 16 ++-- > 1 file changed, 10 insertions(+), 6 deletions(-) Applied this patc

[Qemu-devel] [PATCH 2/8] io: stop incrementing reference in qio_task_get_source

2017-01-05 Thread Daniel P. Berrange
Incrementing the reference in qio_task_get_source is not neccessary, since we're not running concurrently with any other code touching the QIOTask. This minimizes chances of further memory leaks. Signed-off-by: Daniel P. Berrange --- include/io/task.h| 7 --- io/channel-socket.c | 3 ---

[Qemu-devel] [PATCH 3/8] io: fix typo in docs for QIOTask

2017-01-05 Thread Daniel P. Berrange
The GDestroyNotify parameter is already a pointer, so does not need a '*' suffix on the type. Signed-off-by: Daniel P. Berrange --- include/io/task.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/io/task.h b/include/io/task.h index c268eb0..1407747 100644 ---

[Qemu-devel] [PATCH 8/8] io: introduce a DNS resolver API

2017-01-05 Thread Daniel P. Berrange
Currently DNS resolution is done automatically as part of the creation of a QIOChannelSocket object instance. This works ok for network clients where you just end up a single network socket, but for servers, the results of DNS resolution may require creation of multiple sockets. Introducing a DNS

[Qemu-devel] [PATCH 3/8] ui: refactor VncDisplay to allow multiple listening sockets

2017-01-05 Thread Daniel P. Berrange
Currently there is only a single listener for plain VNC and a single listener for websockets VNC. This means that is getaddrinfo() returns multiple IP addresses, for a hostname, the VNC server can only listen on one of them. This is just bearable if listening on wildcard interface, or if the host o

[Qemu-devel] [PATCH 5/8] io: add ability to associate an error with a task

2017-01-05 Thread Daniel P. Berrange
Currently when a task fails, the error is never explicitly associated with the task object, it is just passed along through the completion callback. This adds ability to explicitly associate an error with the task. Signed-off-by: Daniel P. Berrange --- include/io/task.h | 29

[Qemu-devel] [PATCH 1/8] sockets: add ability to disable DNS resolution for InetSocketAddress

2017-01-05 Thread Daniel P. Berrange
Add a 'numeric' flag to the InetSocketAddress struct to allow the caller to indicate that DNS should be skipped for the host/port fields. This is useful if the caller knows the address is already numeric and wants to guarantee no (potentially blocking) DNS lookups are attempted. Signed-off-by: Dan

[Qemu-devel] [PATCH 7/8] io: remove Error parameter from QIOTask thread worker

2017-01-05 Thread Daniel P. Berrange
Now that task objects have a directly associated error, there's no need for an an Error **errp parameter to the QIOTask thread worker function. It already has a QIOTask object, so can directly set the error on it. Signed-off-by: Daniel P. Berrange --- include/io/task.h| 19 +-

[Qemu-devel] [PATCH 4/8] ui: refactor code for populating SocketAddress from vnc_display_open

2017-01-05 Thread Daniel P. Berrange
The code which interprets the CLI args to populate the SocketAddress objects for plain & websockets VNC is quite complex already and will need further enhancements shortly. Refactor it into separate methods to avoid vnc_display_open getting even larger. As a side effect of the refactoring, it is no

[Qemu-devel] [PATCH 4/8] io: add ability to associate an opaque "result" with with a task

2017-01-05 Thread Daniel P. Berrange
Currently there is no data associated with a successful task completion. This adds an opaque pointer to the task to store an arbitrary result. Signed-off-by: Daniel P. Berrange --- include/io/task.h | 27 +++ io/task.c | 20 2 files changed, 4

[Qemu-devel] [PATCH 2/8] ui: fix reporting of VNC auth in query-vnc-servers

2017-01-05 Thread Daniel P. Berrange
Currently the VNC authentication info is emitted at the top level of the query-vnc-servers data. This is wrong because the authentication scheme differs between plain and websockets when TLS is enabled. We should instead report auth against the individual servers. e.g. (QEMU) query-vnc-servers {

[Qemu-devel] [PATCH 8/8] ui: add ability to specify multiple VNC listen addresses

2017-01-05 Thread Daniel P. Berrange
This change allows the listen address and websocket address options for -vnc to be repeated. This causes the VNC server to listen on multiple addresses. e.g. $ $QEMU -vnc vnc=localhost:1,vnc=unix:/tmp/vnc,\ websocket=127.0.0.1:8080,websocket=[::]:8081 results in listening on 127.0

[Qemu-devel] [PATCH 5/8] ui: extract code to connect/listen from vnc_display_open

2017-01-05 Thread Daniel P. Berrange
The code which takes a SocketAddress and connects/listens on the network is going to get more complicated to deal with multiple listeners. Pull it out into a separate method to avoid making the vnc_display_open method even more complex. Signed-off-by: Daniel P. Berrange --- ui/vnc.c | 122 ++

[Qemu-devel] [PATCH 7/8] util: add qemu_opt_get_all() to get repeated opts

2017-01-05 Thread Daniel P. Berrange
The QemuOpts parser accepts repeated option names, storing all the provided values. qemu_opt_get() then just returns the last value. There is no way to get the other values without using a callback function to iterate over all option names. Add a qemu_opt_get_all() method to return a string list of

Re: [Qemu-devel] [PATCH v6] qqq: module for synchronizing with a simulation

2017-01-05 Thread Nutaro, James J.
V5 failed to build with MinGW, so I had to move the arpa/inet.h to a place inside the #ifndef block in qqq.c. Also fixed some formatting problems. Otherwise they are the same. Thanks for your reviews! Jim -Original Message- From: Paolo Bonzini [mailto:pbonz...@redhat.com] Sent: Thursda

Re: [Qemu-devel] New Year's starting over ... bsd-user

2017-01-05 Thread Peter Maydell
On 5 January 2017 at 16:03, Sean Bruno wrote: > Ok, this is probably too big for a single patch. I'll see if its > reasonable to break this up across *some* kind of logic boundary. Yeah, that's pretty huge. My rough rule of thumb: prefer each patch to be <500 lines, prefer <20 patches in a patch

[Qemu-devel] [PATCH 1/8] ui: fix regression handling bare 'websocket' option to -vnc

2017-01-05 Thread Daniel P. Berrange
The -vnc argument is documented as accepting two syntaxes for the 'websocket' option, either a bare option name, or a port number. If using the bare option name, it is supposed to apply the display number as an offset to base port 5700. e.g. -vnc localhost:3,websocket should listen on port 5703

[Qemu-devel] [PATCH 0/8] Support multiple listening sockets per VNC server

2017-01-05 Thread Daniel P. Berrange
This series is dependant on the IO series just posted to support DNS resolution separately from socket creation. There are two core feature changes in this series - If a DNS name resolves to multiple distinct IP addresses, the VNC server is now able to listen on all of them - The -vnc argum

Re: [Qemu-devel] [PATCH 15/54] chardev: qom-ify

2017-01-05 Thread Marc-André Lureau
Hi - Original Message - > On 12/12/2016 04:42 PM, Marc-André Lureau wrote: > > Turn Chardev into Object. > > > > qemu_chr_alloc() is replaced by the qemu_chardev_new() constructor. It > > will call qemu_char_open() to open/intialize the chardev with the > > ChardevCommon *backend settings

Re: [Qemu-devel] [PATCH 2/8] io: stop incrementing reference in qio_task_get_source

2017-01-05 Thread Eric Blake
On 01/05/2017 10:03 AM, Daniel P. Berrange wrote: > Incrementing the reference in qio_task_get_source is > not neccessary, since we're not running concurrently s/neccessary/necessary/ > with any other code touching the QIOTask. This > minimizes chances of further memory leaks. > > Signed-off-by:

[Qemu-devel] [PATCH 6/8] ui: let VNC server listen on all resolved IP addresses

2017-01-05 Thread Daniel P. Berrange
Remove the limitation that the VNC server can only listen on a single resolved IP address. This uses the new DNS resolver API to resolve a SocketAddress struct into an array of SocketAddress structs containing raw IP addresses. The VNC server will then attempt to listen on all resolve IP addresses.

Re: [Qemu-devel] [PATCH 1/8] sockets: add ability to disable DNS resolution for InetSocketAddress

2017-01-05 Thread Eric Blake
On 01/05/2017 10:03 AM, Daniel P. Berrange wrote: > Add a 'numeric' flag to the InetSocketAddress struct to allow the > caller to indicate that DNS should be skipped for the host/port > fields. This is useful if the caller knows the address is already > numeric and wants to guarantee no (potentiall

[Qemu-devel] [PULL 3/4] tests/migration: Add test for QTAILQ migration

2017-01-05 Thread Amit Shah
From: Jianjun Duan Add a test for QTAILQ migration to tests/test-vmstate.c. Signed-off-by: Jianjun Duan Reviewed-by: Dr. David Alan Gilbert Message-id: 1481224870-18247-4-git-send-email-du...@linux.vnet.ibm.com Signed-off-by: Amit Shah --- tests/test-vmstate.c | 147 +

[Qemu-devel] [PULL 1/4] migration: extend VMStateInfo

2017-01-05 Thread Amit Shah
From: Jianjun Duan Current migration code cannot handle some data structures such as QTAILQ in qemu/queue.h. Here we extend the signatures of put/get in VMStateInfo so that customized handling is supported. put now will return int type. Signed-off-by: Jianjun Duan Reviewed-by: Dr. David Alan Gi

  1   2   3   >