Re: [Qemu-devel] [v2 0/4] Fix long vm downtime during live migration

2015-08-12 Thread Paolo Bonzini
On 13/08/2015 07:46, Liang Li wrote: > Some cleanup operations take long time during the pause and copy stage, > especially with the KVM patch 3ea3b7fa9af067, do these operations after > the completion of live migration can help to reduce VM downtime. > > Ony the first patch changes the behavior

[Qemu-devel] [v2 4/4] migration: code clean up

2015-08-12 Thread Liang Li
Just clean up code, no behavior change. Signed-off-by: Liang Li --- migration/block.c | 9 ++--- migration/ram.c | 9 ++--- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/migration/block.c b/migration/block.c index 55442bd..869798c 100644 --- a/migration/block.c +++ b/

[Qemu-devel] [v2 2/4] migration: rename qemu_savevm_state_cancel

2015-08-12 Thread Liang Li
The function qemu_savevm_state_cancel is called after the migration in migration_thread, it seems strange to 'cancel' it after completion, rename it to qemu_savevm_state_cleanup looks better. Signed-off-by: Liang Li --- include/sysemu/sysemu.h | 2 +- migration/migration.c | 2 +- migration/sa

[Qemu-devel] [v2 1/4] migration: do cleanup operation after completion

2015-08-12 Thread Liang Li
Because of the patch 3ea3b7fa9af067982f34b of kvm, now the migration_end() is a time consuming operation, which takes about dozens of milliseconds, and will prolong VM downtime. Such an operation should be done after migration completion. For a VM with 8G RAM, this patch can reduce the VM downtime

[Qemu-devel] [v2 3/4] migration: rename cancel to cleanup in SaveVMHandles

2015-08-12 Thread Liang Li
'cleanup' seems more appropriate than 'cancel'. Signed-off-by: Liang Li --- include/migration/vmstate.h | 2 +- migration/block.c | 2 +- migration/ram.c | 2 +- migration/savevm.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/mig

[Qemu-devel] [v2 0/4] Fix long vm downtime during live migration

2015-08-12 Thread Liang Li
Some cleanup operations take long time during the pause and copy stage, especially with the KVM patch 3ea3b7fa9af067, do these operations after the completion of live migration can help to reduce VM downtime. Ony the first patch changes the behavior, the rest 3 patches are for code cleanup. Chang

Re: [Qemu-devel] Qemu-devel Digest, Vol 149, Issue 266

2015-08-12 Thread Ouyang, Changchun
> -Original Message- > Date: Wed, 12 Aug 2015 14:15:54 +0300 > From: "Michael S. Tsirkin" > To: Marcel Apfelbaum > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] [PATCH] virtio/vhost: drop unnecessary > VHOST_SET_VRING call > Message-ID: <20150812141448-mutt-send-email-...@

Re: [Qemu-devel] [PATCH] monitor: remove QAPI_EVENT_VSERPORT_CHANGE throttle

2015-08-12 Thread Amit Shah
On (Tue) 11 Aug 2015 [20:21:18], Laszlo Ersek wrote: > On 08/11/15 19:04, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > QAPI_EVENT_VSERPORT_CHANGE reports changes of a virtio serial port > > state. However, the events may be for different ports, but the throttle > > mecha

Re: [Qemu-devel] [PATCH v6 0/2] vhost user: Add live migration

2015-08-12 Thread Ouyang, Changchun
> -Original Message- > From: Marc-André Lureau [mailto:marcandre.lur...@gmail.com] > Sent: Wednesday, August 12, 2015 6:07 PM > To: Michael S. Tsirkin > Cc: Thibaut Collet; QEMU; stefa...@redhat.com; Jason Wang; Paolo Bonzini; > Linhaifeng; Ouyang, Changchun > Subject: Re: [PATCH v6 0/2]

Re: [Qemu-devel] [PATCH] linux-user: elfload: Still use TARGET_PAGE_SIZE for i386 guest

2015-08-12 Thread Alexander Graf
> Am 13.08.2015 um 04:45 schrieb gchen gchen : > >> On 2015年08月12日 23:06, Richard Henderson wrote: >> On 08/12/2015 12:59 AM, gchen gchen wrote: Nack. There's 99 problems with host page size> guest page size. This solves none of them, and in the hackiest way possible. >>> >>> Under

Re: [Qemu-devel] [PATCH] linux-user: elfload: Still use TARGET_PAGE_SIZE for i386 guest

2015-08-12 Thread gchen gchen
On 2015年08月12日 23:06, Richard Henderson wrote: > On 08/12/2015 12:59 AM, gchen gchen wrote: >>> Nack. There's 99 problems with host page size> guest page size. This >>> solves none of them, and in the hackiest way possible. >>> >> >> Under alpha virtual machine, if set i386 guest page size 8KB, i

Re: [Qemu-devel] [PATCH for-2.5 27/30] m68k: add addx/subx/negx

2015-08-12 Thread Richard Henderson
On 08/12/2015 05:11 PM, Laurent Vivier wrote: Le 12/08/2015 20:46, Richard Henderson a écrit : On 08/09/2015 01:13 PM, Laurent Vivier wrote: +return (op1 & ~((1UL << bits) - 1)) | res; \ deposit32(op1, res, bits, 0) You mean: deposit32(op1, 0, bits, res) ? Yes, sorry. The operand

Re: [Qemu-devel] [PATCH for-2.5 00/30] 680x0 instructions emulation

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: m68k: allow to update flags with operation on words and bytes m68k: update CPU flags management m68k: add X flag helpers I wonder if we can talk about a different mechanism for tracking flags. The x86 scheme tracks flags with 3 words: { op

[Qemu-devel] [Consult] linux-user: Let 8KB host support 4KB guest

2015-08-12 Thread gchen gchen
Hello All: For my company, it is useful to let qemu linux-user 8KB host support 4KB guest, it may have many issues, but I want to try to fix them (with the aid from qemu members). So I want to consult: - Is it valuable and possible to fix these issues? (I guess, it is valuable and possible, b

Re: [Qemu-devel] [PATCH] linux-user: elfload: Still use TARGET_PAGE_SIZE for i386 guest

2015-08-12 Thread gchen gchen
On 2015年08月12日 23:06, Richard Henderson wrote:> On 08/12/2015 12:59 AM, gchen gchen wrote:>>> Nack. There's 99 problems with host page size> guest page size. This>>> solves none of them, and in the hackiest way possible.>>> Under alpha virtual machine, if set i386 guest page size 8KB, it

Re: [Qemu-devel] [PATCH v4 1/3] linux-headers: Add eeh.h

2015-08-12 Thread David Gibson
On Thu, Aug 13, 2015 at 11:30:37AM +1000, Gavin Shan wrote: > On Wed, Aug 12, 2015 at 12:00:35PM +1000, Alexey Kardashevskiy wrote: > >On 08/11/2015 07:11 PM, Peter Maydell wrote: > >>On 10 August 2015 at 08:13, Gavin Shan wrote: > >>>The header file was introduced by following Linux upstream comm

Re: [Qemu-devel] [PATCH v4 1/3] linux-headers: Add eeh.h

2015-08-12 Thread Gavin Shan
On Wed, Aug 12, 2015 at 12:00:35PM +1000, Alexey Kardashevskiy wrote: >On 08/11/2015 07:11 PM, Peter Maydell wrote: >>On 10 August 2015 at 08:13, Gavin Shan wrote: >>>The header file was introduced by following Linux upstream commits: >>> >>> commit ed3e81f ("powerpc/eeh: Move PE state constan

[Qemu-devel] about the patch kvmclock Ensure proper env->tsc value for kvmclock_current_nsec calculation

2015-08-12 Thread Li, Liang Z
Hi Paolo & Marcelo, Could please point out what issue the patch 317b0a6d8ba44e try to fix? I found in live migration the cpu_synchronize_all_states will be called twice, and it will take more than 1 ms sometimes. I try to do some optimization but lack the knowledge about the background.

Re: [Qemu-devel] [PATCH v3 2/3] sPAPR: Support RTAS call ibm, {open, close}-errinjct

2015-08-12 Thread Gavin Shan
On Tue, Aug 11, 2015 at 11:54:08AM +1000, Alexey Kardashevskiy wrote: >On 08/11/2015 10:57 AM, Gavin Shan wrote: >>On Mon, Aug 10, 2015 at 10:24:56PM +1000, David Gibson wrote: >>>On Fri, Aug 07, 2015 at 01:33:32PM +1000, Gavin Shan wrote: The patch supports RTAS calls "ibm,{open,close}-errinjc

Re: [Qemu-devel] [PATCH for-2.5 27/30] m68k: add addx/subx/negx

2015-08-12 Thread Laurent Vivier
Le 12/08/2015 20:46, Richard Henderson a écrit : > On 08/09/2015 01:13 PM, Laurent Vivier wrote: >> +return (op1 & ~((1UL << bits) - 1)) | res; \ > > deposit32(op1, res, bits, 0) > You mean: deposit32(op1, 0, bits, res) ? Laurent

Re: [Qemu-devel] [PATCH for-2.5 20/30] m68k: add exg

2015-08-12 Thread Laurent Vivier
Le 13/08/2015 01:09, Richard Henderson a écrit : > On 08/12/2015 03:43 PM, Laurent Vivier wrote: >> >> >> Le 12/08/2015 19:05, Richard Henderson a écrit : >>> On 08/09/2015 01:13 PM, Laurent Vivier wrote: Signed-off-by: Laurent Vivier --- target-m68k/translate.c | 34 +++

Re: [Qemu-devel] [PATCH for-2.5 20/30] m68k: add exg

2015-08-12 Thread Richard Henderson
On 08/12/2015 03:43 PM, Laurent Vivier wrote: Le 12/08/2015 19:05, Richard Henderson a écrit : On 08/09/2015 01:13 PM, Laurent Vivier wrote: Signed-off-by: Laurent Vivier --- target-m68k/translate.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-)

Re: [Qemu-devel] [PATCH for-2.5 20/30] m68k: add exg

2015-08-12 Thread Laurent Vivier
Le 12/08/2015 19:05, Richard Henderson a écrit : > On 08/09/2015 01:13 PM, Laurent Vivier wrote: >> Signed-off-by: Laurent Vivier >> --- >> target-m68k/translate.c | 34 +- >> 1 file changed, 33 insertions(+), 1 deletion(-) >> >> diff --git a/target-m68k/translat

[Qemu-devel] [PATCH] hw/misc: Add support for ADC controller in Xilinx Zynq 7000

2015-08-12 Thread Guenter Roeck
Add support for the Xilinx XADC core used in Zynq 7000. References: - Zynq-7000 All Programmable SoC Technical Reference Manual - 7 Series FPGAs and Zynq-7000 All Programmable SoC XADC Dual 12-Bit 1 MSPS Analog-to-Digital Converter Tested with Linux using qemu machine xilinx-zynq-a9 with device

Re: [Qemu-devel] [RFC 1/3] monitor: split MonitorQAPIEventState

2015-08-12 Thread Eric Blake
On 08/12/2015 02:00 PM, Laszlo Ersek wrote: > Assume there has been a long period of silence (no attempts to emit an > event). Now some client code makes a call to emit the event. > > Will that event be emitted immediately, or will it be delayed to see if > more are coming? I'd like to understand

Re: [Qemu-devel] [PATCH for-2.5 08/30] m68k: update CPU flags management

2015-08-12 Thread Laurent Vivier
Le 12/08/2015 23:19, Richard Henderson a écrit : > On 08/12/2015 01:56 PM, Laurent Vivier wrote: -DEF_HELPER_2(flush_flags, void, env, i32) +DEF_HELPER_2(flush_flags, i32, env, i32) >>> >>> Modify to use DEF_HELPER_FLAGS while you're at it. At the moment it >>> reads some globals, but

Re: [Qemu-devel] [PATCH for-2.5 08/30] m68k: update CPU flags management

2015-08-12 Thread Richard Henderson
On 08/12/2015 01:56 PM, Laurent Vivier wrote: -DEF_HELPER_2(flush_flags, void, env, i32) +DEF_HELPER_2(flush_flags, i32, env, i32) Modify to use DEF_HELPER_FLAGS while you're at it. At the moment it reads some globals, but doesn't write any, or have any other side effects. It writes "env->cc

Re: [Qemu-devel] [PATCH for-2.5 30/30] m68k: add bitfield instructions

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > uint32_t HELPER(rol32)(uint32_t val, uint32_t shift) > { > uint32_t result; > @@ -1227,6 +1241,53 @@ void HELPER(set_mac_extu)(CPUM68KState *env, uint32_t > val, uint32_t acc) > env->macc[acc + 1] = res; > } > > +/* load from a bitfiel

Re: [Qemu-devel] [PATCH for-2.5 08/30] m68k: update CPU flags management

2015-08-12 Thread Laurent Vivier
Le 12/08/2015 07:12, Richard Henderson a écrit : > On 08/09/2015 01:13 PM, Laurent Vivier wrote: >> @@ -798,9 +796,9 @@ void HELPER(mac_set_flags)(CPUM68KState *env, >> uint32_t acc) >> } >> } >> >> -void HELPER(flush_flags)(CPUM68KState *env, uint32_t cc_op) >> +uint32_t HELPER(flush_fla

Re: [Qemu-devel] [PATCH 08/10] tcg: add memory barriers in page_find_alloc accesses

2015-08-12 Thread Emilio G. Cota
On Wed, Aug 12, 2015 at 18:41:00 +0200, Paolo Bonzini wrote: > page_find is reading the radix tree outside all locks, so it has to > use the RCU primitives. It does not need RCU critical sections > because the PageDescs are never removed, so there is never a need > to wait for the end of code sect

Re: [Qemu-devel] [RFC 1/3] monitor: split MonitorQAPIEventState

2015-08-12 Thread Marc-André Lureau
Hi - Original Message - > On 08/12/15 21:46, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > Create a seperate pending event structure MonitorQAPIEventPending. > > Use a MonitorQAPIEventDelay callback to handle the delaying. This > > allows other implementations of

Re: [Qemu-devel] [RFC 1/3] monitor: split MonitorQAPIEventState

2015-08-12 Thread Laszlo Ersek
On 08/12/15 21:46, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Create a seperate pending event structure MonitorQAPIEventPending. > Use a MonitorQAPIEventDelay callback to handle the delaying. This > allows other implementations of throttling. > > Signed-off-by: Marc-André L

[Qemu-devel] [RFC 1/3] monitor: split MonitorQAPIEventState

2015-08-12 Thread marcandre . lureau
From: Marc-André Lureau Create a seperate pending event structure MonitorQAPIEventPending. Use a MonitorQAPIEventDelay callback to handle the delaying. This allows other implementations of throttling. Signed-off-by: Marc-André Lureau --- monitor.c| 124 +

[Qemu-devel] [RFC 2/3] monitor: throttle QAPI_EVENT_VSERPORT_CHANGE by "id"

2015-08-12 Thread marcandre . lureau
From: Marc-André Lureau Use a hash table to lookup the pending event corresponding to the "id" field. The hash table may grow without limit here, the following patch will add some cleaning. Signed-off-by: Marc-André Lureau --- monitor.c | 104 ++-

[Qemu-devel] [RFC 3/3] monitor: remove old entries from event hash table

2015-08-12 Thread marcandre . lureau
From: Marc-André Lureau Do not let the hash table grow without limit, schedule a cleanup for outdated event. Signed-off-by: Marc-André Lureau --- monitor.c | 51 --- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/monitor.c b/monit

[Qemu-devel] [RFC 0/3] monitor: throttle VSERPORT_CHANGED by "id"

2015-08-12 Thread marcandre . lureau
From: Marc-André Lureau QAPI_EVENT_VSERPORT_CHANGE reports changes of a virtio serial port state. However, the events may be for different ports, but the throttle mechanism may replace the event for a different port, since it only checks the event type. The following series implements throttling

Re: [Qemu-devel] [PATCH for-2.5 29/30] m68k: add rol/rox/ror/roxr

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/helper.c| 212 > > target-m68k/helper.h| 14 > target-m68k/translate.c | 207 ++ > 3 files

Re: [Qemu-devel] [PATCH for-2.5 28/30] m68k: shift/rotate bytes and words

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > +#define HELPER_SHL(type, bits) \ > +uint32_t HELPER(glue(glue(shl, bits), _cc))(CPUM68KState *env, \ > +uint32_t val, uint32_t shift) \ > +{ \ > +type result; \ > +uint32_t cf; \ > +shift &= 63;

Re: [Qemu-devel] [PATCH for-2.5 27/30] m68k: add addx/subx/negx

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > +return (op1 & ~((1UL << bits) - 1)) | res; \ deposit32(op1, res, bits, 0) Otherwise, Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH for-2.5 26/30] m68k: add mull/divl

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/cpu.h | 3 + > target-m68k/helper.h| 6 ++ > target-m68k/op_helper.c | 143 > > target-m68k/qregs.def | 1 + > target-m68k/translat

Re: [Qemu-devel] [RFC PATCH V7 07/19] protect TBContext with tb_lock.

2015-08-12 Thread Alex Bennée
Frederic Konrad writes: > On 10/08/2015 17:27, fred.kon...@greensocs.com wrote: >> From: KONRAD Frederic >> >> This protects TBContext with tb_lock to make tb_* thread safe. >> >> We can still have issue with tb_flush in case of multithread TCG: >>An other CPU can be executing code during a

Re: [Qemu-devel] [RFC PATCH V7 07/19] protect TBContext with tb_lock.

2015-08-12 Thread Paolo Bonzini
> Are you likely to push a v8 this week (or a temp branch?) with this and > any other obvious fixes? I appreciate Paolo has given you a not-so-small > pile of review comments as well so I wasn't looking for a complete new > patch set! FWIW, reviews of the patches I posted a hour or two ago are we

[Qemu-devel] [Bug 1448985] Re: llvmpipe i386 crashes when running on qemu64 cpu

2015-08-12 Thread Ubuntu QA Website
This bug has been reported on the Ubuntu ISO testing tracker. A list of all reports related to this bug can be found here: http://iso.qa.ubuntu.com/qatracker/reports/bugs/1448985 ** Tags added: iso-testing -- You received this bug notification because you are a member of qemu- devel-ml, which i

[Qemu-devel] [Bug 1463172] Re: destination arm board hangs after migration from x86 source

2015-08-12 Thread Serge Hallyn
Hm, ok, thanks - sadly i don't have any board I can test this on with me. Wonder whether a rpi2 (which I have but not with me) would work. ** Changed in: qemu (Ubuntu) Status: Invalid => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscr

Re: [Qemu-devel] [PATCH for-2.5 25/30] m68k: add abcd, sbcd, nbcd instructions

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/helper.c| 91 > + > target-m68k/helper.h| 3 ++ > target-m68k/translate.c | 82 > 3 files change

[Qemu-devel] [Bug 1463172] Re: destination arm board hangs after migration from x86 source

2015-08-12 Thread Peter Maydell
I think it is in theory supposed to work, but possibly in practice it doesn't... -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1463172 Title: destination arm board hangs after migration from x86 so

Re: [Qemu-devel] [PATCH for-2.5 24/30] m68k: add DBcc and Scc (memory operand)

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > +DISAS_INSN(scc_mem) > +{ > +TCGLabel *l1; > +int cond; > +TCGv dest; > + > +l1 = gen_new_label(); > +cond = (insn >> 8) & 0xf; > +dest = tcg_temp_local_new(); > +tcg_gen_movi_i32(dest, 0); > +gen_jmpcc(s, cond ^ 1, l1)

Re: [Qemu-devel] [RFC PATCH V7 07/19] protect TBContext with tb_lock.

2015-08-12 Thread Frederic Konrad
On 10/08/2015 17:27, fred.kon...@greensocs.com wrote: From: KONRAD Frederic This protects TBContext with tb_lock to make tb_* thread safe. We can still have issue with tb_flush in case of multithread TCG: An other CPU can be executing code during a flush. This can be fixed later by making

Re: [Qemu-devel] [PATCH for-2.5 23/30] m68k: add linkl

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/translate.c | 21 +++-- > 1 file changed, 19 insertions(+), 2 deletions(-) > > diff --git a/target-m68k/translate.c b/target-m68k/translate.c > index 9a7558a..95d58d1 100644 > --- a/

Re: [Qemu-devel] [PATCH for-2.5 20/30] m68k: add exg

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/translate.c | 34 +- > 1 file changed, 33 insertions(+), 1 deletion(-) > > diff --git a/target-m68k/translate.c b/target-m68k/translate.c > index adf4521..b7d15e9 100

[Qemu-devel] [Bug 1448985] Re: llvmpipe i386 crashes when running on qemu64 cpu

2015-08-12 Thread Stefan Bader
Since a simple work-around exists I think the importance can be lowered. ** Summary changed: - Ubuntu 14.04 LTS, 14.10, 15.04, 15.10 guests do not boot to Unity from QEMU-KVM Ubuntu 14.04 LTS, 14.10, 15.04 hosts + llvmpipe i386 crashes when running on qemu64 cpu ** Description changed: STEPS

Re: [Qemu-devel] [PATCH for-2.5 22/30] m68k: add cas instruction

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > +gen_logic_cc(s, res, opsize); > + > +l1 = gen_new_label(); > +l2 = gen_new_label(); > + > +gen_jmpcc(s, 6 /* !Z */, l1); > +gen_store(s, opsize, addr, update); > +tcg_gen_br(l2); > +gen_set_label(l1); > +tcg_gen_mov_i3

[Qemu-devel] [Bug 1465935] Re: kvm_irqchip_commit_routes: Assertion `ret == 0' failed

2015-08-12 Thread Stefan Bader
Marking as incomplete while waiting for test feedback. ** Changed in: qemu (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1465935 Title: kvm_irqchip_

Re: [Qemu-devel] [PATCH for-2.5 21/30] m68k: add bkpt

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/translate.c | 6 ++ > 1 file changed, 6 insertions(+) Reviewed-by: Richard Henderson r~

[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2015-08-12 Thread Serge Hallyn
** Changed in: qemu (Ubuntu) Importance: Medium => Low -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/685096 Title: USB Passthrough not working for Windows 7 guest Status in QEMU: Confirmed St

[Qemu-devel] [Bug 1297218] Re: guest hangs after live migration due to tsc jump

2015-08-12 Thread Serge Hallyn
Could someone confirm whether this is fixed in 15.04 and/or 15.10? ** Changed in: qemu (Ubuntu) Status: Triaged => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1297218 Title: gu

[Qemu-devel] [Bug 1163034] Re: linux-user mode can't handle guest setting RLIMIT_AS (hangs running gnutls28 configure check code)

2015-08-12 Thread Serge Hallyn
This will come in when implemented upstream. ** Changed in: qemu (Ubuntu) Importance: High => Wishlist -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1163034 Title: linux-user mode can't handle

Re: [Qemu-devel] [PATCH for-2.5 19/30] m68k: add cmpm

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/translate.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/target-m68k/translate.c b/target-m68k/translate.c > index ae57792..adf4521 100644 > --- a/target-m68k/transla

[Qemu-devel] [Bug 1463172] Re: destination arm board hangs after migration from x86 source

2015-08-12 Thread Serge Hallyn
I'm going to mark this invalid as I don't believe this is a supported case. If someone can vouch for the fact that this is supposed to work, please leave a comment. ** Changed in: qemu (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of qemu-

Re: [Qemu-devel] [PATCH for-2.5 18/30] m68k: addq/subq can work with all the data sizes.

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Improve TCG constant use by creating only once for several uses. > > Signed-off-by: Laurent Vivier > --- > target-m68k/translate.c | 46 +++--- > 1 file changed, 27 insertions(+), 19 deletions(-) > > diff --

[Qemu-devel] [Bug 1321028] Re: qemu-system-ppc : file systems are not shutting down clean

2015-08-12 Thread Serge Hallyn
*** This bug is a duplicate of bug 1317603 *** https://bugs.launchpad.net/bugs/1317603 ** This bug has been marked a duplicate of bug 1317603 qemu-system-ppc does not terminate on VM exit -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

Re: [Qemu-devel] [PATCH for-2.5 17/30] m68k: ori/andi/subi/addi/eori/cmpi can modify SR/CCR

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > target-m68k/translate.c | 95 > ++--- > 1 file changed, 58 insertions(+), 37 deletions(-) > > diff --git a/target-m68k/translate.c b/target-m68k/translate.c > index

[Qemu-devel] [PATCH 12/10] tcg: protect TBContext with tb_lock.

2015-08-12 Thread Paolo Bonzini
From: KONRAD Frederic This protects TBContext with tb_lock to make tb_* thread safe. We can still have issue with tb_flush in case of multithread TCG: another CPU can be executing code during a flush. This can be fixed later by making all other TCG thread exiting before calling tb_flush(). Sig

[Qemu-devel] [PATCH 09/10] exec: make mmap_lock/mmap_unlock globally available

2015-08-12 Thread Paolo Bonzini
There is some iffy lock hierarchy going on in translate-all.c. To fix it, we need to take the mmap_lock in cpu-exec.c. Make the functions globally available. Signed-off-by: Paolo Bonzini --- bsd-user/qemu.h | 2 -- include/exec/exec-all.h | 7 ++- linux-user/qemu.h | 2 -- tr

[Qemu-devel] [PATCH 11/10] tcg: comment on which functions have to be called with tb_lock held

2015-08-12 Thread Paolo Bonzini
softmmu requires more functions to be thread-safe, because translation blocks can be invalidated from e.g. notdirty callbacks. Probably the same holds for user-mode emulation, it's just that no one has ever tried to produce a coherent locking there. This patch will guide the introduction of more

[Qemu-devel] [PATCH 01/10] cpus: protect work list with work_mutex

2015-08-12 Thread Paolo Bonzini
From: KONRAD Frederic Protect the list of queued work items with something other than the BQL, as a preparation for running the work items outside it. Signed-off-by: KONRAD Frederic Signed-off-by: Paolo Bonzini --- cpus.c| 22 ++ include/qom/cpu.h | 6 +-

[Qemu-devel] [PATCH 04/10] exec-all: remove non-TCG stuff from exec-all.h header.

2015-08-12 Thread Paolo Bonzini
The header is included from basically everywhere, thanks to cpu.h. It should be moved to the (TCG only) files that actually need it. As a start, remove non-TCG stuff. While adding a #ifndef CONFIG_USER_ONLY include section to cpu-exec.c, move memory API files under it. Signed-off-by: Paolo Bonzin

[Qemu-devel] [PATCH 10/10] cpu-exec: fix lock hierarchy for user-mode emulation

2015-08-12 Thread Paolo Bonzini
tb_lock has to be taken inside the mmap_lock (example: tb_invalidate_phys_range is called by target_mmap), but tb_link_page is taking the mmap_lock and it is called with the tb_lock held. To fix this, take the mmap_lock in tb_find_slow, not in tb_link_page. Signed-off-by: Paolo Bonzini --- cpu-

[Qemu-devel] [PATCH 06/10] tcg: code_bitmap is not used by user-mode emulation

2015-08-12 Thread Paolo Bonzini
More #ifdefs are not nice, but this clarifies why its usage is not protected by tb_lock. Signed-off-by: Paolo Bonzini --- translate-all.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/translate-all.c b/translate-all.c index a6bff72..7aa5664 100644 --- a/translate

[Qemu-devel] [PATCH 07/10] tcg: comment on which functions have to be called with mmap_lock held

2015-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- translate-all.c | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/translate-all.c b/translate-all.c index 7aa5664..7727091 100644 --- a/translate-all.c +++ b/translate-all.c @@ -172,11 +172,13 @@ void cpu_gen_init(v

[Qemu-devel] [Bug 1321028] Re: qemu-system-ppc : file systems are not shutting down clean

2015-08-12 Thread Serge Hallyn
** Changed in: qemu (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1321028 Title: qemu-system-ppc : file systems are not shutting down clean Status in QEM

[Qemu-devel] [PATCH 00/10] translate-all.c thread-safety

2015-08-12 Thread Paolo Bonzini
Hi, this is my attempt at 1) extracting upstreamable parts out of Fred's MTTCG, and 2) documenting what's going on in user-mode MTTCG 3) fix one bug in the process. I couldn't find any other locking problem from reading the code. The final two patches are not really upstreamable because they add

[Qemu-devel] [PATCH 05/10] cpu-exec: elide more icount code if CONFIG_USER_ONLY

2015-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- cpu-exec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index 599e64d..bde5fd1 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -228,6 +228,7 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, uint8_t *tb_ptr) return

[Qemu-devel] [PATCH 08/10] tcg: add memory barriers in page_find_alloc accesses

2015-08-12 Thread Paolo Bonzini
page_find is reading the radix tree outside all locks, so it has to use the RCU primitives. It does not need RCU critical sections because the PageDescs are never removed, so there is never a need to wait for the end of code sections that use a PageDesc. Signed-off-by: Paolo Bonzini --- transla

[Qemu-devel] [PATCH 03/10] replace spinlock by QemuMutex.

2015-08-12 Thread Paolo Bonzini
From: KONRAD Frederic spinlock is only used in two cases: * cpu-exec.c: to protect TranslationBlock * mem_helper.c: for lock helper in target-i386 (which seems broken). It's a pthread_mutex_t in user-mode so better using QemuMutex directly in this case. It allows as well to reuse tb_lock mut

[Qemu-devel] [PATCH 02/10] cpus: remove tcg_halt_cond global variable.

2015-08-12 Thread Paolo Bonzini
From: KONRAD Frederic This removes tcg_halt_cond global variable. We need one QemuCond per virtual cpu for multithread TCG. Signed-off-by: KONRAD Frederic Message-Id: <1439220437-23957-9-git-send-email-fred.kon...@greensocs.com> [Keep tcg_halt_cond for bisectability, while making it static. - P

Re: [Qemu-devel] [PATCH for-2.5 16/30] m68k: Add all access modes and data sizes to some 680x0 instructions

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > -SRC_EA(env, tmp, OS_LONG, 0, &addr); > +SRC_EA(env, tmp, opsize, -1, &addr); Oh, I'm also wondering why you changed all of the inputs from unsigned to signed. It appears to be unrelated to updating the modes, and unnecessary. I'm a

Re: [Qemu-devel] [PATCH for-2.5 16/30] m68k: Add all access modes and data sizes to some 680x0 instructions

2015-08-12 Thread Richard Henderson
On 08/09/2015 01:13 PM, Laurent Vivier wrote: > case 6: /* cmpi */ > tcg_gen_mov_i32(dest, src1); > tcg_gen_subi_i32(dest, dest, im); > gen_update_cc_add(dest, tcg_const_i32(im)); > -set_cc_op(s, CC_OP_SUB); > +SET_CC_OP(opsize, SUB); > break

[Qemu-devel] [PATCH v3 4/5] block: Drop BlockDriverState.filename

2015-08-12 Thread Max Reitz
That field is now only used during initialization of BlockDriverStates (opening images) and for error or warning messages. Performance is not that much of an issue here, so we can drop the field and replace its use by a call to bdrv_filename() or bdrv_filename_alloc(). By doing so we can ensure the

[Qemu-devel] [PATCH v3 1/5] block: Change bdrv_get_encrypted_filename()

2015-08-12 Thread Max Reitz
Instead of returning a pointer to the filename, copy it into a buffer specified by the caller. Signed-off-by: Max Reitz --- block.c | 25 ++--- include/block/block.h | 2 +- monitor.c | 6 +- 3 files changed, 24 insertions(+), 9 deletions(-) d

[Qemu-devel] [PATCH v3 3/5] block: Add bdrv_filename()

2015-08-12 Thread Max Reitz
Split the part which actually refreshes the BlockDriverState.filename field off of bdrv_refresh_filename() into a more generic function bdrv_filename(), which first calls bdrv_refresh_filename() and then stores a qemu-usable filename into the given buffer instead of BlockDriverState.filename. Sinc

[Qemu-devel] [PATCH v3 2/5] block: Avoid BlockDriverState.filename

2015-08-12 Thread Max Reitz
In places which directly pass a filename to the OS, we should not use the filename field at all but exact_filename instead (although the former currently equals the latter if that is set). In qemu-img's map command, we should be using the filename field; but since this commit prepares to remove th

[Qemu-devel] [PATCH v3 5/5] iotests: Test changed Quorum filename

2015-08-12 Thread Max Reitz
After drive-mirror replacing a Quorum child, the filename of the Quorum BDS should reflect the change. This patch replaces the existing test for whether the operation did actually exchange the BDS (which simply tested whether the new BDS existed) by a test which examines the children list contained

[Qemu-devel] [PATCH v3 0/5] block: Drop BDS.filename

2015-08-12 Thread Max Reitz
This series depends on "[PATCH] block/raw-posix: Use raw_normalize_devicepath()". The BDS filename field is generally only used when opening disk images or emitting error or warning messages, the only exception to this rule is the map command of qemu-img. However, using exact_filename there inste

Re: [Qemu-devel] [RFC PATCH V7 00/19] Multithread TCG.

2015-08-12 Thread Paolo Bonzini
On 12/08/2015 17:19, Frederic Konrad wrote: > BTW that affect KVM as well. Seems this mechanism is used as well with > qemu_cpu_kick_self().. Which is a little strange as it seems the SIGIPI > trigger a > dummy signal handler? > > memset(&sigact, 0, sizeof(sigact)); > sigact.sa_handler =

[Qemu-devel] [PATCH] block/raw-posix: Use raw_normalize_devicepath()

2015-08-12 Thread Max Reitz
The filename given to qemu_open() in block/raw-posix.c should generally have been processed by raw_normalize_devicepath(); unless we are only probing (in which case the caller often checks whether the file is a block device or not, and this property will be changed by raw_normalize_devicepath() on

Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM

2015-08-12 Thread Eric Auger
On 08/12/2015 04:24 PM, Christoffer Dall wrote: > On Wed, Aug 12, 2015 at 4:14 PM, Eric Auger wrote: >> Hi, >> On 08/12/2015 03:23 PM, Christoffer Dall wrote: >>> On Wed, Aug 12, 2015 at 2:59 PM, Peter Maydell >>> wrote: On 12 August 2015 at 13:27, Pavel Fedin wrote: > Hello! > >>

Re: [Qemu-devel] [RFC PATCH V7 00/19] Multithread TCG.

2015-08-12 Thread Frederic Konrad
On 11/08/2015 15:59, Frederic Konrad wrote: On 11/08/2015 14:45, Paolo Bonzini wrote: On 10/08/2015 17:26, fred.kon...@greensocs.com wrote: From: KONRAD Frederic This is the 7th round of the MTTCG patch series. Thanks to look at this. Here is a list of issues that I found: - tb_lock usage

Re: [Qemu-devel] [PATCH for-2.5 15/30] m68k: add more modes to movem

2015-08-12 Thread Richard Henderson
On 08/12/2015 01:07 AM, Andreas Schwab wrote: > Richard Henderson writes: > >> On 08/09/2015 01:13 PM, Laurent Vivier wrote: >>> +opsize = (insn & 0x40) != 0 ? OS_LONG : OS_WORD; >>> +incr = opsize_bytes(opsize); >>> +if (!is_load && (insn & 070) == 040) { >>> +for (i = 15; i

Re: [Qemu-devel] [PATCH] linux-user: elfload: Still use TARGET_PAGE_SIZE for i386 guest

2015-08-12 Thread Richard Henderson
On 08/12/2015 12:59 AM, gchen gchen wrote: >> Nack. There's 99 problems with host page size> guest page size. This >> solves none of them, and in the hackiest way possible. >> > > Under alpha virtual machine, if set i386 guest page size 8KB, it will > cause failure directly (any dynamically link

[Qemu-devel] [PATCH] sh4: Fix initramfs initialization for endiannes-mismatched targets

2015-08-12 Thread Guenter Roeck
If host and target endianness does not match, loding an initramfs does not work. Fix by writing boot parameters with appropriate endianness conversion. Signed-off-by: Guenter Roeck --- hw/sh4/r2d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/sh4/r2d.c b/hw/sh4/r2

Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM

2015-08-12 Thread Eric Auger
Hi, On 08/12/2015 03:23 PM, Christoffer Dall wrote: > On Wed, Aug 12, 2015 at 2:59 PM, Peter Maydell > wrote: >> On 12 August 2015 at 13:27, Pavel Fedin wrote: >>> Hello! >>> I still think this is the wrong approach -- see my remarks in the previous round of patch review. >>> >>> You

Re: [Qemu-devel] [RFC PATCH V7 16/19] translate-all: introduces tb_flush_safe.

2015-08-12 Thread Paolo Bonzini
On 12/08/2015 16:11, Frederic Konrad wrote: >> You could also allocate a new code buffer and free the old one with >> call_rcu. This should simplify things a lot. > > Depending the size of the code buffer this might be a good idea. :). 32 megabytes. Paolo

Re: [Qemu-devel] [RFC v4 1/9] exec.c: Add new exclusive bitmap to ram_list

2015-08-12 Thread alvise rigo
On Wed, Aug 12, 2015 at 4:10 PM, Paolo Bonzini wrote: > > > On 12/08/2015 16:04, alvise rigo wrote: >>> > clear algorithm: >>> >if bytemap[vaddr] == 254 >>> > bytemap[vaddr] = CPU_ID >> Isn't this also required for the clear algorithm? >> >> if bytemap[vaddr] < 254 >> /* this

Re: [Qemu-devel] [Xen-devel] [PATCH v1] xenpt: Properly handle 64-bit bar with more than 4G size

2015-08-12 Thread Konrad Rzeszutek Wilk
On Wed, Aug 12, 2015 at 08:53:44AM +, Wu, Feng wrote: > > > > -Original Message- > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: Wednesday, August 12, 2015 4:43 PM > > To: Wu, Feng > > Cc: stefano.stabell...@eu.citrix.com; xen-de...@lists.xensource.com; > > qemu-devel@nongn

Re: [Qemu-devel] [PATCH] MAINTAINERS: list smbios maintainers

2015-08-12 Thread Wei Huang
On 8/12/15 04:20, Michael S. Tsirkin wrote: Now that smbios has its own directory, list its maintainers. Same people as ACPI so just reuse that entry. Signed-off-by: Michael S. Tsirkin --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAIN

Re: [Qemu-devel] [PATCH] Makefile.target: include top level build dir in vpath

2015-08-12 Thread Michael Marineau
On Aug 12, 2015 6:32 AM, "Paolo Bonzini" wrote: > > > > On 09/08/2015 09:02, Michael Marineau wrote: > > Using ccache with CCACHE_BASEDIR set to $(SRC_PATH) or a parent will > > rewrite all absolute paths to relative paths. This interacts poorly with > > QEMU's two-level build directory scheme. Fo

Re: [Qemu-devel] [PATCH v2] target-cris: update CPU state save/load to use VMStateDescription

2015-08-12 Thread Edgar E. Iglesias
On Fri, Aug 07, 2015 at 05:02:14PM +0100, Peter Maydell wrote: > From: Juan Quintela > > Update the CRIS CPU state save/load to use a VMStateDescription struct > rather than cpu_save/cpu_load functions. > > Have to define TLBSet struct. > Multidimensional arrays in C are a mess, just unroll them

Re: [Qemu-devel] [PATCH v8 3/5] Introduce irqchip type specification for KVM

2015-08-12 Thread Christoffer Dall
On Wed, Aug 12, 2015 at 4:14 PM, Eric Auger wrote: > Hi, > On 08/12/2015 03:23 PM, Christoffer Dall wrote: >> On Wed, Aug 12, 2015 at 2:59 PM, Peter Maydell >> wrote: >>> On 12 August 2015 at 13:27, Pavel Fedin wrote: Hello! > I still think this is the wrong approach -- see my re

[Qemu-devel] [PATCH] hw/misc/zynq_slcr: Change CPU clock rate

2015-08-12 Thread Guenter Roeck
The Linux kernel only accepts 34 Khz and 67 Khz clock rates, and may crash if the actual clock rate is too low. The clock rate used to be (ps-clk-frequency * 26 / 4), which resulted in a CPU frequency of 21 Khz if ps-clk-frequency was set to Hz. Change it to (ps-clk-frequency *

  1   2   >