Re: [Qemu-devel] [PATCH 03/11] target-m68k: Remove incorrect clearing of cc_x

2015-08-14 Thread Andreas Schwab
Richard Henderson writes: > Ah. Except placed here it also applies to and/or/move too. Well, none of those ever overflow in the first place. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something compl

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

2015-08-14 Thread Paolo Bonzini
On 14/08/2015 10:38, Frederic Konrad wrote: >> 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! > here is some

Re: [Qemu-devel] [PATCH v2 6/6] Make pow2ceil() and pow2floor() inline

2015-08-14 Thread Paolo Bonzini
On 24/07/2015 14:33, Peter Maydell wrote: > Since the pow2floor() function is now used in a hot code path, > make it inline; for consistency, provide pow2ceil() as an inline > function too. > > Because these functions use ctz64() we have to put the inline > versions into host-utils.h, so they ha

Re: [Qemu-devel] [PATCH v2 5/6] Remove unused qemu_fls function

2015-08-14 Thread Paolo Bonzini
On 24/07/2015 14:33, Peter Maydell wrote: > Nothing uses qemu_fls() any more, so delete it. > > Signed-off-by: Peter Maydell > --- > include/qemu-common.h | 1 - > util/cutils.c | 5 - > 2 files changed, 6 deletions(-) > > diff --git a/include/qemu-common.h b/include/qemu-common.h

Re: [Qemu-devel] [PATCH v2 4/6] exec.c: Use pow2floor() rather than hand-calculation

2015-08-14 Thread Paolo Bonzini
On 24/07/2015 14:33, Peter Maydell wrote: > Use pow2floor() to round down to the nearest power of 2, > rather than an inline calculation. > > Signed-off-by: Peter Maydell > --- > exec.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/exec.c b/exec.c > index 7d60e15

Re: [Qemu-devel] [PATCH v2 3/6] hw/block/nvme.c: Use pow2ceil() rather than hand-calculation

2015-08-14 Thread Paolo Bonzini
On 24/07/2015 14:33, Peter Maydell wrote: > Use pow2ceil() to round up to the next power of 2, rather > than an inline calculation. > > Signed-off-by: Peter Maydell > --- > hw/block/nvme.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/block/nvme.c b/hw/block/nvme

Re: [Qemu-devel] [PATCH] Move RAMBlock and ram_list to ram_addr.h

2015-08-14 Thread Paolo Bonzini
On 14/08/2015 12:25, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Signed-off-by: Dr. David Alan Gilbert > --- > include/exec/cpu-all.h | 41 - > include/exec/ram_addr.h | 40 > 2 file

Re: [Qemu-devel] [PATCH 03/11] target-m68k: Remove incorrect clearing of cc_x

2015-08-14 Thread Richard Henderson
On Aug 14, 2015 10:04, Andreas Schwab wrote: > > Richard Henderson writes: > > > The CF docs certainly doesnt suggest this is true. > > > > Signed-off-by: Richard Henderson > > --- > >  target-m68k/helper.c | 7 --- > >  1 file changed, 7 deletions(-) > > > > diff --git a/target-m68k/

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

2015-08-14 Thread Marcelo Tosatti
On Fri, Aug 14, 2015 at 09:18:01AM +, Li, Liang Z wrote: > > Subject: Re: [Qemu-devel] about the patch kvmclock Ensure proper env->tsc > > value for kvmclock_current_nsec calculation > > > > > Thanks for your reply, I have read the thread in your email, what's > > > the > > mean of 'swit

[Qemu-devel] [PULL v3 00/19] SCSI, build, TCG, RCU, misc patches for 2015-08-12

2015-08-14 Thread Paolo Bonzini
The following changes since commit cb48f67ad8c7b33c617d4f8144a27706e69fd688: bsd-user: Fix operand to cpu_x86_exec (2015-07-30 12:38:49 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to 9504c5445cb709415aea50995

[Qemu-devel] [Bug 1485010] [NEW] qemu-guest-agent should support systemd in addition to pmutils

2015-08-14 Thread Laurent Bigonville
Public bug reported: Hello, Shouldn't the qemu-guest-agent also support systemd function in addition to the existing call to pm-suspend, shutdown, hwclock? Some machines doesn't have pm-utils at all now. ** Affects: qemu Importance: Undecided Status: New ** Description changed:

[Qemu-devel] [Bug 1484990] [NEW] fsfreeze-hook script should also ignored dpkg generated files

2015-08-14 Thread Laurent Bigonville
Public bug reported: Hello, In the fsfreeze-hook script, the following code check if some of the files should be ignored: # Check whether file $1 is a backup or rpm-generated file and should be ignored is_ignored_file() { case "$1" in *~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.r

Re: [Qemu-devel] Plan for using softmmu with linux-user

2015-08-14 Thread Chen Gang
On 8/14/15 22:44, Richard Henderson wrote: > On 08/14/2015 02:37 AM, gchen gchen wrote: >> - If I implement SW64 tcg backend, I guess, I cann't get help from qemu >>upstream: I don't think SW64 is valuable enough for upstream (either >>I am not sure that I can implment Alpha tcg backend in

Re: [Qemu-devel] [PATCH v1 03/10] xen/pt: Check if reg->init function sets the 'data' past the reg->size

2015-08-14 Thread Konrad Rzeszutek Wilk
On Fri, Jul 17, 2015 at 05:03:44PM +0100, Stefano Stabellini wrote: > On Thu, 2 Jul 2015, Konrad Rzeszutek Wilk wrote: > > It should never happen, but in case it does (an developer adds > > a new register and the 'init_val' expands past the register > > size) we want to report. The code will only w

Re: [Qemu-devel] [PATCH v1 08/10] xen/pt: Make xen_pt_unregister_device idempotent

2015-08-14 Thread Konrad Rzeszutek Wilk
> > @@ -818,10 +819,13 @@ static void xen_pt_unregister_device(PCIDevice *d) > > { > > XenPCIPassthroughState *s = XEN_PT_DEVICE(d); > > uint8_t machine_irq = s->machine_irq; > > -uint8_t intx = xen_pt_pci_intx(s); > > +uint8_t intx; > > int rc; > > > > -if (machine_ir

Re: [Qemu-devel] Help debugging a regression in KVM Module

2015-08-14 Thread Alex Bennée
Peter Lieven writes: > Hi, > > some time a go I stumbled across a regression in the KVM Module that has been > introduced somewhere > between 3.17 and 3.19. > > I have a rather old openSUSE guest with an XFS filesystem which realiably > crashes after some live migrations. > I originally believ

Re: [Qemu-devel] Help debugging a regression in KVM Module

2015-08-14 Thread Peter Lieven
Am 14.08.2015 um 15:01 schrieb Paolo Bonzini: > > - Original Message - >> From: "Peter Lieven" >> To: qemu-devel@nongnu.org, k...@vger.kernel.org >> Cc: "Paolo Bonzini" >> Sent: Friday, August 14, 2015 1:11:34 PM >> Subject: Help debugging a regression in KVM Module >> >> Hi, >> >> some t

Re: [Qemu-devel] [PATCH] configure: Don't permit SDL or GTK on OSX

2015-08-14 Thread Programmingkid
On Aug 14, 2015, at 11:10 AM, Peter Maydell wrote: > The cocoa GUI frontend assumes it is the only GUI (it redefines > main() so it always gets control before the rest of QEMU), so > it does not play well with other UIs like SDL or GTK. (Mostly > people building QEMU on OSX don't have the necessa

Re: [Qemu-devel] [PATCH 0/4] target-arm: Implement missing EL3 (and EL2) registers

2015-08-14 Thread Edgar E. Iglesias
On Fri, Aug 14, 2015 at 06:48:28PM +0100, Peter Maydell wrote: > On 14 August 2015 at 18:42, Edgar E. Iglesias > wrote: > > On Fri, Aug 14, 2015 at 11:12:55AM +0100, Peter Maydell wrote: > >> Ping? > >> > > > > Hi! Sorry for the delay! I'll have a look at this over the weekend. > > Do you happen

[Qemu-devel] [PATCH v3] qemu-doc.texi: Add information on compiling source code on Mac OS X

2015-08-14 Thread Programmingkid
This patch will add information to the documentation web page on how to build Qemu on Mac OS X. Signed-off-by: John Arbuckle --- Add info on additional libraries that need to be installed. qemu-doc.texi | 60 ++-- 1 files changed, 57 inser

[Qemu-devel] [PATCH v2 2/4] scripts/qemu-gdb: Split CoroutineCommand into its own file

2015-08-14 Thread Peter Maydell
Split the implementation of CoroutineCommand into its own file. Signed-off-by: Peter Maydell Reviewed-by: Stefan Hajnoczi --- scripts/qemu-gdb.py | 78 + scripts/qemugdb/coroutine.py | 91 2 files changed,

[Qemu-devel] [PATCH v2 1/4] scripts/qemu-gdb: Split MtreeCommand into its own module

2015-08-14 Thread Peter Maydell
As we add more commands to our Python gdb debugging support, it's going to get unwieldy to have everything in a single file. Split the implementation of the 'mtree' command from qemu-gdb.py into its own module. Signed-off-by: Peter Maydell Reviewed-by: Stefan Hajnoczi --- scripts/qemu-gdb.py

[Qemu-devel] [PATCH v2 4/4] scripts/qemu-gdb: Add brief comment describing usage

2015-08-14 Thread Peter Maydell
Add a brief comment describing how to use the debug support from GDB. Signed-off-by: Peter Maydell --- scripts/qemu-gdb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/qemu-gdb.py b/scripts/qemu-gdb.py index f98cd21..d6f2e5a 100644 --- a/scripts/qemu-gdb.py +++ b/scripts/qemu-g

[Qemu-devel] [PATCH v2 3/4] scripts/qemu-gdb: Silently pass through SIGUSR1

2015-08-14 Thread Peter Maydell
SIGUSR1 is QEMU's IPI signal, and it gets sent a lot, so is best silently passed through to the guest without stopping. Make qemu-gdb.py do this bit of configuration for the user. Signed-off-by: Peter Maydell --- scripts/qemu-gdb.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts

Re: [Qemu-devel] [PATCH 0/4] target-arm: Implement missing EL3 (and EL2) registers

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 18:42, Edgar E. Iglesias wrote: > On Fri, Aug 14, 2015 at 11:12:55AM +0100, Peter Maydell wrote: >> Ping? >> > > Hi! Sorry for the delay! I'll have a look at this over the weekend. > Do you happen to have the patches all applied in a branch somewhere? Unfortunately not at the

[Qemu-devel] [PATCH v2 0/4] scripts/qemu-gdb: Split into modules

2015-08-14 Thread Peter Maydell
This patch series splits scripts/qemu-gdb into separate files for each command, to make it easier to add new commands in future without them all going into a single huge file. Patches 1 and 2 do that split, and have been on the list before (and reviewed by Stefan). Patch 3 makes the script tell g

Re: [Qemu-devel] [PATCH 0/4] target-arm: Implement missing EL3 (and EL2) registers

2015-08-14 Thread Edgar E. Iglesias
On Fri, Aug 14, 2015 at 11:12:55AM +0100, Peter Maydell wrote: > Ping? > Hi! Sorry for the delay! I'll have a look at this over the weekend. Do you happen to have the patches all applied in a branch somewhere? Thanks, Edgar > thanks > -- PMM > > On 30 July 2015 at 19:36, Peter Maydell wrote:

Re: [Qemu-devel] [PATCH v1 0/3] xlnx-zynqmp: Connect the AHCI SATA device

2015-08-14 Thread Alistair Francis
On Mon, Jul 27, 2015 at 11:37 AM, Alistair Francis wrote: > This series connects the AHCI SATA device to the ZynqMP > machine. It requires a restructure of the AHCI file to > make the AHCI state struct visible. It also requires a > small change to object_class_dynamic_cast() to return > NULL if th

Re: [Qemu-devel] [PATCH v1 0/2] MAINTAINERS: Update the MAINTAINERS file

2015-08-14 Thread Alistair Francis
On Fri, Aug 14, 2015 at 10:17 AM, Peter Maydell wrote: > On 14 August 2015 at 18:15, Alistair Francis > wrote: >> On Thu, Jul 16, 2015 at 1:35 PM, Alistair Francis >> wrote: >>> Two simple patches that update the Xilinx related contacts >>> in the maintainer file and add ZynqMP to the file. >> >

Re: [Qemu-devel] [PATCH v1 0/2] MAINTAINERS: Update the MAINTAINERS file

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 18:15, Alistair Francis wrote: > On Thu, Jul 16, 2015 at 1:35 PM, Alistair Francis > wrote: >> Two simple patches that update the Xilinx related contacts >> in the maintainer file and add ZynqMP to the file. > > Ping! > > Both of these have been reviewed Applied to target-

Re: [Qemu-devel] [PATCH v1 0/2] MAINTAINERS: Update the MAINTAINERS file

2015-08-14 Thread Alistair Francis
On Thu, Jul 16, 2015 at 1:35 PM, Alistair Francis wrote: > Two simple patches that update the Xilinx related contacts > in the maintainer file and add ZynqMP to the file. Ping! Both of these have been reviewed Thanks, Alistair > > Alistair Francis (2): > MAINTAINERS: Update Xilinx Maintaine

Re: [Qemu-devel] [PATCH 2/8] qcow2: add dirty-bitmaps feature

2015-08-14 Thread Vladimir Sementsov-Ogievskiy
On 10.06.2015 17:30, Stefan Hajnoczi wrote: On Mon, Jun 08, 2015 at 06:21:20PM +0300, Vladimir Sementsov-Ogievskiy wrote: +ret = bdrv_pread(bs->file, bm->l1_table_offset, l1_table, + bm->l1_size * sizeof(uint64_t)); +if (ret < 0) { +goto fail; +} + +

Re: [Qemu-devel] [PATCH v2 1/1] xlnx-zynqmp: Connect the four OCM banks

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 18:10, Alistair Francis wrote: > On Mon, Jul 13, 2015 at 1:56 PM, Alistair Francis > wrote: >> On Mon, Jul 13, 2015 at 12:48 PM, Peter Crosthwaite >> wrote: >>> On Mon, Jul 13, 2015 at 11:54 AM, Alistair Francis >>> wrote: The Xilinx EP108 has four separate OCM banks w

Re: [Qemu-devel] [PATCH v2 1/1] xlnx-zynqmp: Connect the four OCM banks

2015-08-14 Thread Alistair Francis
On Mon, Jul 13, 2015 at 1:56 PM, Alistair Francis wrote: > On Mon, Jul 13, 2015 at 12:48 PM, Peter Crosthwaite > wrote: >> On Mon, Jul 13, 2015 at 11:54 AM, Alistair Francis >> wrote: >>> The Xilinx EP108 has four separate OCM banks which are located >>> adjacent to each other. This patch adds t

Re: [Qemu-devel] [PULL 0/2] Block job patches

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 15:55, Jeff Cody wrote: > On Fri, Aug 14, 2015 at 03:51:03PM +0100, Peter Maydell wrote: >> Your pull req tag has not only these two commits in it, >> but also a merge commit ("Merge branch 'block-next' into HEAD). >> Why is that? > I was trying to keep a commit id stable (fo

Re: [Qemu-devel] [PATCH 03/11] target-m68k: Remove incorrect clearing of cc_x

2015-08-14 Thread Andreas Schwab
Richard Henderson writes: > The CF docs certainly doesnt suggest this is true. > > Signed-off-by: Richard Henderson > --- > target-m68k/helper.c | 7 --- > 1 file changed, 7 deletions(-) > > diff --git a/target-m68k/helper.c b/target-m68k/helper.c > index c7b0fbe..6feb4bf 100644 > --- a/tar

Re: [Qemu-devel] [PATCH v2] qemu-doc.texi: Add information on compiling source code on Mac OS X

2015-08-14 Thread Programmingkid
On Aug 14, 2015, at 12:28 PM, Peter Maydell wrote: > On 14 August 2015 at 17:09, Programmingkid wrote: >> >> On Aug 14, 2015, at 11:16 AM, Peter Maydell wrote: >> >>> On 7 August 2015 at 21:57, Programmingkid wrote: Add information on compiling source code on Mac OS X to the documen

Re: [Qemu-devel] [PATCH v2] qemu-doc.texi: Add information on compiling source code on Mac OS X

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 17:09, Programmingkid wrote: > > On Aug 14, 2015, at 11:16 AM, Peter Maydell wrote: > >> On 7 August 2015 at 21:57, Programmingkid wrote: >>> Add information on compiling source code on Mac OS X >>> to the documentation. >>> >>> Signed-off-by: John Arbuckle >> >>> --- >>> qe

[Qemu-devel] [mttcg RFC v4 0/6] Atomic slow-path for mttcg

2015-08-14 Thread Alvise Rigo
This is just an update with the relevant patches needed to port the v4 of "Slow-path for atomic instruction translation" to mttcg v7. The full source code is available at the following GIT repository: https://git.virtualopensystems.com/dev/qemu-mt.git branch: slowpath-for-atomic-v4-mttcg The [PATC

[Qemu-devel] [mttcg RFC v4 5/6] softmmu_template.h: move to multithreading

2015-08-14 Thread Alvise Rigo
Exploiting the tcg_excl_access_lock, port the helper_{le,be}_st_name to work in real multithreading. Suggested-by: Jani Kokkonen Suggested-by: Claudio Fontana Signed-off-by: Alvise Rigo --- softmmu_template.h | 36 ++-- 1 file changed, 30 insertions(+), 6 deleti

[Qemu-devel] [mttcg RFC v4 6/6] target-arm: Use a runtime helper for excl accesses

2015-08-14 Thread Alvise Rigo
Instead of using TCG's load and store instructions, use a runtime helper as a hook for the slow-path. This is a proof of concept to verify that this approach is actually working. At the moment only the 32bit STREX is relying on this new code-path and it's working as expected. Signed-off-by: Alvis

Re: [Qemu-devel] [PATCH v2] qemu-doc.texi: Add information on compiling source code on Mac OS X

2015-08-14 Thread Programmingkid
On Aug 14, 2015, at 11:16 AM, Peter Maydell wrote: > On 7 August 2015 at 21:57, Programmingkid wrote: >> Add information on compiling source code on Mac OS X >> to the documentation. >> >> Signed-off-by: John Arbuckle > >> --- >> qemu-doc.texi | 44 +-

[Qemu-devel] [mttcg RFC v4 3/6] exec: ram_addr: Fix exclusive bitmap accessor

2015-08-14 Thread Alvise Rigo
Signed-off-by: Alvise Rigo --- include/exec/ram_addr.h | 61 + 1 file changed, 51 insertions(+), 10 deletions(-) diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index 6b678d6..34bb486 100644 --- a/include/exec/ram_addr.h +++ b/includ

[Qemu-devel] [mttcg RFC v4 1/6] cpus: async_run_on_cpu: kick only if needed

2015-08-14 Thread Alvise Rigo
In some unique situations a vCPU can be kicked even if it's not ready to execute TCG code i.e. when current_tb has never been set before. This can happen with the atomic stress test (not kvm-unit-test based), where a vCPU can query some work to a not yet started vCPU. Signed-off-by: Alvise Rigo -

[Qemu-devel] [mttcg RFC v4 2/6] cputlb: wrap tlb_flush with the a new function

2015-08-14 Thread Alvise Rigo
Introduce the new tlb_query_flush_cpu function to query a TLB flush to a given vCPU. The function takes care to check and set a new flag (pending_tlb_flush) to avoid unnecessary flushes. Signed-off-by: Alvise Rigo --- cputlb.c| 21 - include/exec/exec-all.h |

[Qemu-devel] [mttcg RFC v4 4/6] softmmu_llsc_template.h: move to multithreading

2015-08-14 Thread Alvise Rigo
Update the TCG LL/SC helpers to work in multi-threading. The basic idea remains untouched, but the whole mechanism takes now into account of the multiple, concurrent, vCPUs execution. In essence, if a vCPU does a LL it checks the vCPUs that have not the excl bit set for the accessed page. For thos

Re: [Qemu-devel] [PULL 0/2] Block patches

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 15:41, Stefan Hajnoczi wrote: > The following changes since commit 2be4f242b50a84bf360df02480b173bfed161107: > > Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into > staging (2015-08-04 16:51:24 +0100) > > are available in the git repository at: > >

Re: [Qemu-devel] [PATCH 00/11] Proposed format for m68k flags

2015-08-14 Thread Laurent Vivier
Le 14/08/2015 16:59, Richard Henderson a écrit : > As promised a couple of days ago, with the addition of CC_OP_CMP, > which wasn't in the text of my proposal the other day. From the > looks of the generated code, I believe this is ideal. > > The following is based on Laurent's 8/30 Update cpu

Re: [Qemu-devel] [PATCH] configure: Don't permit SDL or GTK on OSX

2015-08-14 Thread Daniel P. Berrange
On Fri, Aug 14, 2015 at 04:10:52PM +0100, Peter Maydell wrote: > The cocoa GUI frontend assumes it is the only GUI (it redefines > main() so it always gets control before the rest of QEMU), so > it does not play well with other UIs like SDL or GTK. (Mostly > people building QEMU on OSX don't have t

[Qemu-devel] [PULL 0/3] Net patches

2015-08-14 Thread Stefan Hajnoczi
The following changes since commit e95edefbd0559e1d0aa09549641b5d9af1f96fac: Merge remote-tracking branch 'remotes/sstabellini/tags/xen-migration-2.4-tag' into staging (2015-08-03 17:33:35 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git tags/net-pull-reques

[Qemu-devel] [PATCH 01/11] target-m68k: Print flags properly

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/cpu.h | 1 + target-m68k/helper.c| 2 +- target-m68k/translate.c | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h index 6d1a140..9708615 100644 --- a/target-m68k/cpu.h +++ b/ta

Re: [Qemu-devel] [PATCH] spice: Allow to set password even if disable-ticketing was used

2015-08-14 Thread Christophe Fergeau
On Fri, Aug 14, 2015 at 03:35:21PM +0100, Daniel P. Berrange wrote: > On Fri, Aug 14, 2015 at 02:47:15PM +0200, Christophe Fergeau wrote: > > Before commit b1ea7b79e1, it was possible to start with -spice > > disable-ticketing, and then use the "set_password spice" command to > > enable ticketing w

[Qemu-devel] [PATCH 09/11] target-m68k: Optimize gen_flush_flags

2015-08-14 Thread Richard Henderson
--- target-m68k/translate.c | 56 + 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 6f60c6f..19097c2 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -461,18

Re: [Qemu-devel] [PATCH v2] qemu-doc.texi: Add information on compiling source code on Mac OS X

2015-08-14 Thread Peter Maydell
On 7 August 2015 at 21:57, Programmingkid wrote: > Add information on compiling source code on Mac OS X > to the documentation. > > Signed-off-by: John Arbuckle > --- > qemu-doc.texi | 44 +--- > 1 files changed, 41 insertions(+), 3 deletions(-) > > dif

[Qemu-devel] [PATCH] configure: Don't permit SDL or GTK on OSX

2015-08-14 Thread Peter Maydell
The cocoa GUI frontend assumes it is the only GUI (it redefines main() so it always gets control before the rest of QEMU), so it does not play well with other UIs like SDL or GTK. (Mostly people building QEMU on OSX don't have the necessary dependencies available for configure to build those other

[Qemu-devel] [PATCH v2] spice: Allow to set password even if disable-ticketing was used

2015-08-14 Thread Christophe Fergeau
Before commit b1ea7b79e1, it was possible to start with -spice disable-ticketing, and then use the "set_password spice" command to enable ticketing with SPICE. Since commit b1ea7b79e1 this is no longer possible as qemu_spice_set_ticket() will return an error unless the 'auth' type is "spice". When

[Qemu-devel] [PULL 2/3] tests: introduce basic pci test for virtio-net

2015-08-14 Thread Stefan Hajnoczi
From: Jason Wang Signed-off-by: Jason Wang Reviewed-by: Fam Zheng Message-id: 1437117954-16342-1-git-send-email-jasow...@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/Makefile | 2 +- tests/virtio-net-test.c | 185 ++-- 2 files chan

[Qemu-devel] [PATCH 04/11] target-m68k: Replace helper_xflag_lt with setcond

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/helper.c| 5 - target-m68k/helper.h| 1 - target-m68k/translate.c | 14 +++--- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 6feb4bf..a032947 100644 --- a/tar

[Qemu-devel] [PATCH 06/11] target-m68k: Introduce DisasCompare

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/translate.c | 82 - 1 file changed, 60 insertions(+), 22 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index b0cb39d..ce48e2a 100644 --- a/target-m68k/translate.c +++ b/

[Qemu-devel] [PATCH 02/11] target-m68k: Some fixes to SR and flags management

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/cpu.h | 3 ++- target-m68k/helper.c| 17 +++-- target-m68k/op_helper.c | 5 +++-- target-m68k/translate.c | 2 +- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h index 9

[Qemu-devel] [PULL 3/3] tests: test rx recovery from cont

2015-08-14 Thread Stefan Hajnoczi
From: Jason Wang Rx should be recovered after cont. Signed-off-by: Jason Wang Message-id: 1437117954-16342-2-git-send-email-jasow...@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/virtio-net-test.c | 52 + 1 file changed, 52 insertions(+)

[Qemu-devel] [PATCH 05/11] target-m68k: Reorg flags handling

2015-08-14 Thread Richard Henderson
Separate all ccr bits. Continue to batch updates via cc_op. Signed-off-by: Richard Henderson --- target-m68k/cpu.c | 2 +- target-m68k/cpu.h | 46 +++--- target-m68k/helper.c| 400 +--- target-m68k/helper.h| 6 +- target-m68k/

[Qemu-devel] [PATCH v2 15/18] nvdimm: support NFIT_CMD_GET_CONFIG_SIZE function

2015-08-14 Thread Xiao Guangrong
Function 4 is used to get Namespace lable size Signed-off-by: Xiao Guangrong --- hw/mem/nvdimm/acpi.c | 70 1 file changed, 70 insertions(+) diff --git a/hw/mem/nvdimm/acpi.c b/hw/mem/nvdimm/acpi.c index 20aefce..0a5f2c2 100644 --- a/hw/mem/n

[Qemu-devel] [PATCH 08/11] target-m68k: Optimize some comparisons

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/translate.c | 108 +--- 1 file changed, 102 insertions(+), 6 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 28c3e1e..6f60c6f 100644 --- a/target-m68k/translate.c +++ b/

[Qemu-devel] [PATCH 11/11] target-m68k: Inline addx, subx, negx

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/helper.c| 40 - target-m68k/helper.h| 2 -- target-m68k/translate.c | 67 + 3 files changed, 56 insertions(+), 53 deletions(-) diff --git a/target-m68k/helper.c b

[Qemu-devel] [PULL 1/3] net/vmxnet3: Fix incorrect debug message

2015-08-14 Thread Stefan Hajnoczi
From: Dana Rubin From: Dana Rubin In commit 80da311d81, "net/vmxnet3: Fix RX TCP/UDP checksum on partially summed packets" a debug message was introduced in vmxnet3_rx_need_csum_calculate() for an unlikely input condition. The message accidentally printed 'len' variable instead of 'pkt_len'

[Qemu-devel] [PATCH 03/11] target-m68k: Remove incorrect clearing of cc_x

2015-08-14 Thread Richard Henderson
The CF docs certainly doesnt suggest this is true. Signed-off-by: Richard Henderson --- target-m68k/helper.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index c7b0fbe..6feb4bf 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @

Re: [Qemu-devel] Win32 stdio not working if SDL is enabled

2015-08-14 Thread Liviu Ionescu
> On 14 Aug 2015, at 15:15, Daniel P. Berrange wrote: > > On Fri, Aug 14, 2015 at 12:14:15PM +0100, Daniel P. Berrange wrote: >> On Thu, Aug 13, 2015 at 07:48:47PM +0200, Stefan Weil wrote: >>> ... that's a feature of SDL 1.2: stdout and stderr are by default >>> redirected to files stdout.txt a

[Qemu-devel] [PATCH 00/11] Proposed format for m68k flags

2015-08-14 Thread Richard Henderson
As promised a couple of days ago, with the addition of CC_OP_CMP, which wasn't in the text of my proposal the other day. From the looks of the generated code, I believe this is ideal. The following is based on Laurent's 8/30 Update cpu flags management. FWIW, there's something in the last patch

[Qemu-devel] [PATCH v2 11/18] nvdimm: build ACPI nvdimm devices

2015-08-14 Thread Xiao Guangrong
NVDIMM devices is defined in ACPI 6.0 9.20 NVDIMM Devices This is a root device under \_SB and specified NVDIMM device are under the root device. Each NVDIMM device has _ADR which return its handle used to associate MEMDEV table in NFIT We reserve handle 0 for root device. In this patch, we save

[Qemu-devel] [PATCH v2 10/18] nvdimm: init the address region used by DSM method

2015-08-14 Thread Xiao Guangrong
This memory range is used to transfer data between ACPI in guest and Qemu, it occupies two pages: - one is RAM-based used to save the input info of _DSM method and Qemu reuse it store output info - another one is MMIO-based, ACPI write data to this page to transfer the control to Qemu Signed-

[Qemu-devel] [PATCH v2 18/18] nvdimm: add maintain info

2015-08-14 Thread Xiao Guangrong
Add NVDIMM maintainer Signed-off-by: Xiao Guangrong --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 978b717..86786e6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -793,6 +793,12 @@ M: Jiri Pirko S: Maintained F: hw/net/rocker/ +NVDIM

[Qemu-devel] [PATCH 10/11] target-m68k: Inline shifts

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/helper.c| 52 --- target-m68k/helper.h| 3 -- target-m68k/translate.c | 94 + 3 files changed, 72 insertions(+), 77 deletions(-) diff --git a/target-m68k/helper.c b/t

[Qemu-devel] [PATCH 07/11] target-m68k: Use setcond for scc

2015-08-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/translate.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index ce48e2a..28c3e1e 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -88

[Qemu-devel] [PATCH v2 16/18] nvdimm: support NFIT_CMD_GET_CONFIG_DATA

2015-08-14 Thread Xiao Guangrong
Function 5 is used to get Namespace Label Data Signed-off-by: Xiao Guangrong --- hw/mem/nvdimm/acpi.c | 32 1 file changed, 32 insertions(+) diff --git a/hw/mem/nvdimm/acpi.c b/hw/mem/nvdimm/acpi.c index 0a5f2c2..517d710 100644 --- a/hw/mem/nvdimm/acpi.c +++ b/h

[Qemu-devel] [PATCH v2 14/18] nvdimm: support NFIT_CMD_IMPLEMENTED function

2015-08-14 Thread Xiao Guangrong
__DSM is defined in ACPI 6.0: 9.14.1 _DSM (Device Specific Method) Function 0 is a query function. We do not support any function on root device and only 3 functions are support for NVDIMM device, NFIT_CMD_GET_CONFIG_SIZE, NFIT_CMD_GET_CONFIG_DATA and NFIT_CMD_SET_CONFIG_DATA, that means we curren

[Qemu-devel] [PATCH v2 06/18] pc: implement NVDIMM device abstract

2015-08-14 Thread Xiao Guangrong
Introduce "pc-nvdimm" device and it has two parameters: - @file, which is the backed memory file for NVDIMM device - @configdata, specify if we need to reserve 128k at the end of @file for nvdimm device's config data. Default is false If @configdata is false, Qemu will build a static and readon

[Qemu-devel] [PATCH v2 00/18] implement vNVDIMM

2015-08-14 Thread Xiao Guangrong
Changlog: - Use litten endian for DSM method, thanks for Stefan's suggestion - introduce a new parameter, @configdata, if it's false, Qemu will build a static and readonly namespace in memory and use it serveing for DSM GET_CONFIG_SIZE/GET_CONFIG_DATA requests. In this case, no reserved regi

[Qemu-devel] [PATCH v2 17/18] nvdimm: support NFIT_CMD_SET_CONFIG_DATA

2015-08-14 Thread Xiao Guangrong
Function 6 is used to set Namespace Label Data Signed-off-by: Xiao Guangrong --- hw/mem/nvdimm/acpi.c | 40 1 file changed, 40 insertions(+) diff --git a/hw/mem/nvdimm/acpi.c b/hw/mem/nvdimm/acpi.c index 517d710..283228d 100644 --- a/hw/mem/nvdimm/acpi.c

[Qemu-devel] [PATCH v2 12/18] nvdimm: save arg3 for NVDIMM device _DSM method

2015-08-14 Thread Xiao Guangrong
Check if the function (Arg2) has additional input info (arg3) and save the info if needed We only do the save on NVDIMM device since we are not going to support any function on root device Signed-off-by: Xiao Guangrong --- hw/mem/nvdimm/acpi.c | 73 ++

[Qemu-devel] [PATCH v2 08/18] nvdimm: init backend memory mapping and config data area

2015-08-14 Thread Xiao Guangrong
The parameter @file is used as backed memory for NVDIMM which is divided into two parts if @dataconfig is true: - first parts is (0, size - 128K], which is used as PMEM (Persistent Memory) - 128K at the end of the file, which is used as Config Data Area, it's used to store Label namespace data

[Qemu-devel] [PATCH v2 05/18] acpi: add aml_create_field

2015-08-14 Thread Xiao Guangrong
Implement CreateField term which are used by NVDIMM _DSM method in later patch Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 14 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 15 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index a5

[Qemu-devel] [PATCH v2 13/18] nvdimm: build namespace config data

2015-08-14 Thread Xiao Guangrong
If @configdata is false, Qemu will build a static and readonly namespace in memory and use it serveing for DSM GET_CONFIG_SIZE/GET_CONFIG_DATA requests Signed-off-by: Xiao Guangrong --- hw/mem/Makefile.objs | 3 +- hw/mem/nvdimm/acpi.c | 10 ++ hw/mem/nvdimm/internal.h | 12 ++

[Qemu-devel] [PATCH v2 07/18] nvdimm: reserve address range for NVDIMM

2015-08-14 Thread Xiao Guangrong
NVDIMM reserves all the free range above 4G to do: - Persistent Memory (PMEM) mapping - implement NVDIMM ACPI device _DSM method Signed-off-by: Xiao Guangrong --- hw/i386/pc.c | 12 ++-- hw/mem/nvdimm/pc-nvdimm.c | 13 + include/hw/mem/pc-nvdimm.h | 1 + 3 fil

[Qemu-devel] [PATCH v2 04/18] acpi: add aml_sizeof

2015-08-14 Thread Xiao Guangrong
Implement SizeOf term which is used by NVDIMM _DSM method in later patch Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 9e89efc..a526eed

[Qemu-devel] [PATCH v2 02/18] i386/acpi-build: allow SSDT to operate on 64 bit

2015-08-14 Thread Xiao Guangrong
Only 512M is left for MMIO below 4G and that are used by PCI, BIOS etc. Other components also reserve regions from their internal usage, e.g, [0xFED0, 0xFED0 + 0x400) is reserved for HPET Switch SSDT to 64 bit to use the huge free room above 4G. In the later patches, we will dynamical allo

[Qemu-devel] [PATCH v2 09/18] nvdimm: build ACPI NFIT table

2015-08-14 Thread Xiao Guangrong
NFIT is defined in ACPI 6.0: 5.2.25 NVDIMM Firmware Interface Table (NFIT) Currently, we only support PMEM mode. Each device has 3 tables: - SPA table, define the PMEM region info - MEM DEV table, it has the @handle which is used to associate specified ACPI NVDIMM device we will introduce in l

[Qemu-devel] [PATCH v2 03/18] acpi: add aml_derefof

2015-08-14 Thread Xiao Guangrong
Implement DeRefOf term which is used by NVDIMM _DSM method in later patch Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 02f9e3d..9e89efc

[Qemu-devel] [PATCH v2 01/18] acpi: allow aml_operation_region() working on 64 bit offset

2015-08-14 Thread Xiao Guangrong
Currently, the offset in OperationRegion is limited to 32 bit, extend it to 64 bit so that we can switch SSDT to 64 bit in later patch Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 2 +- include/hw/acpi/aml-build.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] [PULL 0/2] Block job patches

2015-08-14 Thread Jeff Cody
On Fri, Aug 14, 2015 at 03:51:03PM +0100, Peter Maydell wrote: > On 14 August 2015 at 14:57, Jeff Cody wrote: > > The following changes since commit be1f13ac9d9fc21908975460652a72f5f0c018c5: > > > > Merge remote-tracking branch 'remotes/lalrae/tags/mips-20150813' into > > staging (2015-08-13 17

Re: [Qemu-devel] [PULL 0/2] Block job patches

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 14:57, Jeff Cody wrote: > The following changes since commit be1f13ac9d9fc21908975460652a72f5f0c018c5: > > Merge remote-tracking branch 'remotes/lalrae/tags/mips-20150813' into > staging (2015-08-13 17:47:44 +0100) > > are available in the git repository at: > > > g...@gi

Re: [Qemu-devel] [Qemu-block] RFC cdrom in own thread?

2015-08-14 Thread Peter Lieven
Am 14.08.2015 um 16:08 schrieb Kevin Wolf: > Am 14.08.2015 um 15:43 hat Peter Lieven geschrieben: >> Am 22.06.2015 um 23:54 schrieb John Snow: >>> On 06/22/2015 09:09 AM, Peter Lieven wrote: Am 22.06.2015 um 11:25 schrieb Stefan Hajnoczi: > On Fri, Jun 19, 2015 at 2:14 PM, Peter Lieven wr

Re: [Qemu-devel] Plan for using softmmu with linux-user

2015-08-14 Thread Richard Henderson
On 08/14/2015 02:37 AM, gchen gchen wrote: > - If I implement SW64 tcg backend, I guess, I cann't get help from qemu >upstream: I don't think SW64 is valuable enough for upstream (either >I am not sure that I can implment Alpha tcg backend in working time). It'll need some updating to app

[Qemu-devel] [PULL 2/2] throttle: add throttle_max_is_missing_limit() test

2015-08-14 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia Message-id: 1438683733-2-3-git-send-email-stefa...@redhat.com --- tests/test-throttle.c | 21 + 1 file changed, 21 insertions(+) diff --git a/tests/test-throttle.c b/tests/test-throttle.c index 0168445..85c9b6c 1

[Qemu-devel] [PULL 0/2] Block patches

2015-08-14 Thread Stefan Hajnoczi
The following changes since commit 2be4f242b50a84bf360df02480b173bfed161107: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-08-04 16:51:24 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git tags/block-pull-request for

[Qemu-devel] [PULL 1/2] throttle: refuse bps_max/iops_max without bps/iops

2015-08-14 Thread Stefan Hajnoczi
The bps_max/iops_max values are meaningless without corresponding bps/iops values. Reported an error if bps_max/iops_max is given without bps/iops. Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia Message-id: 1438683733-2-2-git-send-email-stefa...@redhat.com --- blockdev.c

Re: [Qemu-devel] [PATCH] spice: Allow to set password even if disable-ticketing was used

2015-08-14 Thread Daniel P. Berrange
On Fri, Aug 14, 2015 at 02:47:15PM +0200, Christophe Fergeau wrote: > Before commit b1ea7b79e1, it was possible to start with -spice > disable-ticketing, and then use the "set_password spice" command to > enable ticketing with SPICE. Since commit b1ea7b79e1 this is no longer > possible as qemu_spic

Re: [Qemu-devel] [PATCH] spice: Allow to set password even if disable-ticketing was used

2015-08-14 Thread Christophe Fergeau
On Fri, Aug 14, 2015 at 03:04:48PM +0100, Daniel P. Berrange wrote: > Hmm, is oVirt using this via libvirt ? If so, I guess we have to fix > it, as that would be a break in current usage. Yes this is done through libvirt. Before commit qemu-2.1.0-rc2~11^2, you could use virsh update-device with

Re: [Qemu-devel] [PULL v2 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 15:21, Paolo Bonzini wrote: > > > On 14/08/2015 15:53, Peter Maydell wrote: >> Hi; I'm afraid this failed to build on my w32 config: >> >> /home/petmay01/linaro/qemu-for-merges/block/dmg.c:1: warning: -fPIC >> ignored for target (all code is position independent) >> >> (I have

[Qemu-devel] [Bug 1484925] Re: Segfault with custom vnc client

2015-08-14 Thread Daniel Berrange
Can you attach GDB to your qemu-dm process and attempt to capture a full stack trace when it crashes (ie thread apply all backtrace) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1484925 Title: Seg

  1   2   >