Re: [Qemu-devel] [PATCH v2 08/21] pci_ids: add intel 82801BA pci-to-pci bridge id and PCI_CLASS_SERIAL_SMBUS

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 3:30 AM, Jason Baron wrote: > From: Isaku Yamahata > > Adds pci id constants which will be used by q35. > > [jba...@redhat.com: move #define PCI_CLASS_SERIAL_SMBUS to another patch] > Signed-off-by: Isaku Yamahata > Signed-off-by: Jason Baron > --- > hw/pci_ids.h |1

Re: [Qemu-devel] [PATCH v2 20/21] q35: automatically load the q35 dsdt table

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 3:30 AM, Jason Baron wrote: > From: Jason Baron > > Automatically, locate the required q35 dsdt table on load. Otherwise we error > out. This could be done in the bios, but its harder to produce a good error > message. > > Signed-off-by: Jason Baron > --- > hw/pc.c |

Re: [Qemu-devel] [PATCH 4/4] pseries: Implement qemu initiated shutdowns using EPOW events

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 4:17 AM, David Gibson wrote: > At present, using 'system_powerdown' from the monitor or otherwise > instructing qemu to (cleanly) shut down a pseries guest will not work, > because we did not have a method of signalling the shutdown request to the > guest. > > PAPR does incl

Re: [Qemu-devel] [PATCH 2/2] hw: Add test device for unittests execution v4

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 1:03 PM, Lucas Meneghel Rodrigues wrote: > Add a test device which supports the kvmctl ioports, > so one can run the KVM unittest suite. > > Intended Usage: > > qemu-system-x86_64 -device pc-testdev -serial stdio \ > -device isa-debugexit,iobase=0xf4,access-size=4 \ > -kern

Re: [Qemu-devel] [RFC PATCH v3 06/19] Implement "-dimm" command line option

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 5:04 PM, Vasilis Liaskovitis wrote: > Hi, > > sorry for the delayed answer. > > On Sat, Sep 29, 2012 at 11:13:04AM +0000, Blue Swirl wrote: >> > >> > The "-dimm" option is supposed to specify the dimm/memory layout, and not &g

Re: [Qemu-devel] [PATCH v2 24/26] target-sparc: rename helper flags

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 7:56 PM, Aurelien Jarno wrote: > Rename helper flags to the new ones. This is purely a mechanical change, > it's possible to use better flags by looking at the helpers. > > Cc: Blue Swirl > Signed-off-by: Aurelien Jarno Acked-by: Blue Swirl &

Re: [Qemu-devel] [RFC v2 2/6] ARM: KVM: Add support for KVM on ARM architecture

2012-10-13 Thread Blue Swirl
On Wed, Oct 10, 2012 at 3:07 PM, Peter Maydell wrote: > From: Christoffer Dall > > Add basic support for KVM on ARM architecture. > > Signed-off-by: Christoffer Dall > [PMM: Minor tweaks and code cleanup, switch to ONE_REG] > Signed-off-by: Peter Maydell > --- > hw/arm_pic.c | 28

Re: [Qemu-devel] [RFC v1 4/7] pci: switch iommu to using the memory API

2012-10-13 Thread Blue Swirl
On Thu, Oct 11, 2012 at 1:27 PM, Avi Kivity wrote: > Instead of requesting a DMAContext from the bus implementation, use a > MemoryRegion. This can be initialized using memory_region_init_iommu() > (or memory_region_init_alias() for simple, static translations). > > Add a destructor, since setups

Re: [Qemu-devel] [RFC v1 1/7] memory: fix address space initialization/destruction

2012-10-13 Thread Blue Swirl
On Thu, Oct 11, 2012 at 1:33 PM, Avi Kivity wrote: > On 10/11/2012 03:31 PM, Paolo Bonzini wrote: >> Il 11/10/2012 15:26, Avi Kivity ha scritto: >>> A couple of fields were left uninitialized. This was not observed earlier >>> because all address spaces were statically allocated. Also free alloc

Re: [Qemu-devel] [RFC v1 3/7] memory: iommu support

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 2:45 AM, Benjamin Herrenschmidt wrote: > On Thu, 2012-10-11 at 15:42 +0200, Paolo Bonzini wrote: >> Il 11/10/2012 15:26, Avi Kivity ha scritto: >> > +struct MemoryRegionIOMMUOps { >> > +/* Returns a TLB entry that contains a given address. */ >> > +IOMMUTLBEntry (*t

Re: [Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall()

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 6:24 PM, wrote: > From: Riku Voipio > > Currently linux-user handles system calls with a 3000+ line switch/case > construct > in do_syscall(). Some syscalls are implemented inline in the switch/case, > others > as separate functions, and the rest as mix of both. > > As

Re: [Qemu-devel] [PATCH 00/20] target-sparc: Cleanup handling of temps

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 10:04 PM, Richard Henderson wrote: > The primary goal of this patch set is to have all references to windowed > registers to go through new routines that have access to DisasContext. > This is a prerequisite to any change in how windowed registers might be > managed. > > Sin

Re: [Qemu-devel] [PATCH V7 0/4] libqblock qemu block layer library

2012-10-13 Thread Blue Swirl
On Sat, Oct 13, 2012 at 5:10 AM, Wenchao Xia wrote: > From: Wenchao Xia > > These patches introduce libqblock API, make libqblock.la and make > check-libqblock could build this library. > Functionalities: > 1 create a new image. > 2 sync access of an image. > 3 basic image information retrie

Re: [Qemu-devel] [PATCH 1/4] exec: Split up and tidy code_gen_buffer

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 9:20 PM, Richard Henderson wrote: > It now consists of: > > A macro definition of MAX_CODE_GEN_BUFFER_SIZE with host-specific values, > > A function size_code_gen_buffer that applies most of the reasoning for > choosing a buffer size, > > Three variations of a function allo

Re: [Qemu-devel] [PATCH 0/4] target-sparc: More CC cleanups

2012-10-13 Thread Blue Swirl
Thanks, applied all. On Tue, Oct 9, 2012 at 9:49 PM, Richard Henderson wrote: > The first patch is a bug fix for the previous series, > already posted. > > The second patch improves the common cases of using > andcc or orcc to test bits in a register. It also > just so happens to show potential

Re: [Qemu-devel] [PATCH v2 00/13] tcg-sparc fixes and improvements

2012-10-13 Thread Blue Swirl
On Wed, Oct 10, 2012 at 4:02 PM, Richard Henderson wrote: > Changes v2->v2 > * Rebase vs master, which now includes all dependencies. > * Patch 7 has had braces fixed. > > Tree available at > > git://github.com/rth7680/qemu.git tcg-sparc > > > r~ > > > Richard Henderson (13): > target-spar

Re: [Qemu-devel] [PATCH v2 0/5] target-sparc: Preparations for CPUState part 4b series

2012-10-13 Thread Blue Swirl
s://github.com/afaerber/qemu-cpu/commits/qom-cpu-sparc > > Regards, > Andreas > > Cc: Blue Swirl > > Cc: Richard Henderson > > v1 -> v2: > * Cherry-picked sparc patches from QOM CPUState part 4 series. > * Expanded commit messages, no functional changes. &

Re: [Qemu-devel] [PATCH 0/3] vga: add mmio bar

2012-10-13 Thread Blue Swirl
On Thu, Oct 11, 2012 at 11:43 AM, Gerd Hoffmann wrote: > On 09/27/12 09:47, Gerd Hoffmann wrote: >> Hi, >> >> This patch series adds a mmio bar to the standard vga. It also drops >> a file into docs/specs/ describing the mmio bar and the other properties >> of the qemu standard vga and does a l

Re: [Qemu-devel] [PATCH 0/7] Add LOG_GUEST_ERROR for reporting guest bugs

2012-10-14 Thread Blue Swirl
On Sun, Oct 14, 2012 at 1:11 PM, Peter Maydell wrote: > This patch series introduces a new logging category to > qemu_log_mask(), for reporting situations which the device > model can cope with but which indicate bugs in the guest. > The most common cause of these is "guest tried to access > a reg

Re: [Qemu-devel] [PATCH 0/7] Add LOG_GUEST_ERROR for reporting guest bugs

2012-10-14 Thread Blue Swirl
On Sun, Oct 14, 2012 at 3:41 PM, Peter Maydell wrote: > On 14 October 2012 15:02, Blue Swirl wrote: >> On Sun, Oct 14, 2012 at 1:11 PM, Peter Maydell >> wrote: >>> One question that comes to mind -- should we include qemu-log.h >>> in qemu-common.h (or some

[Qemu-devel] [PATCH 00/11] static patches

2012-10-14 Thread Blue Swirl
I made a small tool to detect unused functions and variables. Here's some fixes. Blue Swirl (11): target-sparc: make do_unaligned_access static vl.c: add missing static vnc: add missing static and remove unused functions tap-win32: avoid a warning m48t59: remove unused m48t59_set

[Qemu-devel] [PATCH 01/11] target-sparc: make do_unaligned_access static

2012-10-14 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/cpu.h |3 --- target-sparc/ldst_helper.c |8 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 214d01d..b4eda18 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h

[Qemu-devel] [PATCH 02/11] vl.c: add missing static

2012-10-14 Thread Blue Swirl
Add missing 'static' qualifiers and remove unused pcmcia_socket_unregister(). Signed-off-by: Blue Swirl --- hw/pcmcia.h |1 - sysemu.h|5 - vl.c| 33 - 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/hw/pcm

Re: [Qemu-devel] [PATCH 00/11] static patches

2012-10-14 Thread Blue Swirl
On Sun, Oct 14, 2012 at 7:58 PM, Blue Swirl wrote: > I made a small tool to detect unused functions and > variables. Here's some fixes. Just run the attached tool in an object directory and after some time, it will produce a list of suspect symbols: AES_decrypt ( ./aes.o) AES_encryp

Re: [Qemu-devel] [PATCH] configure: Disable (clang) initializer-overrides warnings

2012-10-14 Thread Blue Swirl
recognize. (For compilers that don't accept-and-ignore the flag > configure will identify this and not use it.) > > Blue Swirl previously submitted a patch which enabled this flag > (among others): > http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg04203.html In my version,

[Qemu-devel] [PATCH 03/11] vnc: add missing static and remove unused functions

2012-10-14 Thread Blue Swirl
Add missing 'static' qualifiers. Remove unused functions vnc_stop_worker_thread(), vnc_has_job() and vnc_jobs_clear(). Signed-off-by: Blue Swirl --- console.h |2 -- ui/vnc-jobs.c | 46 +- ui/vnc-jobs.h |4 ui/vnc.c

[Qemu-devel] [PATCH 09/11] target-ppc: make some functions static

2012-10-14 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-ppc/cpu.h|6 -- target-ppc/mmu_helper.c | 11 ++- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index d3ada54..ab88b33 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h

[Qemu-devel] [PATCH 11/11] exec: make some functions static

2012-10-14 Thread Blue Swirl
Signed-off-by: Blue Swirl --- cpu-common.h|5 - exec-all.h |2 -- exec-obsolete.h |4 exec.c | 19 +++ 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index c0d27af..f51ba67 100644 --- a/cpu

[Qemu-devel] [PATCH 08/11] ppc: add missing static and remove unused functions

2012-10-14 Thread Blue Swirl
Add missing 'static' qualifiers and remove unused functions. This removes 405cr model entirely but it was not accessible before. Signed-off-by: Blue Swirl --- hw/adb.c |8 +- hw/adb.h |4 - hw/mac_nvram.c | 24 hw/nvram.h | 11 --

[Qemu-devel] [PATCH 04/11] tap-win32: avoid a warning

2012-10-14 Thread Blue Swirl
Avoid a warning about missing declaration. Signed-off-by: Blue Swirl --- net/tap-win32.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/net/tap-win32.c b/net/tap-win32.c index f1801e2..7964b45 100644 --- a/net/tap-win32.c +++ b/net/tap-win32.c @@ -30,6 +30,7

[Qemu-devel] [PATCH 06/11] sun4c: remove unused functions

2012-10-14 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/sun4c_intctl.c | 23 --- hw/sun4m.h|4 2 files changed, 0 insertions(+), 27 deletions(-) diff --git a/hw/sun4c_intctl.c b/hw/sun4c_intctl.c index 8dfa5ec..09ef937 100644 --- a/hw/sun4c_intctl.c +++ b/hw/sun4c_intctl.c

Re: [Qemu-devel] [PATCH 10/11] arm: add missing static and remove unused functions

2012-10-14 Thread Blue Swirl
On Sun, Oct 14, 2012 at 8:09 PM, Peter Maydell wrote: > On 14 October 2012 20:58, Blue Swirl wrote: >> index 2fc4137..2c02a83 100644 >> --- a/hw/omap_gpmc.c >> +++ b/hw/omap_gpmc.c >> @@ -871,24 +871,3 @@ void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, >&g

[Qemu-devel] [PATCH 07/11] slirp: remove unused function u_sleep

2012-10-14 Thread Blue Swirl
Signed-off-by: Blue Swirl --- slirp/misc.c | 14 -- slirp/misc.h |1 - 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/slirp/misc.c b/slirp/misc.c index 0bee864..664532a 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -253,20 +253,6 @@ void lprint(const char

[Qemu-devel] [PATCH 10/11] arm: add missing static and remove unused functions

2012-10-14 Thread Blue Swirl
Add missing 'static' qualifiers and remove unused functions. Signed-off-by: Blue Swirl --- hw/devices.h |3 -- hw/i2c.h |3 -- hw/omap.h |1 - hw/omap_gpmc.c| 21 ---

[Qemu-devel] [PATCH 05/11] m48t59: remove unused m48t59_set_addr

2012-10-14 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/m48t59.c |7 --- hw/nvram.h |1 - 2 files changed, 0 insertions(+), 8 deletions(-) diff --git a/hw/m48t59.c b/hw/m48t59.c index dd6cb37..867bbda 100644 --- a/hw/m48t59.c +++ b/hw/m48t59.c @@ -466,13 +466,6 @@ uint32_t m48t59_read (void *opaque

Re: [Qemu-devel] [PATCH 00/11] static patches

2012-10-14 Thread Blue Swirl
On Sun, Oct 14, 2012 at 8:32 PM, malc wrote: > On Sun, 14 Oct 2012, Blue Swirl wrote: > >> On Sun, Oct 14, 2012 at 7:58 PM, Blue Swirl wrote: >> > I made a small tool to detect unused functions and >> > variables. Here's some fixes. >> >> Just r

Re: [Qemu-devel] [PATCH 10/11] arm: add missing static and remove unused functions

2012-10-14 Thread Blue Swirl
On Sun, Oct 14, 2012 at 8:35 PM, Peter Maydell wrote: > On 14 October 2012 21:33, Blue Swirl wrote: >> On Sun, Oct 14, 2012 at 8:09 PM, Peter Maydell >> wrote: >>> Please don't delete this function, it is the public facing interface >>> for allowing boar

Re: [Qemu-devel] [PATCH 10/11] arm: add missing static and remove unused functions

2012-10-19 Thread Blue Swirl
On Sun, Oct 14, 2012 at 8:55 PM, Peter Maydell wrote: > On 14 October 2012 21:49, Blue Swirl wrote: >> On Sun, Oct 14, 2012 at 8:35 PM, Peter Maydell >> wrote: >>> On 14 October 2012 21:33, Blue Swirl wrote: >>>> On Sun, Oct 14, 2012 at 8:09 PM, Peter Ma

Re: [Qemu-devel] [PATCH 1/4] cpu-all: Add unaligned load/store helper functions

2012-10-19 Thread Blue Swirl
On Wed, Oct 17, 2012 at 4:17 AM, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > cpu-all.h | 38 ++ > 1 file changed, 38 insertions(+) > > diff --git a/cpu-all.h b/cpu-all.h > index 2b99682..2db4414 100644 > --- a/cpu-all.h > +++ b/cpu-all.

Re: [Qemu-devel] [PATCH 3/4] Support for "double whitelist" filters

2012-10-19 Thread Blue Swirl
On Wed, Oct 17, 2012 at 1:15 PM, Eduardo Otubo wrote: > This patch includes a second whitelist right before the main loop. It's > a smaller and more restricted whitelist, excluding execve() among many > others. > > Signed-off-by: Eduardo Otubo > --- > qemu-seccomp.c | 94 > +

Re: [Qemu-devel] [PATCH] qemu: enable PV EOI for qemu 1.3

2012-10-19 Thread Blue Swirl
On Wed, Oct 17, 2012 at 7:40 PM, Michael S. Tsirkin wrote: > Enable KVM PV EOI by default. You can still disable it with > -kvm_pv_eoi cpu flag. To avoid breaking cross-version migration, > enable only for qemu 1.3 or newer machine type. > > Signed-off-by: Michael S. Tsirkin > --- > hw/pc.h

Re: [Qemu-devel] [PATCH 1/6] qdev: rework device properties.

2012-10-19 Thread Blue Swirl
On Wed, Oct 17, 2012 at 8:14 PM, Eduardo Habkost wrote: > On Wed, Jul 15, 2009 at 01:43:31PM +0200, Gerd Hoffmann wrote: > [...] >> diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c >> new file mode 100644 >> index 000..8b0d0ff >> --- /dev/null >> +++ b/hw/qdev-properties.c >> @@ -0,0 +

Re: [Qemu-devel] nvram and boot order

2012-10-19 Thread Blue Swirl
On Thu, Oct 18, 2012 at 6:32 AM, Alexander Graf wrote: > > > On 18.10.2012, at 03:18, Benjamin Herrenschmidt > wrote: > >> On Thu, 2012-10-18 at 11:09 +1100, David Gibson wrote: >> > That's horrible; if you use -boot just once it will clobber a > persistent NVRAM's boot order. I see tha

Re: [Qemu-devel] [RFC PATCH v3 06/19] Implement "-dimm" command line option

2012-10-19 Thread Blue Swirl
On Thu, Oct 18, 2012 at 12:33 PM, Avi Kivity wrote: > On 10/18/2012 11:27 AM, Vasilis Liaskovitis wrote: >> On Wed, Oct 17, 2012 at 12:03:51PM +0200, Avi Kivity wrote: >>> On 10/17/2012 11:19 AM, Vasilis Liaskovitis wrote: >>> >> >>> >> I don't think so, but probably there's a limit of DIMMs that

Re: [Qemu-devel] [Qemu-trivial] [PATCH 00/11] static patches

2012-10-19 Thread Blue Swirl
On Fri, Oct 19, 2012 at 8:38 AM, Stefan Hajnoczi wrote: > On Sun, Oct 14, 2012 at 07:58:48PM +0000, Blue Swirl wrote: >> I made a small tool to detect unused functions and >> variables. Here's some fixes. >> >> Blue Swirl (11): >> target-sparc: make do_

Re: [Qemu-devel] [PATCH 5/6] TCG: Use gen_opparam_buf from context instead of global variable.

2012-10-19 Thread Blue Swirl
On Fri, Oct 19, 2012 at 12:42 PM, Evgeny wrote: > Signed-off-by: Evgeny > --- > tcg/tcg.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/tcg/tcg.c b/tcg/tcg.c > index 3da1d83..77b15a0 100644 > --- a/tcg/tcg.c > +++ b/tcg/tcg.c > @@ -302,7 +302,7 @@ void tcg

Re: [Qemu-devel] [PATCH 0/6] *** TCG global variables clean-up ***

2012-10-19 Thread Blue Swirl
On Fri, Oct 19, 2012 at 12:42 PM, Evgeny wrote: > This set of patches moves global variables to tcg_ctx: > gen_opc_ptr > gen_opparam_ptr > gen_opc_buf > gen_opparam_buf > > Where it was possible I used s->... > Where we don't have an interface to pass a pointer to tcg_ctx, I used > tcg_ctx.xxx >

Re: [Qemu-devel] [PATCH] Makefile: Forbid out-of-tree build from a source tree that has been built in

2012-10-19 Thread Blue Swirl
On Fri, Oct 19, 2012 at 1:54 PM, Peter Maydell wrote: > If we try to do an out-of-tree build but the source tree we're building from > has been used in the past for an in-tree build then things will go > confusingly wrong. Specifically, some parts of the build process will pull > in generated file

Re: [Qemu-devel] [PATCH v2 0/4] vga: add mmio bar

2012-10-20 Thread Blue Swirl
On Mon, Oct 15, 2012 at 6:02 AM, Gerd Hoffmann wrote: > Hi, > > This patch series adds a mmio bar to the standard vga. It also drops > a file into docs/specs/ describing the mmio bar and the other properties > of the qemu standard vga and does a little cleanup by removing > CONFIG_BOCHS_VBE. >

Re: [Qemu-devel] [PATCH v4 0/5] Better allocation of code_gen_buffer

2012-10-20 Thread Blue Swirl
Thanks, applied all. On Tue, Oct 16, 2012 at 7:30 AM, Richard Henderson wrote: > Changes v3->v4: > * Patch 5 actually included, > * Patch 1 updates printf format for changed size_t. > > > r~ > > > Richard Henderson (5): > exec: Split up and tidy code_gen_buffer > exec: Don't make DEFAULT_

Re: [Qemu-devel] [PATCH v2 00/20] target-sparc: Cleanup handling of temps

2012-10-20 Thread Blue Swirl
On Tue, Oct 16, 2012 at 9:32 AM, Richard Henderson wrote: > The primary goal of this patch set is to have all references to windowed > registers to go through new routines that have access to DisasContext. > This is a prerequisite to any change in how windowed registers might be > managed. > > Sin

Re: [Qemu-devel] [PATCH v2 0/8] Add LOG_GUEST_ERROR for reporting guest bugs

2012-10-20 Thread Blue Swirl
On Thu, Oct 18, 2012 at 1:11 PM, Peter Maydell wrote: > This patch series introduces a new logging category to > qemu_log_mask(), for reporting situations which the device > model can cope with but which indicate bugs in the guest. > The most common cause of these is "guest tried to access > a reg

Re: [Qemu-devel] [PATCH 2/2] target-sparc: fix FMOVr instruction

2012-10-20 Thread Blue Swirl
On Tue, Oct 16, 2012 at 11:28 PM, Aurelien Jarno wrote: > Like the MOVr instruction, the FMOVr instruction has the condition > encoded between bits 10 and 12. Thanks, applied. > > Cc: Blue Swirl > Signed-off-by: Aurelien Jarno > --- > target-sparc/translate.c |2 +-

Re: [Qemu-devel] [PATCH v3 17/26] Add i21154 bridge chip.

2012-10-27 Thread Blue Swirl
this is a bug. > Would appreciate testing of the patch below. > > > Are you familiar with dec_pci.c? Looking at it, it seems to > implement a pci host bridge "dec-21154-sysbus" , > a pci to pci bridge "dec-21154-p2p-bridge", > and something called "dec-2

Re: [Qemu-devel] [PATCH v2] stop using stdio for monitor/serial/etc with -daemonize

2012-10-27 Thread Blue Swirl
On Sat, Oct 27, 2012 at 12:15 PM, Michael Tokarev wrote: > On 27.10.2012 15:33, Peter Maydell wrote: >> On 27 October 2012 12:23, Michael Tokarev wrote: >>> >>> I still don't see why >>> >>> -nographic -daemonize >>> >>> makes no sence while >>> >>> -curses -daemonize >>> >>> does? >> >> My vot

Re: [Qemu-devel] [RESEND PATCH v6 2/3] tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

2012-10-27 Thread Blue Swirl
On Sat, Oct 20, 2012 at 7:05 AM, Yeongkyoon Lee wrote: > Add GETPC_EXT which is used by MMU helpers to selectively calculate the code > address of accessing guest memory when called from a qemu_ld/st optimized code > or a C function. Currently, it supports only i386 and x86-64 hosts. > > Signed-of

Re: [Qemu-devel] [PATCH v2 0/7] TCG global variables clean-up

2012-10-27 Thread Blue Swirl
On Fri, Oct 26, 2012 at 6:32 AM, Evgeny Voevodin wrote: > Today I made more precise testing with usage of --enable-profiler. > > Here is the test procedure: > 1. Boot Linux Kernel 5 times. > 2. For each iteration wait while "JIT cycles" is stable for ~10 seconds > 3. Write down the "cycles/op" > >

Re: [Qemu-devel] [PATCH] configure: Disable (clang) initializer-overrides warnings

2012-10-27 Thread Blue Swirl
;t > happen to recognize. (For compilers that don't accept-and-ignore the flag > configure will identify this and not use it.) > > Blue Swirl previously submitted a patch which enabled this flag > (among others): > http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg04203.html

Re: [Qemu-devel] [PULL 0/4] target-arm queue

2012-10-27 Thread Blue Swirl
On Wed, Oct 24, 2012 at 1:02 PM, Peter Maydell wrote: > Hi; this is a pullreq for the current target-arm queue. Some > minor tweaks and the patch which handles get/put_user() failure > in the semihosting code. Please pull. Thanks, pulled. > > thanks > -- PMM > > The following changes since commi

Re: [Qemu-devel] [PATCH] configure: avoid compiler warning in pipe2 detection

2012-10-27 Thread Blue Swirl
Thanks, applied. On Mon, Aug 20, 2012 at 6:45 PM, Bruce Rogers wrote: > When building qemu-kvm for openSUSE:Factory, I am getting a > warning in the pipe2 detection performed by configure, which > prevents using --enable-werror. > > Change detection code to use return value of pipe2. > > Signed-o

Re: [Qemu-devel] [PATCH] target-sparc64: disable VGA cirrus

2012-10-27 Thread Blue Swirl
t; > Reported-by: Richard Henderson > Cc: Blue Swirl > Signed-off-by: Aurelien Jarno > --- > default-configs/sparc64-softmmu.mak |1 - > 1 file changed, 1 deletion(-) > > diff --git a/default-configs/sparc64-softmmu.mak > b/default-configs/sparc64-softmmu.mak > index

Re: [Qemu-devel] [PATCH] tests/tcg: fix a few warnings

2012-10-27 Thread Blue Swirl
Thanks, applied. On Mon, Oct 22, 2012 at 11:18 PM, Catalin Patulea wrote: > > Signed-off-by: Catalin Patulea > --- > This leaves a few of these: > warning: ignoring return value of 'write', declared with attribute > warn_unused_result > > How interesting is it to fix these? (Perhaps by assertin

Re: [Qemu-devel] [PATCH] Makefile: Forbid out-of-tree build from a source tree that has been built in

2012-10-27 Thread Blue Swirl
Thanks, applied. On Fri, Oct 19, 2012 at 1:54 PM, Peter Maydell wrote: > If we try to do an out-of-tree build but the source tree we're building from > has been used in the past for an in-tree build then things will go > confusingly wrong. Specifically, some parts of the build process will pull >

Re: [Qemu-devel] [PATCH v2 0/2] xtensa boards: don't prematurely explode QEMUMachineInitArgs

2012-10-27 Thread Blue Swirl
Thanks, applied all. On Thu, Oct 25, 2012 at 11:37 AM, Max Filippov wrote: > Changes v1 -> v2: > - remove ram_size in xtensa_lx60 as well > > Max Filippov (2): > hw/xtensa_lx60: don't prematurely explode QEMUMachineInitArgs > hw/xtensa_sim: get rid of intermediate xtensa_sim_init > > hw/xten

[Qemu-devel] [PATCH v2 0/6] static patches

2012-10-28 Thread Blue Swirl
v2: extract function removal patches, skip ARM Blue Swirl (6): target-sparc: make do_unaligned_access static vl.c: add missing static vnc: add missing static ppc: add missing static target-ppc: make some functions static exec: make some functions static console.h

[Qemu-devel] [PATCH v2 3/6] vnc: add missing static

2012-10-28 Thread Blue Swirl
Add missing 'static' qualifiers. Signed-off-by: Blue Swirl --- console.h |2 -- ui/vnc-jobs.c | 10 +- ui/vnc-jobs.h |1 - ui/vnc.c | 14 +++--- ui/vnc.h |5 - 5 files changed, 12 insertions(+), 20 deletions(-) diff --git a/c

[Qemu-devel] [PATCH v2 4/6] ppc: add missing static

2012-10-28 Thread Blue Swirl
Add missing 'static' qualifiers. Signed-off-by: Blue Swirl --- hw/adb.c |8 hw/adb.h |4 hw/nvram.h | 10 +- hw/ppc.c | 16 target-ppc/cpu.h |1 - 5 files changed, 13 insertions(+), 26 deletions(-)

[Qemu-devel] [PATCH v2 6/6] exec: make some functions static

2012-10-28 Thread Blue Swirl
Signed-off-by: Blue Swirl --- cpu-common.h |5 - exec-all.h|2 -- exec.c| 15 +-- memory-internal.h |2 -- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index 5f93089..d2fbafa 100644 --- a/cpu

[Qemu-devel] [PATCH v2 2/6] vl.c: add missing static

2012-10-28 Thread Blue Swirl
Add missing 'static' qualifiers. Signed-off-by: Blue Swirl --- sysemu.h |5 - vl.c | 21 - 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/sysemu.h b/sysemu.h index 0c39a3a..1683448 100644 --- a/sysemu.h +++ b/sysemu.h @@ -19,7 +19,6

[Qemu-devel] [PATCH v2 1/6] target-sparc: make do_unaligned_access static

2012-10-28 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/cpu.h |3 --- target-sparc/ldst_helper.c |8 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index a55fe08..7c689ee 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h

[Qemu-devel] [PATCH v2 5/6] target-ppc: make some functions static

2012-10-28 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-ppc/cpu.h|6 -- target-ppc/mmu_helper.c | 11 ++- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index b34a1ff..a5e7c55 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h

[Qemu-devel] [PATCH 0/3] remove unused functions

2012-10-28 Thread Blue Swirl
Remove some unused functions. Blue Swirl (3): m48t59: remove unused m48t59_set_addr sun4c: remove unused functions slirp: remove unused function u_sleep hw/m48t59.c |7 --- hw/nvram.h|1 - hw/sun4c_intctl.c | 23 --- hw/sun4m.h|4

[Qemu-devel] [PATCH 1/3] m48t59: remove unused m48t59_set_addr

2012-10-28 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/m48t59.c |7 --- hw/nvram.h |1 - 2 files changed, 0 insertions(+), 8 deletions(-) diff --git a/hw/m48t59.c b/hw/m48t59.c index 9eb1a09..058d6e7 100644 --- a/hw/m48t59.c +++ b/hw/m48t59.c @@ -466,13 +466,6 @@ uint32_t m48t59_read (void *opaque

[Qemu-devel] [PATCH 2/3] sun4c: remove unused functions

2012-10-28 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/sun4c_intctl.c | 23 --- hw/sun4m.h|4 2 files changed, 0 insertions(+), 27 deletions(-) diff --git a/hw/sun4c_intctl.c b/hw/sun4c_intctl.c index 8cd70ab..702e9f5 100644 --- a/hw/sun4c_intctl.c +++ b/hw/sun4c_intctl.c

[Qemu-devel] [PATCH 3/3] slirp: remove unused function u_sleep

2012-10-28 Thread Blue Swirl
Signed-off-by: Blue Swirl --- slirp/misc.c | 14 -- slirp/misc.h |1 - 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/slirp/misc.c b/slirp/misc.c index 0bee864..664532a 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -253,20 +253,6 @@ void lprint(const char

[Qemu-devel] [PATCH 0/5] cpu_single_env cleanup

2012-10-28 Thread Blue Swirl
In some cases it's pretty easy to avoid using global cpu_single_env since a local version is available. Blue Swirl (5): disas: avoid using cpu_single_env kvm: avoid using cpu_single_env target-unicore32: avoid using cpu_single_env target-xtensa: avoid using cpu_single_env target

[Qemu-devel] [PATCH 1/5] disas: avoid using cpu_single_env

2012-10-28 Thread Blue Swirl
Pass around CPUState instead of using global cpu_single_env. Signed-off-by: Blue Swirl --- disas.c | 149 ++--- disas.h |3 +- qemu-log.h|6 +- target-alpha/translate.c |2

[Qemu-devel] [PATCH 4/5] target-xtensa: avoid using cpu_single_env

2012-10-28 Thread Blue Swirl
Pass around CPUState instead of using global cpu_single_env. Signed-off-by: Blue Swirl --- target-xtensa/translate.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 82e8ccc..3c03775 100644 --- a/target

[Qemu-devel] [PATCH 3/5] target-unicore32: avoid using cpu_single_env

2012-10-28 Thread Blue Swirl
Pass around CPUState instead of using global cpu_single_env. Signed-off-by: Blue Swirl --- target-unicore32/softmmu.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-unicore32/softmmu.c b/target-unicore32/softmmu.c index 9c2c54c..fc27100 100644 --- a

[Qemu-devel] [PATCH 2/5] kvm: avoid using cpu_single_env

2012-10-28 Thread Blue Swirl
Pass around CPUState instead of using global cpu_single_env. Signed-off-by: Blue Swirl --- target-i386/kvm.c | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 3aa62b2..3329d5e 100644 --- a/target-i386/kvm.c

Re: [Qemu-devel] [PATCH v3 0/6] TCG global variables clean-up

2012-10-30 Thread Blue Swirl
On Mon, Oct 29, 2012 at 9:14 AM, Evgeny Voevodin wrote: > This set of patches moves global variables to tcg_ctx: > gen_opc_ptr > gen_opparam_ptr > gen_opc_buf > gen_opparam_buf Patches don't apply, please rebase. Also checkpatch.pl complains about tabs. > > Build tested for all targets. > Execut

Re: [Qemu-devel] [PATCH 1/4 v3] vmware_vga: Coding style cleanup

2012-10-30 Thread Blue Swirl
On Mon, Oct 29, 2012 at 10:38 AM, BALATON Zoltan wrote: > On Thu, 18 Oct 2012, BALATON Zoltan wrote: >> >> Ping? >> >> http://patchwork.ozlabs.org/patch/189750/ >> http://patchwork.ozlabs.org/patch/189751/ >> http://patchwork.ozlabs.org/patch/189752/ >> http://patchwork.ozlabs.org/patch/189754/ >

Re: [Qemu-devel] [PATCH v2 13/19] target-mips: implement unaligned loads using TCG

2012-10-30 Thread Blue Swirl
On Tue, Oct 30, 2012 at 12:12 AM, Aurelien Jarno wrote: > Load/store from helpers should be avoided as they are quite > inefficient. Rewrite unaligned loads instructions using TCG and > aligned loads. The number of actual loads operations to implement > an unaligned load instruction is reduced fro

Re: [Qemu-devel] [PATCH v6 2/2] xilinx_zynq: added pl330 to machine model

2012-10-30 Thread Blue Swirl
On Tue, Oct 30, 2012 at 1:35 AM, Peter Crosthwaite wrote: > Signed-off-by: Peter Crosthwaite > --- > > hw/xilinx_zynq.c | 24 > 1 files changed, 24 insertions(+), 0 deletions(-) > > diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c > index c55dafb..e985e26 100644 > ---

Re: [Qemu-devel] [PATCH 3/3] slirp: remove unused function u_sleep

2012-10-30 Thread Blue Swirl
On Tue, Oct 30, 2012 at 8:31 AM, Jan Kiszka wrote: > On 2012-10-28 13:26, Blue Swirl wrote: >> Signed-off-by: Blue Swirl >> --- >> slirp/misc.c | 14 -- >> slirp/misc.h |1 - >> 2 files changed, 0 insertions(+), 15 deletions(-) >> >

Re: [Qemu-devel] [PATCH v2 3/7] memory: iommu support

2012-10-30 Thread Blue Swirl
On Tue, Oct 30, 2012 at 11:47 AM, Avi Kivity wrote: > Add a new memory region type that translates addresses it is given, > then forwards them to a target address space. This is similar to > an alias, except that the mapping is more flexible than a linear > translation and trucation, and also les

Re: [Qemu-devel] [PATCH v2 4/7] memory: provide a MemoryRegion for IOMMUs to log faults

2012-10-30 Thread Blue Swirl
On Tue, Oct 30, 2012 at 11:47 AM, Avi Kivity wrote: > Accesses which do not translate will hit the fault region, which > can then log the access. Maybe special casing the fault region should be avoided, the IOMMU could set up suitable fault regions by itself. > > Signed-off-by: Avi Kivity > ---

Re: [Qemu-devel] [PATCH v2 7/7] i440fx: add an iommu

2012-10-30 Thread Blue Swirl
On Tue, Oct 30, 2012 at 11:47 AM, Avi Kivity wrote: > This iommu encrypts addresses on the device bus to avoid divuling information > to hackers equipped with bus analyzers. Following 3DES, addresses are > encrypted > multiple times. A XOR cypher is employed for efficiency. If this is not usef

Re: [Qemu-devel] [PULL 0/3] Xilinx Zynq QSPI support

2012-10-30 Thread Blue Swirl
On Mon, Oct 29, 2012 at 6:44 AM, Peter Crosthwaite wrote: > The following changes since commit 50cd72148211c5e5f22ea2519d19ce024226e61f: > Max Filippov (1): > hw/xtensa_sim: get rid of intermediate xtensa_sim_init > > are available in the git repository at: > > git://developer.petalogi

Re: [Qemu-devel] [PATCH] target-sparc: Revert setting cpu_dst to gen_dest_gpr

2012-10-30 Thread Blue Swirl
Thanks, applied. On Mon, Oct 29, 2012 at 4:50 AM, Richard Henderson wrote: > There is some read-after-write error within the OP=2 insns which > prevents setting cpu_dst to the real output register. Until this > is found and fixed, always write to a temporary first. > > Cc: B

Re: [Qemu-devel] [PATCHv2] tests/tcg: fix unused result warnings

2012-10-30 Thread Blue Swirl
Thanks, applied. On Mon, Oct 29, 2012 at 6:01 PM, Catalin Patulea wrote: > With i386-linux-user target on x86_64 host, this does not introduce any new > test > failures. > > Signed-off-by: Catalin Patulea > --- > v2: > - Fixes style issues from checkpatch.pl > - For some reason, the patch from

Re: [Qemu-devel] [PATCH] configure: use -Wwombat to test whether gcc recognizes -Wno-wombat

2012-10-30 Thread Blue Swirl
Thanks, applied. On Sat, Oct 27, 2012 at 9:19 PM, Peter Maydell wrote: > gcc will silently accept unrecognized -Wno-wombat warning suppression > options (it only mentions them if it has to print a compiler warning > for some other reason). Since we already run a check for whether gcc > recognizes

Re: [Qemu-devel] [PATCH] tap-win32: stubs to fix win32 build

2012-10-30 Thread Blue Swirl
Thanks, applied. On Tue, Oct 30, 2012 at 2:04 PM, Michael S. Tsirkin wrote: > Add missing stubs to win32 to fix link failure. > > Signed-off-by: Michael S. Tsirkin > Reported-by: Paolo Bonzini > --- > net/tap-win32.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/net/tap-

Re: [Qemu-devel] [PATCH v2 3/7] memory: iommu support

2012-10-30 Thread Blue Swirl
On Tue, Oct 30, 2012 at 8:03 PM, Benjamin Herrenschmidt wrote: > On Tue, 2012-10-30 at 19:11 +0000, Blue Swirl wrote: > >> Why couple this with host endianness? I'd expect IOMMU to operate at >> target bus endianness, for example LE for PCI on PPC guest. > > I'

Re: [Qemu-devel] [PATCH v5 02/16] target-or32: Add target machine

2012-06-18 Thread Blue Swirl
On Mon, Jun 18, 2012 at 1:02 AM, Jia Liu wrote: > Add OpenRISC target machine. > > Signed-off-by: Jia Liu > --- >  target-openrisc/cpu.h     |   67 > - >  target-openrisc/machine.c |   22 ++- >  2 files changed, 87 insertions(+), 2 deletion

Re: [Qemu-devel] [PATCH v5 01/16] target-or32: Add target stubs and cpu support

2012-06-18 Thread Blue Swirl
On Mon, Jun 18, 2012 at 1:02 AM, Jia Liu wrote: > Add OpenRISC target stubs and basic cpu support. > > Signed-off-by: Jia Liu > --- >  arch_init.c                      |    2 + >  arch_init.h                      |    1 + >  configure                        |   14 +- >  cpu-exec.c                

Re: [Qemu-devel] [PATCH v5 12/16] target-or32: Add system instructions

2012-06-18 Thread Blue Swirl
On Mon, Jun 18, 2012 at 1:03 AM, Jia Liu wrote: > Add OpenRISC system instruction support. > > Signed-off-by: Jia Liu > --- >  target-openrisc/Makefile.objs |    3 +- >  target-openrisc/helper.h      |    4 + >  target-openrisc/sys_helper.c  |  233 > + >  

Re: [Qemu-devel] [PATCH v5 00/16] QEMU OpenRISC support

2012-06-18 Thread Blue Swirl
On Mon, Jun 18, 2012 at 1:02 AM, Jia Liu wrote: > This is the OpenCores OpenRISC 1200 support for QEMU. > Full implementation of the system-model and linux-user-model support. > > OpenRISC 1200 is a OpenCores open source CPU, > its architecture manual can be found at > http://opencores.org/svnget,

Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?

2012-06-18 Thread Blue Swirl
On Mon, Jun 18, 2012 at 4:59 AM, YeongKyoon Lee wrote: >> The idea looks nice, but instead of different TLB functions selected >> at configure time, the optimization should be enabled by default. >> >> Maybe a 'call' instruction could be used to jump to the slow path, >> that way the slow path cou

Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?

2012-06-18 Thread Blue Swirl
On Mon, Jun 18, 2012 at 6:57 AM, 陳韋任 (Wei-Ren Chen) wrote: >> The idea looks nice, but instead of different TLB functions selected >> at configure time, the optimization should be enabled by default. >> >> Maybe a 'call' instruction could be used to jump to the slow path, >> that way the slow path

<    1   2   3   4   5   6   7   8   9   10   >