Re: [Qemu-devel] [PATCH v3 1/2] target-i386: KVM: add basic Intel LMCE support

2016-06-08 Thread Haozhong Zhang
On 06/08/16 13:34, Paolo Bonzini wrote: > > > On 05/06/2016 17:41, Haozhong Zhang wrote: > > On 06/04/16 12:34, Boris Petkov wrote: > >> Haozhong Zhang wrote: > >> > >>> This patch adds the support to inject SRAR and SRAO as LMCE, i.e. they > >>> will be injected to only one VCPU rather than bro

Re: [Qemu-devel] [PATCH v2 2/2] vl: Eliminate usb_enabled()

2016-06-08 Thread Thomas Huth
On 08.06.2016 22:50, Eduardo Habkost wrote: > This wrapper for machine_usb(current_machine) is not necessary, > replace all usages of usb_enabled() with machine_usb(). > > Cc: Peter Maydell > Cc: "Michael S. Tsirkin" > Cc: Alexander Graf > Cc: qemu-...@nongnu.org > Cc: qemu-...@nongnu.org > Sig

[Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2016-06-08 Thread Riku Voipio
A prebuilt package of qemu-user built statically at: http://repo.linaro.org/ubuntu/linaro-tools/pool/main/q/qemu/qemu-user- static_2.6.0+git931+g9bbbf64-1linarojessie1_amd64.deb -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https:/

Re: [Qemu-devel] [PATCH v2 2/2] vl: Eliminate usb_enabled()

2016-06-08 Thread Marcel Apfelbaum
On 06/08/2016 11:50 PM, Eduardo Habkost wrote: This wrapper for machine_usb(current_machine) is not necessary, replace all usages of usb_enabled() with machine_usb(). Cc: Peter Maydell Cc: "Michael S. Tsirkin" Cc: Alexander Graf Cc: qemu-...@nongnu.org Cc: qemu-...@nongnu.org Signed-off-by: E

[Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2016-06-08 Thread Riku Voipio
Please try the latest qemu git HEAD, Timothys and Peters fixes have been merged in. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/955379 Title: cmake hangs with qemu-arm-static Status in QEMU: C

Re: [Qemu-devel] [QEMU RFC PATCH v4 1/6] migration: alternative way to set instance_id in SaveStateEntry

2016-06-08 Thread David Gibson
On Wed, Jun 08, 2016 at 04:06:52PM -0700, Jianjun Duan wrote: > In QOM(QEMU Object Model) migrated objects are identified with instance_id > which is calculated automatically using their path in the QOM composition > tree. For some objects, this path could change from source to target in > migratio

Re: [Qemu-devel] [PATCH qemu v17 11/12] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2016-06-08 Thread David Gibson
On Wed, Jun 08, 2016 at 04:09:57PM +1000, Alexey Kardashevskiy wrote: > On 08/06/16 15:57, David Gibson wrote: > > On Mon, Jun 06, 2016 at 06:12:58PM +1000, Alexey Kardashevskiy wrote: > >> On 06/06/16 15:57, David Gibson wrote: > >>> On Wed, Jun 01, 2016 at 06:57:42PM +1000, Alexey Kardashevskiy w

Re: [Qemu-devel] [PATCH v4 4/9] target-avr: adding instructions encodings

2016-06-08 Thread Richard Henderson
On 06/08/2016 02:15 PM, Michael Rolnik wrote: I can send the sources, of my generator if you want. However I have not time to make it a part of AVR patch right now. let's finish with AVR cores and then when I have time I will be happy to QEMUify the generator. I think you should add the genera

Re: [Qemu-devel] [PATCH v4 2/9] target-avr: adding AVR CPU features/flavors

2016-06-08 Thread Richard Henderson
On 06/08/2016 01:53 PM, Michael Rolnik wrote: Richard, do you want to delete all empty lines? Huh? No. Indeed, in this case I want you to add empty lines. r~

Re: [Qemu-devel] [PATCH v4 1/9] target-avr: AVR cores support is added. 1. basic CPU structure 2. registers 3. no instructions

2016-06-08 Thread Richard Henderson
On 06/08/2016 12:49 PM, Michael Rolnik wrote: Hi Richard. how can I test it? The easiest way is with the "savevm" / "loadvm" monitor commands. It does require that you have a device attached that can create snapshots (e.g. a disk with qcow2 format). While AVR doesn't normally have disks, yo

Re: [Qemu-devel] [PATCH v4 13/28] qapi: Add new clone visitor

2016-06-08 Thread Eric Blake
On 06/02/2016 07:43 AM, Markus Armbruster wrote: > Eric Blake writes: > >> We have a couple places in the code base that want to deep-clone >> one QAPI object into another, and they were resorting to serializing >> the struct out to QObject then reparsing it. A much more efficient >> version can

Re: [Qemu-devel] [PATCH v3] spapr: Ensure all LMBs are represented in ibm, dynamic-memory

2016-06-08 Thread David Gibson
On Wed, Jun 08, 2016 at 11:09:11AM -0500, Michael Roth wrote: > Quoting Bharata B Rao (2016-06-08 10:50:03) > > On Wed, Jun 08, 2016 at 10:05:12AM -0500, Michael Roth wrote: > > > Quoting Bharata B Rao (2016-06-07 21:35:54) > > > > On Tue, Jun 07, 2016 at 06:37:28PM -0500, Michael Roth wrote: > > >

Re: [Qemu-devel] [PATCH v3] spapr: Ensure all LMBs are represented in ibm, dynamic-memory

2016-06-08 Thread David Gibson
On Wed, Jun 08, 2016 at 10:05:12AM -0500, Michael Roth wrote: > Quoting Bharata B Rao (2016-06-07 21:35:54) > > On Tue, Jun 07, 2016 at 06:37:28PM -0500, Michael Roth wrote: > > > Quoting Bharata B Rao (2016-06-07 00:19:03) > > > > Memory hotplug can fail for some combinations of RAM and maxmem whe

Re: [Qemu-devel] [for-2.7 PATCH v3 07/15] spapr: Abstract CPU core device and type specific core devices

2016-06-08 Thread David Gibson
On Wed, Jun 08, 2016 at 03:12:42PM +0530, Bharata B Rao wrote: > On Fri, Jun 03, 2016 at 03:25:08PM +1000, David Gibson wrote: > > On Thu, May 12, 2016 at 09:18:17AM +0530, Bharata B Rao wrote: > > > Add sPAPR specific abastract CPU core device that is based on generic > > > CPU core device. Use th

Re: [Qemu-devel] [PATCH v6 00/13] data-driven device registers

2016-06-08 Thread Alistair Francis
On Thu, May 12, 2016 at 3:45 PM, Alistair Francis wrote: > This patch series is based on Peter C's original register API. His > original cover letter is below. Ping! > > Future work: Allow support for memory attributes. > > V6: > - Small changes to the API based on Alex's comments > - Remove '

[Qemu-devel] [QEMU RFC PATCH v4 5/6] migration: migrate ccs_list in spapr state

2016-06-08 Thread Jianjun Duan
ccs_list in spapr state maintains the device tree related information on the rtas side for hotplugged devices. In racing situations between hotplug events and migration operation, a rtas hotplug event could be migrated from the source guest to target guest, or the source guest could have not yet fi

[Qemu-devel] [QEMU RFC PATCH v4 6/6] migration: migrate pending_events of spapr state

2016-06-08 Thread Jianjun Duan
In racing situations between hotplug events and migration operation, a rtas hotplug event could have not yet be delivered to the source guest when migration is started. In this case the pending_events of spapr state need be transmitted to the target so that the hotplug event can be finished on the

[Qemu-devel] [QEMU RFC PATCH v4 4/6] migration: migrate QTAILQ

2016-06-08 Thread Jianjun Duan
Currently we cannot directly transfer a QTAILQ instance because of the limitation in the migration code. Here we introduce an approach to transfer such structures. In our approach such a structure is tagged with VMS_LINKED. We then modified vmstate_save_state and vmstate_load_state so that when VMS

[Qemu-devel] [QEMU RFC PATCH v4 1/6] migration: alternative way to set instance_id in SaveStateEntry

2016-06-08 Thread Jianjun Duan
In QOM(QEMU Object Model) migrated objects are identified with instance_id which is calculated automatically using their path in the QOM composition tree. For some objects, this path could change from source to target in migration. To migrate such objects, we need to make sure the instance_id does

[Qemu-devel] [QEMU RFC PATCH v4 0/6] migration: ensure hotplug and migration work together

2016-06-08 Thread Jianjun Duan
v4: - Introduce a way to set customized instance_id in SaveStateEntry. Use it to set instance_id for DRC using its unique index to address David Gibson's concern. - Rename VMS_CSTM to VMS_LINKED based on Paolo Bonzini's suggestions. - Clean up qjson stuff in put_qtailq. -

[Qemu-devel] [QEMU RFC PATCH v4 3/6] migration: extend VMStateInfo

2016-06-08 Thread 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. Signed-off-by: Jianjun Duan --- hw/net/vmxnet3.c| 18 ++--- hw/nvram/eeprom93xx.c | 6

[Qemu-devel] [QEMU RFC PATCH v4 2/6] migration: defined VMStateDescription struct for spapr_drc

2016-06-08 Thread Jianjun Duan
To manage hotplug/unplug of dynamic resources such as PCI cards, memory, and CPU on sPAPR guests, a firmware abstraction known as a Dynamic Resource Connector (DRC) is used to assign a particular dynamic resource to the guest, and provide an interface for the guest to manage configuration/removal o

[Qemu-devel] [PATCH] gtk: fix vte version check

2016-06-08 Thread Olaf Hering
vte_terminal_set_encoding takes 3 args since 0.38.0. This fixes commit fba958c6 ("gtk: implement set_echo") Signed-off-by: Olaf Hering --- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/gtk.c b/ui/gtk.c index 01b8216..58d20ee 100644 --- a/ui/gtk.c +++ b/ui/gtk.c

Re: [Qemu-devel] [PATCH v7 13/15] qht: add test-qht-par to invoke qht-bench from 'check' target

2016-06-08 Thread Sergey Fedorov
On 08/06/16 21:55, Emilio G. Cota wrote: > Signed-off-by: Emilio G. Cota Acked-by: Sergey Fedorov > --- > tests/.gitignore | 1 + > tests/Makefile | 5 - > tests/test-qht-par.c | 56 > > 3 files changed, 61 insertions(+), 1

Re: [Qemu-devel] [PATCH v7 12/15] qht: add qht-bench, a performance benchmark

2016-06-08 Thread Sergey Fedorov
On 08/06/16 21:55, Emilio G. Cota wrote: > This serves as a performance benchmark as well as a stress test > for QHT. We can tweak quite a number of things, including the > number of resize threads and how frequently resizes are triggered. > > A performance comparison of QHT vs CLHT[1] and ck_hs[2]

Re: [Qemu-devel] [PATCH v7 10/15] qht: QEMU's fast, resizable and scalable Hash Table

2016-06-08 Thread Sergey Fedorov
On 08/06/16 21:55, Emilio G. Cota wrote: > This is a fast, scalable chained hash table with optional auto-resizing, > allowing > reads that are concurrent with reads, and reads/writes that are concurrent > with writes to separate buckets. > > A hash table with these features will be necessary for

Re: [Qemu-devel] [PATCH v4 4/9] target-avr: adding instructions encodings

2016-06-08 Thread Michael Rolnik
I can send the sources, of my generator if you want. However I have not time to make it a part of AVR patch right now. let's finish with AVR cores and then when I have time I will be happy to QEMUify the generator. On Tue, Jun 7, 2016 at 1:06 AM, Peter Maydell wrote: > On 6 June 2016 at 22:38, R

[Qemu-devel] [PATCH v5 10/10] target-avr: saving sreg, rampD, rampX, rampY, rampD, eind in HW representation saving cpu features

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/machine.c | 105 --- 1 file changed, 84 insertions(+), 21 deletions(-) diff --git a/target-avr/machine.c b/target-avr/machine.c index 39f1ee6..9659c04 100644

[Qemu-devel] [PATCH v5 09/10] target-avr: updating translate.c to use instructions translation

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/Makefile.objs | 4 +- target-avr/translate.c | 148 +-- 2 files changed, 69 insertions(+), 83 deletions(-) diff --git a/target-avr/Makefile.objs b/target-avr

[Qemu-devel] [PATCH v5 05/10] target-avr: adding AVR interrupt handling

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/helper.c | 59 - 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/target-avr/helper.c b/target-avr/helper.c index ad8f83e..f96fa27 100644 ---

[Qemu-devel] [PATCH v5 06/10] target-avr: adding helpers for IN, OUT, SLEEP, WBR & unsupported instructions

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/helper.c | 145 target-avr/helper.h | 5 ++ 2 files changed, 140 insertions(+), 10 deletions(-) diff --git a/target-avr/helper.c b/target-avr/helper.c

[Qemu-devel] [PATCH v5 08/10] target-avr: adding instruction translation

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/translate-inst.c | 2624 +++ target-avr/translate.h | 119 ++ 2 files changed, 2743 insertions(+) create mode 100644 target-avr/translate-inst.c create mode 1

[Qemu-devel] [PATCH v5 01/10] target-avr: AVR cores support is added. 1. basic CPU structure 2. registers 3. no instructions

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- arch_init.c | 2 + configure | 7 +- default-configs/avr-softmmu.mak | 21 +++ include/disas/bfd.h | 6 + include/sysemu/arch_init.h | 1 + target-av

[Qemu-devel] [PATCH v5 07/10] target-avr: adding instruction decoder

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/decode.c | 693 1 file changed, 693 insertions(+) create mode 100644 target-avr/decode.c diff --git a/target-avr/decode.c b/target-avr/decode.c new fil

[Qemu-devel] [PATCH v5 02/10] target-avr: adding AVR CPU features/flavors

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/cpu.c | 307 ++- target-avr/cpu.h | 53 ++ 2 files changed, 359 insertions(+), 1 deletion(-) diff --git a/target-avr/cpu.c b/target-avr/cpu.c in

[Qemu-devel] [PATCH v5 04/10] target-avr: adding instructions encodings

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/translate-inst.h | 762 1 file changed, 762 insertions(+) create mode 100644 target-avr/translate-inst.h diff --git a/target-avr/translate-inst.h b/target-avr/

[Qemu-devel] [PATCH v5 03/10] target-avr: adding a sample AVR board

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik From: Michael Rolnik Signed-off-by: Michael Rolnik --- hw/Makefile.objs | 1 + hw/avr/Makefile.objs | 21 + hw/avr/sample-io.c | 215 +++ hw/avr/sample.c | 118 4 files changed,

[Qemu-devel] [PATCH v5 00/10] 8bit AVR cores

2016-06-08 Thread Michael Rolnik
From: Michael Rolnik This series of patches adds 8bit AVR cores to QEMU. All instruction, except BREAK/DES/SPM/SPMX, are implemented. Not fully tested yet. However I was able to execute simple code with functions. e.g fibonacci calculation. This series of patches include a non real, sample boar

Re: [Qemu-devel] [PATCH v4 2/9] target-avr: adding AVR CPU features/flavors

2016-06-08 Thread Michael Rolnik
Richard, do you want to delete all empty lines? On Mon, Jun 6, 2016 at 11:25 PM, Richard Henderson wrote: > On 06/06/2016 03:37 AM, Michael Rolnik wrote: > >> @@ -55,12 +55,14 @@ static void avr_cpu_reset(CPUState *s) >> AVRCPU *cpu = AVR_CPU(s); >> AVRCPUClass *mcc = AVR_CPU_GET_CLASS

[Qemu-devel] [PATCH v2 0/2] Eliminate usb_enabled()

2016-06-08 Thread Eduardo Habkost
usb_enabled() is just a wrapper for machine_usb(current_machine) and is not necessary, replace all usages of usb_enabled() with machine_usb(). In the case of pxa2xx, just remove usb_enabled() usage completely. Eduardo Habkost (2): pxa2xx: Unconditionally enable USB controller vl: Eliminate us

[Qemu-devel] [PATCH v2 2/2] vl: Eliminate usb_enabled()

2016-06-08 Thread Eduardo Habkost
This wrapper for machine_usb(current_machine) is not necessary, replace all usages of usb_enabled() with machine_usb(). Cc: Peter Maydell Cc: "Michael S. Tsirkin" Cc: Alexander Graf Cc: qemu-...@nongnu.org Cc: qemu-...@nongnu.org Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * pxa2xx do

[Qemu-devel] [PATCH v2 1/2] pxa2xx: Unconditionally enable USB controller

2016-06-08 Thread Eduardo Habkost
Simplify initialization logic by removing the usb_enabled() check. The USB controller is part of the SoC, so it doesn't make sense to create a system where it is not present. Cc: Peter Maydell Cc: Andrzej Zaborowski Cc: qemu-...@nongnu.org, Signed-off-by: Eduardo Habkost --- hw/arm/pxa2xx.c |

Re: [Qemu-devel] [PATCH v7 08/15] qdist: add module to represent frequency distributions of data

2016-06-08 Thread Sergey Fedorov
On 08/06/16 21:55, Emilio G. Cota wrote: > Sometimes it is useful to have a quick histogram to represent a certain > distribution -- for example, when investigating a performance regression > in a hash table due to inadequate hashing. > > The appended allows us to easily represent a distribution us

Re: [Qemu-devel] [Qemu-devel [RFC] [WIP] v2] Keeping the Source side alive incase of network failure (Migration recovery from network failure)

2016-06-08 Thread Eric Blake
On 06/08/2016 12:13 PM, Md Haris Iqbal wrote: The subject line is long, and has a typo (s/incase/in case/). Also, the mailing list automatically prepends [Qemu-devel], so you shouldn't repeat it manually. Better might have been a short subject line then a longer commit body: migration: keep sou

[Qemu-devel] [PATCH] maint: Ignore generated version file

2016-06-08 Thread Eric Blake
Commit 67a1de0d created a generated version file, and, in some circumstances, also a temporary file. Make sure 'git add .' won't check them into the repository. Signed-off-by: Eric Blake --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 38ee1c5..

[Qemu-devel] [PATCH 1/5] linux-user: add socketcall() strace

2016-06-08 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- include/exec/user/abitypes.h | 23 ++ linux-user/strace.c | 550 +++ linux-user/strace.list | 2 +- linux-user/syscall_defs.h| 22 +- 4 files changed, 592 insertions(+), 5 delet

[Qemu-devel] [PATCH 2/5] linux-user: correct setsockopt() strace.

2016-06-08 Thread Laurent Vivier
From: Laurent Vivier Parameter of SO_RCVTIMEO and SO_SNDTIMEO is timeval, not int. To test this, you can use : QEMU_STRACE= ping localhost 2>&1 |grep TIMEO 568 setsockopt(3,SOL_SOCKET,SO_SNDTIMEO,{1,0},8) = 0 568 setsockopt(3,SOL_SOCKET,SO_RCVTIMEO,{1,0},8) = 0 Signed-off-by: Laurent Vivier -

[Qemu-devel] [PATCH 5/5] linux-user: update get_thread_area/set_thread_area strace

2016-06-08 Thread Laurent Vivier
int get_thread_area(struct user_desc *u_info); int set_thread_area(struct user_desc *u_info); Signed-off-by: Laurent Vivier --- linux-user/strace.list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/strace.list b/linux-user/strace.list index 7c54d

[Qemu-devel] [PATCH 3/5] linux-user: add socket() strace

2016-06-08 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/strace.c| 24 linux-user/strace.list | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 398e56e..0c3675c 100644 --- a/linux-user/strace.c +++ b/linux-user

[Qemu-devel] [PATCH 4/5] linux-user: fix clone() strace

2016-06-08 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/strace.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 0c3675c..ec39750 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -964,27 +964,30 @@ p

[Qemu-devel] [PATCH 0/5] linux-user: some strace improvements

2016-06-08 Thread Laurent Vivier
These patches for linux-user strace are living for years in my tree. Laurent Vivier (5): linux-user: add socketcall() strace linux-user: correct setsockopt() strace. linux-user: add socket() strace linux-user: fix clone() strace linux-user: update get_thread_area/set_thread_area strace

Re: [Qemu-devel] [PATCH] pc: Add 2.7 machine

2016-06-08 Thread Eduardo Habkost
On Fri, May 27, 2016 at 03:55:35PM -0300, Eduardo Habkost wrote: > From: Igor Mammedov > > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost > Signed-off-by: Eduardo Habkost > --- > This is blocking some patches from getting included (e.g. the > CPUID[0xB] patch from Radim), so I'm

Re: [Qemu-devel] [RFC PATCH] configure: Enable -Werror for MinGW builds, too

2016-06-08 Thread Stefan Weil
Am 08.06.2016 um 20:55 schrieb Peter Maydell: > On 8 June 2016 at 15:09, Stefan Hajnoczi wrote: >> On Wed, Jun 08, 2016 at 10:13:26AM +0200, Thomas Huth wrote: >>> MinGW seems to compile currently without warnings, so it should >>> be safe to enable -Werror now for this environment, too. >>> >>> S

Re: [Qemu-devel] [PATCH v4 1/9] target-avr: AVR cores support is added. 1. basic CPU structure 2. registers 3. no instructions

2016-06-08 Thread Michael Rolnik
Hi Richard. how can I test it? On Tue, Jun 7, 2016 at 5:28 PM, Richard Henderson wrote: > On 06/06/2016 11:32 PM, Michael Rolnik wrote: > > Hi Richard, > > > > /Consider making the vm save state reflect the actual hardware format. > That > > way you can change the qemu internal format while ret

[Qemu-devel] [PATCH v7 02/15] seqlock: remove optional mutex

2016-06-08 Thread Emilio G. Cota
This option is unused; besides, it bloats the struct when not needed. Let's just let writers define their own locks elsewhere. Reviewed-by: Sergey Fedorov Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- cpus.c | 2 +- include/qemu/seq

Re: [Qemu-devel] [Qemu-stable] [PATCH V2] net: fix qemu_announce_self not emitting packets

2016-06-08 Thread Peter Lieven
Am 08.06.2016 um 12:23 schrieb Paolo Bonzini: > > - Original Message - >> From: "Jason Wang" >> To: "Peter Lieven" , qemu-devel@nongnu.org >> Cc: pbonz...@redhat.com, qemu-sta...@nongnu.org, "hongyang yang" >> >> Sent: Wednesday, June 8, 2016 9:54:53 AM >> Subject: Re: [Qemu-devel] [Qemu

[Qemu-devel] [PATCH v7 00/15] tb hash improvements

2016-06-08 Thread Emilio G. Cota
v6 on qemu-devel: https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg04251.html All changes in this iteration come from comments by Sergey unless otherwise noted. All patches are checkpatch-clean once false positives are taken into account. Changes from v6: - Add reviewed-by tags from v6

[Qemu-devel] [PATCH v7 05/15] qemu-thread: add simple test-and-set spinlock

2016-06-08 Thread Emilio G. Cota
From: Guillaume Delbergue Reviewed-by: Sergey Fedorov Signed-off-by: Guillaume Delbergue [Rewritten. - Paolo] Signed-off-by: Paolo Bonzini [Emilio's additions: use TAS instead of atomic_xchg; emit acquire/release barriers; return bool from trylock; call cpu_relax() while spinning; optimize f

[Qemu-devel] [PATCH v7 15/15] translate-all: add tb hash bucket info to 'info jit' dump

2016-06-08 Thread Emilio G. Cota
Examples: - Good hashing, i.e. tb_hash_func5(phys_pc, pc, flags): TB count715135/2684354 [...] TB hash buckets 388775/524288 (74.15% head buckets used) TB hash occupancy 33.04% avg chain occ. Histogram: [0,10)%|▆ █ ▅▁▃▁▁|[90,100]% TB hash avg chain 1.017 buckets. Histogram: 1

[Qemu-devel] [PATCH v7 12/15] qht: add qht-bench, a performance benchmark

2016-06-08 Thread Emilio G. Cota
This serves as a performance benchmark as well as a stress test for QHT. We can tweak quite a number of things, including the number of resize threads and how frequently resizes are triggered. A performance comparison of QHT vs CLHT[1] and ck_hs[2] using this same benchmark program can be found he

[Qemu-devel] [PATCH v7 10/15] qht: QEMU's fast, resizable and scalable Hash Table

2016-06-08 Thread Emilio G. Cota
This is a fast, scalable chained hash table with optional auto-resizing, allowing reads that are concurrent with reads, and reads/writes that are concurrent with writes to separate buckets. A hash table with these features will be necessary for the scalability of the ongoing MTTCG work; before th

Re: [Qemu-devel] [PATCH] hw/arm: virt uart fix

2016-06-08 Thread Peter Maydell
On 8 June 2016 at 07:23, Jérôme Forissier wrote: > > > On 06/08/2016 04:30 AM, xiaoqiang zhao wrote: >> commit f0d1d2c115dffc1fbaf954d0b449db05c5eb79b1 >> ("hw/char: QOM'ify pl011 model") break qemu-system-arm virt machine >> if option '-machine secure=on' is provided. >> >> The function create_ua

[Qemu-devel] [PATCH v7 08/15] qdist: add module to represent frequency distributions of data

2016-06-08 Thread Emilio G. Cota
Sometimes it is useful to have a quick histogram to represent a certain distribution -- for example, when investigating a performance regression in a hash table due to inadequate hashing. The appended allows us to easily represent a distribution using Unicode characters. Further, the data structur

[Qemu-devel] [PATCH v7 04/15] include/processor.h: define cpu_relax()

2016-06-08 Thread Emilio G. Cota
Taken from the linux kernel. Reviewed-by: Sergey Fedorov Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota --- include/qemu/processor.h | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 include/qemu/processor.h diff

[Qemu-devel] [PATCH v7 14/15] tb hash: track translated blocks with qht

2016-06-08 Thread Emilio G. Cota
Having a fixed-size hash table for keeping track of all translation blocks is suboptimal: some workloads are just too big or too small to get maximum performance from the hash table. The MRU promotion policy helps improve performance when the hash table is a little undersized, but it cannot make up

[Qemu-devel] [PATCH v7 03/15] seqlock: rename write_lock/unlock to write_begin/end

2016-06-08 Thread Emilio G. Cota
It is a more appropriate name, now that the mutex embedded in the seqlock is gone. Reviewed-by: Sergey Fedorov Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- cpus.c | 28 ++-- include/qemu/seqlock.h | 4 ++--

[Qemu-devel] [PATCH v7 09/15] qdist: add test program

2016-06-08 Thread Emilio G. Cota
Acked-by: Sergey Fedorov Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- tests/.gitignore | 1 + tests/Makefile | 6 +- tests/test-qdist.c | 384 + 3 files changed, 390 insertions(+), 1 deletion(-) create mode 10064

[Qemu-devel] [PATCH v7 07/15] tb hash: hash phys_pc, pc, and flags with xxhash

2016-06-08 Thread Emilio G. Cota
For some workloads such as arm bootup, tb_phys_hash is performance-critical. The is due to the high frequency of accesses to the hash table, originated by (frequent) TLB flushes that wipe out the cpu-private tb_jmp_cache's. More info: https://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg05

[Qemu-devel] [PATCH v7 13/15] qht: add test-qht-par to invoke qht-bench from 'check' target

2016-06-08 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- tests/.gitignore | 1 + tests/Makefile | 5 - tests/test-qht-par.c | 56 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 tests/test-qht-par.c diff --git a/tests/.gitignore

[Qemu-devel] [PATCH v7 01/15] compiler.h: add QEMU_ALIGNED() to enforce struct alignment

2016-06-08 Thread Emilio G. Cota
Reviewed-by: Sergey Fedorov Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota --- include/qemu/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 8f1cc7b..b64f899 100644 --- a/include/qemu

Re: [Qemu-devel] [RFC PATCH] configure: Enable -Werror for MinGW builds, too

2016-06-08 Thread Peter Maydell
On 8 June 2016 at 15:09, Stefan Hajnoczi wrote: > On Wed, Jun 08, 2016 at 10:13:26AM +0200, Thomas Huth wrote: >> MinGW seems to compile currently without warnings, so it should >> be safe to enable -Werror now for this environment, too. >> >> Signed-off-by: Thomas Huth >> --- >> ... at least it

[Qemu-devel] [PATCH v7 06/15] exec: add tb_hash_func5, derived from xxhash

2016-06-08 Thread Emilio G. Cota
This will be used by upcoming changes for hashing the tb hash. Add this into a separate file to include the copyright notice from xxhash. Reviewed-by: Sergey Fedorov Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- include/exec/tb-hash-xx.h | 94 +++

[Qemu-devel] [PATCH v7 11/15] qht: add test program

2016-06-08 Thread Emilio G. Cota
Acked-by: Sergey Fedorov Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- tests/.gitignore | 1 + tests/Makefile | 6 ++- tests/test-qht.c | 159 +++ 3 files changed, 165 insertions(+), 1 deletio

Re: [Qemu-devel] [PULL 00/44] linux-user update

2016-06-08 Thread Peter Maydell
0) > > are available in the git repository at: > > git://git.linaro.org/people/riku.voipio/qemu.git > tags/pull-linux-user-20160608 > > for you to fetch changes up to 014628a705bdaf31c09915c29e61f4088956564d: > > linux-user: In fork_end(), remov

[Qemu-devel] [PATCH 2/5] hw/arm/virt: set is_default

2016-06-08 Thread Andrew Jones
Make the latest machine type (currently only one) the default. Signed-off-by: Andrew Jones --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index a0d35d0826590..09afbafde025d 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1432,6 +1432,7 @@ s

[Qemu-devel] [PATCH 3/5] hw/arm/virt: introduce DEFINE_VIRT_MACHINE

2016-06-08 Thread Andrew Jones
Use DEFINE_VIRT_MACHINE to generate versioned machine type info. Signed-off-by: Andrew Jones --- hw/arm/virt.c | 40 +++- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 09afbafde025d..9a3289d2c422c 100644 --

[Qemu-devel] [PATCH 4/5] hw/arm/virt: introduce DEFINE_VIRT_MACHINE_AS_LATEST

2016-06-08 Thread Andrew Jones
Create two variants of DEFINE_VIRT_MACHINE. One, just called DEFINE_VIRT_MACHINE, that does not set properties that only the latest machine type should have, and another that does. This will hopefully reduce potential for errors when adding new versions. Signed-off-by: Andrew Jones --- hw/arm/vi

[Qemu-devel] [PATCH 1/5] hw/arm/virt: separate versioned type-init code

2016-06-08 Thread Andrew Jones
Rename machvirt_info (which is specifically for 2.6 TypeInfo) to machvirt_2_6_info, and separate the type registration of the abstract machine type from the versioned type. Signed-off-by: Andrew Jones --- hw/arm/virt.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

[Qemu-devel] [PATCH 0/5] create the mach-virt 2.7 machine type

2016-06-08 Thread Andrew Jones
This is the first new machine type mach-virt has received (2.6 being the first versioned machine type), so we need to do a bit more than the average "new machine type" patch. The first four patches prepare for easy-adding of machine types. The last patch adds the 2.7 type. Andrew Jones (5): hw/

[Qemu-devel] [PATCH 5/5] hw/arm/virt: create the 2.7 machine type

2016-06-08 Thread Andrew Jones
Signed-off-by: Andrew Jones --- hw/arm/virt.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 017c244a46f41..323ffd4689641 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -42,6 +42,7 @@ #include "sysemu/sysemu.h" #i

Re: [Qemu-devel] [PATCH v6 08/15] qdist: add module to represent frequency distributions of data

2016-06-08 Thread Sergey Fedorov
On 08/06/16 21:06, Emilio G. Cota wrote: > On Wed, Jun 08, 2016 at 17:10:03 +0300, Sergey Fedorov wrote: >> On 08/06/16 03:02, Emilio G. Cota wrote: >>> -dist->entries = g_realloc(dist->entries, >>> - sizeof(*dist->entries) * (dist->n + 1)); >>> +if (unlikely(di

[Qemu-devel] [Qemu-devel [RFC] [WIP] v1] Adding feature to reconnect with -r option to migrate command

2016-06-08 Thread Md Haris Iqbal
--- hmp-commands.hx | 10 +--- hmp.c | 4 ++- include/migration/migration.h | 1 + migration/migration.c | 60 +-- qapi-schema.json | 2 +- qmp-commands.hx | 3 ++- 6 files chan

[Qemu-devel] [Qemu-devel [RFC] [WIP] v2] Keeping the Source side alive incase of network failure (Migration recovery from network failure)

2016-06-08 Thread Md Haris Iqbal
--- include/migration/migration.h | 1 + migration/migration.c | 76 --- qapi-schema.json | 11 +-- vl.c | 4 +++ 4 files changed, 85 insertions(+), 7 deletions(-) diff --git a/include/migration/migration.

Re: [Qemu-devel] [PATCH v6 08/15] qdist: add module to represent frequency distributions of data

2016-06-08 Thread Emilio G. Cota
On Wed, Jun 08, 2016 at 17:10:03 +0300, Sergey Fedorov wrote: > On 08/06/16 03:02, Emilio G. Cota wrote: > > -dist->entries = g_realloc(dist->entries, > > - sizeof(*dist->entries) * (dist->n + 1)); > > +if (unlikely(dist->n == dist->size)) { > > +dist->s

[Qemu-devel] [PATCH v2] blockdev: clarify error on attempt to open locked tray

2016-06-08 Thread Colin Lord
When opening a device with a locked tray, gives an error explaining the device tray is locked and that the user should wait and try again. This is less confusing than the previous error, which simply stated that the tray was locked. Signed-off-by: Colin Lord --- Reworded commit message to hopeful

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

2016-06-08 Thread Peter Maydell
On 8 June 2016 at 10:16, Kevin Wolf wrote: > The following changes since commit 6ed5546fa7bf12c5b87ef76bafb86e1d77ed6e85: > > Merge remote-tracking branch > 'remotes/mjt/tags/pull-trivial-patches-2016-06-07' into staging (2016-06-07 > 16:34:45 +0100) > > are available in the git repository at:

Re: [Qemu-devel] [PATCH 09/10] arm: virt: parse cpu_model only once

2016-06-08 Thread Peter Maydell
On 8 June 2016 at 17:55, Eduardo Habkost wrote: > On Mon, Jun 06, 2016 at 05:16:51PM +0200, Igor Mammedov wrote: >> considering that features are converted to >> global properties and global properties are >> automatically applied to every new instance >> of created CPU (at object_new() time), the

Re: [Qemu-devel] [PATCH v2 2/3] block/mirror: Fix target backing BDS

2016-06-08 Thread Nir Soffer
On Wed, Jun 8, 2016 at 12:32 PM, Kevin Wolf wrote: > Am 06.06.2016 um 16:42 hat Max Reitz geschrieben: >> Currently, we are trying to move the backing BDS from the source to the >> target in bdrv_replace_in_backing_chain() which is called from >> mirror_exit(). However, mirror_complete() already t

Re: [Qemu-devel] [PATCH] vl: Eliminate usb_enabled()

2016-06-08 Thread Eduardo Habkost
On Wed, Jun 08, 2016 at 02:34:16PM +0100, Peter Maydell wrote: > On 8 June 2016 at 12:48, Paolo Bonzini wrote: > > - Original Message - > >> From: "Marcel Apfelbaum" > >> To: "Eduardo Habkost" , qemu-devel@nongnu.org > >> Cc: "Paolo Bonzini" , "Andrzej Zaborowski" > >> , "Peter Maydell"

Re: [Qemu-devel] [PATCH 10/10] pc: parse cpu features only once

2016-06-08 Thread Eduardo Habkost
On Mon, Jun 06, 2016 at 05:16:52PM +0200, Igor Mammedov wrote: > considering that features are converted to > global properties and global properties are > automatically applied to every new instance > of created CPU (at object_new() time), there > is no point in parsing cpu_model string every > ti

Re: [Qemu-devel] [PATCH 09/10] arm: virt: parse cpu_model only once

2016-06-08 Thread Eduardo Habkost
On Mon, Jun 06, 2016 at 05:16:51PM +0200, Igor Mammedov wrote: > considering that features are converted to > global properties and global properties are > automatically applied to every new instance > of created CPU (at object_new() time), there > is no point in parsing cpu_model string every > ti

[Qemu-devel] [PATCH 3/3] .travis.yml: disable Sparse testing

2016-06-08 Thread Alex Bennée
From: Paolo Bonzini On travis-ci.org, all builds fail with /usr/include/features.h:324:11: error: unable to open bits/predefs.h With "make docker-travis@ubuntu", they fail with /usr/include/features.h:374:13: error: unable to open sys/cdefs.h With "make docker-travis@fedora", finally, the

Re: [Qemu-devel] [PATCH v2 2/3] block/mirror: Fix target backing BDS

2016-06-08 Thread Max Reitz
On 08.06.2016 16:38, Max Reitz wrote: > On 08.06.2016 11:32, Kevin Wolf wrote: >> Am 06.06.2016 um 16:42 hat Max Reitz geschrieben: >>> Currently, we are trying to move the backing BDS from the source to the >>> target in bdrv_replace_in_backing_chain() which is called from >>> mirror_exit(). Howev

[Qemu-devel] [PATCH 1/3] .travis.yml: add libnfs-dev for NFS block driver

2016-06-08 Thread Alex Bennée
From: Stefan Hajnoczi Let's ensure that block/nfs.o is built in Travis. This patch depends on the following build fixes: 1. block/nfs: add missing #include "qapi/error.h" 2. block/nfs: add missing #include "qemu/cutils.h" This patch also depends on Travis adding libnfs-dev to the list of approv

[Qemu-devel] [PATCH 0/3] Current travis queue

2016-06-08 Thread Alex Bennée
Hi, I have contributions from other developers which is an exciting first as a "maintainer" ;-). I've dropped all the controversial stuff that involved tweaking the configure script to allow short-cutting for classes of targets. Assuming there is no shouting over the next few days this will be the

[Qemu-devel] [PATCH 2/3] .travis.yml: add trusty GCE target

2016-06-08 Thread Alex Bennée
If we want to run our docker based tests we'll need to do them on a normal VM with docker support. Lets just enable the build on trusty for now to check against a newer Ubuntu. Signed-off-by: Alex Bennée --- .travis.yml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml

Re: [Qemu-devel] [PATCH 08/10] cpu: use CPUClass->parse_features() as convertor to global properties

2016-06-08 Thread Eduardo Habkost
On Mon, Jun 06, 2016 at 05:16:50PM +0200, Igor Mammedov wrote: > Currently CPUClass->parse_features() is used to parse > -cpu features string and set properties on created CPU > instances. > > But considering that features specified by -cpu apply to > every created CPU instance, it doesn't make se

Re: [Qemu-devel] [PATCH v6 00/15] tb hash improvements

2016-06-08 Thread Alex Bennée
Sergey Fedorov writes: > On 08/06/16 18:35, Richard Henderson wrote: >> On 06/07/2016 11:25 PM, Alex Bennée wrote: >>> Richard, >>> >>> How happy are you with this series so far? Are you planning to take in >>> via your tree when ready? >> I'm happy with it. I was all set to merge v6 before Ser

[Qemu-devel] [PATCH v2 0/3] Support building qemu-user powered docker test images

2016-06-08 Thread Alex Bennée
Hi, This is a re-spin of the previous series built on top of fam/docker.next. I've made the changes suggested in the last review and split the first patch apart to separate (and fix) the build directory changes first. Now it no longer messes with the docker file you can actually cross-build tests

[Qemu-devel] [PATCH v2 2/3] tests/docker/docker.py: support --include-executable

2016-06-08 Thread Alex Bennée
When passed the path to a binary we copy it and any linked libraries into the docker build context. These can then be included by a dockerfile with the line: # Copy all of context into container ADD . / This is mainly intended for setting up foreign architecture docker images which use qemu-$

  1   2   3   4   >