Re: [Qemu-devel] [PATCH 1/2] qga: add guest-get-time command

2013-03-03 Thread Lei Li
On 03/02/2013 01:02 AM, Eric Blake wrote: On 03/01/2013 02:32 AM, Lei Li wrote: Signed-off-by: Lei Li --- qga/commands-posix.c | 16 qga/qapi-schema.json | 16 2 files changed, 32 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-03 Thread Gerd Hoffmann
Hi, >>> + * @nw0: bits that cant be written with a 0 by the guest (sticky 1) >>> + * @nw1: bits that cant be written with a 1 by the guest (sticky 0) >> >> Why these? >> >> reset=0 + ro=1 equals nw1=1 >> reset=1 + ro=1 equals nw0=1 >> > > Some bits in my devices can only be written one-way they

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-03 Thread Gerd Hoffmann
Hi, >> For maximum flexibility, a callback could be specified but then we >> overlap memory API. > > I think this is a good idea, but continuing on the theme of what this > API is trying to achieve I think there should be capability for > per-bit function definitions. On the topic I think Gerd

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-03 Thread Peter Crosthwaite
Hi Gerd, On Mon, Mar 4, 2013 at 4:55 PM, Gerd Hoffmann wrote: >> +/** >> + * A descriptor for a Uint32 that is part of guest accessible device state >> + * @ro: whether or not the bit is read-only state comming out of reset >> + * @w1c: bits with the common write 1 to clear semantic. > >> + * @nw

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-03 Thread Gerd Hoffmann
> +/** > + * A descriptor for a Uint32 that is part of guest accessible device state > + * @ro: whether or not the bit is read-only state comming out of reset > + * @w1c: bits with the common write 1 to clear semantic. > + * @nw0: bits that cant be written with a 0 by the guest (sticky 1) > + * @n

Re: [Qemu-devel] [PATCH v5 03/24] hw/arm: add Faraday FTINTC020 interrupt controller support

2013-03-03 Thread Kuo-Jung Su
2013/3/4 Peter Crosthwaite : > Hi Kuo-Jung, > > On Mon, Mar 4, 2013 at 4:20 PM, Kuo-Jung Su wrote: >> 2013/3/2 Peter Crosthwaite : >>> Hi Kuo-Jung, > [Snip] +return s->irq_lvl[1]; +case REG_EIRQSR: +return s->irq_src[1] & s->irq_ena[1]; + >>> >>> AFAICT, ind

Re: [Qemu-devel] [PATCH V20 00/10] libqblock qemu block layer library

2013-03-03 Thread Wenchao Xia
Hi, any comments for this version? >These patches introduce libqblock API, make subdir-libqblock and make > check-libqblock could build this library. > Functionalities: > 1 create a new image. > 2 sync access of an image. > 3 basic image information retrieving such as backing file. >

[Qemu-devel] [PATCH v3 3/3] configure/Make: Build libfdt from submodule DTC

2013-03-03 Thread Peter Crosthwaite
Configure to use the DTC submodule to build libfdt when no system libfdt is found. Prompt to install the DTC submodule if --enable-fdt is set but no DTC can be found. DTC has no out-of-tree build capability, so the configure will symlink the Makefile and scripts directory in the out of tree build

Re: [Qemu-devel] [PATCH v5 03/24] hw/arm: add Faraday FTINTC020 interrupt controller support

2013-03-03 Thread Peter Crosthwaite
Hi Kuo-Jung, On Mon, Mar 4, 2013 at 4:20 PM, Kuo-Jung Su wrote: > 2013/3/2 Peter Crosthwaite : >> Hi Kuo-Jung, [Snip] >>> +return s->irq_lvl[1]; >>> +case REG_EIRQSR: >>> +return s->irq_src[1] & s->irq_ena[1]; >>> + >> >> AFAICT, index 0 of there arrays in for IRQ and index 1

[Qemu-devel] [PATCH v3 2/3] dtc: add submodule

2013-03-03 Thread Peter Crosthwaite
Add dtc submodule as a fallback for old distros. Picking version 1.3.0. as this is the most recently tagged stable version. Signed-off-by: Peter Crosthwaite --- .gitmodules |3 +++ dtc |1 + 2 files changed, 4 insertions(+), 0 deletions(-) create mode 16 dtc diff --git a/.

Re: [Qemu-devel] [PATCH v5 05/24] hw/arm: add Faraday FTDDRII030 support

2013-03-03 Thread Kuo-Jung Su
2013/3/4 Peter Crosthwaite : > Hi Kuo-Jung, > > On Wed, Feb 27, 2013 at 5:15 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTDDRII030 is a DDRII SDRAM controller which is responsible for >> SDRAM initialization. >> In QEMU we emualte only the SDRAM enable function. >> > > "emulate" > Got

[Qemu-devel] [PATCH v3 1/3] configure: Put cross compile flags in EXTRA_CFLAGS

2013-03-03 Thread Peter Crosthwaite
The cross compile CFLAGS are needed to properly build pixman (and any other submodules). Only the EXTRA_CFLAGS set is passed to submodules not QEMU_CFLAGS, so put the cross compile flags in EXTRA_CFLAGS instead. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com> --- Changed from v2: Re

[Qemu-devel] [PATCH v3 0/3] DTC as submodule

2013-03-03 Thread Peter Crosthwaite
These two patches add and use dtc as a submodule as per the RFC: http://lists.gnu.org/archive/html/qemu-devel/2013-01/msg05000.html There is a remaining action item to mandate libfdt for arm/microblaze and PPC which is left as follow up work for after review of this series. Also fixed the config

Re: [Qemu-devel] [PATCH v5 04/24] hw/arm: add Faraday FTAHBC020 support

2013-03-03 Thread Kuo-Jung Su
2013/3/4 Peter Crosthwaite : > Hi Kuo-Jung, > > On Wed, Feb 27, 2013 at 5:15 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> It's used to perform AHB remap and if the SDRAM is initialized >> before AHB remap process activated, then it would also perform >> the QEMU RAM initialization. >> >> Sig

Re: [Qemu-devel] [PATCH v5 03/24] hw/arm: add Faraday FTINTC020 interrupt controller support

2013-03-03 Thread Kuo-Jung Su
2013/3/3 Peter Crosthwaite : > Hi Kuo-Jung, > > On Sat, Mar 2, 2013 at 2:13 PM, Peter Crosthwaite > wrote: >> Hi Kuo-Jung, >> >> On Wed, Feb 27, 2013 at 5:15 PM, Kuo-Jung Su wrote: >>> From: Kuo-Jung Su >>> >>> The FTINTC020 interrupt controller supports both FIQ and IRQ signals >>> to the micro

Re: [Qemu-devel] [PATCH v5 03/24] hw/arm: add Faraday FTINTC020 interrupt controller support

2013-03-03 Thread Kuo-Jung Su
2013/3/2 Peter Crosthwaite : > Hi Kuo-Jung, > > On Wed, Feb 27, 2013 at 5:15 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTINTC020 interrupt controller supports both FIQ and IRQ signals >> to the microprocessor. >> It can handle up to 64 configurable IRQ sources and 64 FIQ sources. >> T

Re: [Qemu-devel] [PATCH v5 02/24] hw/arm: add Faraday a369 SoC platform support

2013-03-03 Thread Kuo-Jung Su
2013/3/2 Peter Crosthwaite : > Hi Kuo-Jung, > > On Wed, Feb 27, 2013 at 5:15 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The Faraday A369 EVB is a Faraday SoC platform evalution board used for >> Faraday IP functional verification based on the well-known ARM AMBA 2.0 >> architecture. >> >>

Re: [Qemu-devel] [PATCH v5 02/24] hw/arm: add Faraday a369 SoC platform support

2013-03-03 Thread Kuo-Jung Su
2013/3/2 Igor Mitsyanko : > Hi, Kuo-Jung > > On 02/27/2013 11:15 AM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The Faraday A369 EVB is a Faraday SoC platform evalution board used for >> Faraday IP functional verification based on the well-known ARM AMBA 2.0 >> architecture. >> >> Signed-off-by

[Qemu-devel] [PATCH v2 5/5] xilinx_spips: seperate SPI and QSPI as two classes

2013-03-03 Thread Peter Crosthwaite
Make SPI and QSPI different classes. QSPIPS is setup as a child of SPIPS. Only QSPI has the LQSPI functionality, so move all that to the child class. Signed-off-by: Peter Crosthwaite --- Changed from v1: Fixed compile bug (s/XILINX_SPIPS/XILINX_QSPIPS on QOM cast) hw/xilinx_spips.c | 66 +

[Qemu-devel] [PATCH v2 4/5] xilinx_spips: QOM styling fixes

2013-03-03 Thread Peter Crosthwaite
Few fixes for the latest QOM styling guides. Signed-off-by: Peter Crosthwaite --- hw/xilinx_spips.c | 29 - 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/hw/xilinx_spips.c b/hw/xilinx_spips.c index 45a1c51..530ef47 100644 --- a/hw/xilinx_spips.c

[Qemu-devel] [PATCH v2 3/5] xilinx_spips: Add missing dual-bus snoop commands

2013-03-03 Thread Peter Crosthwaite
From: Nathan Rossi Added additional commands to the switch to check for when snooping commands in dual bus mode setups. Cleaned up code to use an enum. Signed-off-by: Nathan Rossi Signed-off-by: Peter Crosthwaite --- hw/xilinx_spips.c | 29 +++-- 1 files changed, 23

[Qemu-devel] [PATCH v2 2/5] xilinx_spips: Fix bus setup conditional check

2013-03-03 Thread Peter Crosthwaite
From: Nathan Rossi The R_LQPSI_CFG register has the LQSPI_CFG_SEP_BUS and LQSPI_CFG_TWO_MEM bits. Signed-off-by: Nathan Rossi Signed-off-by: Peter Crosthwaite --- hw/xilinx_spips.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xilinx_spips.c b/hw/xilinx_spips

[Qemu-devel] [PATCH v2 1/5] xilinx_spips: Set unused IRQs to NULL

2013-03-03 Thread Peter Crosthwaite
Unused CS lines should init to 0 to avoid segfaulting when accessing an unattached QSPI controller. Signed-off-by: Peter Crosthwaite --- hw/xilinx_spips.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xilinx_spips.c b/hw/xilinx_spips.c index 42e019d..3eee828 10064

[Qemu-devel] [PATCH v2 0/5] Xilinx SPIPS updates

2013-03-03 Thread Peter Crosthwaite
Few updates to the Zynq SPI controller. Couple of bug-fixes/completions followed by some QOMifying cleanup. Changed from v1: Fixed p5 compile bug. Nathan Rossi (2): xilinx_spips: Fix bus setup conditional check xilinx_spips: Add missing dual-bus snoop commands Peter Crosthwaite (3): xilin

Re: [Qemu-devel] [PATCH v2 1/3] configure: Put cross compile flags in EXTRA_CFLAGS

2013-03-03 Thread Peter Crosthwaite
On Fri, Mar 1, 2013 at 12:52 AM, Peter Maydell wrote: > On 19 February 2013 04:16, Peter Crosthwaite > wrote: >> The cross compile CFLAGS are needed to properly build pixman (and any other >> submodules). Only the EXTRA_CFLAGS set is passed to submodules not >> QEMU_CFLAGS, >> so put the cross c

Re: [Qemu-devel] [PATCH v2 3/3] configure/Make: Build libfdt from submodule DTC

2013-03-03 Thread Peter Crosthwaite
On Fri, Mar 1, 2013 at 1:30 AM, Peter Maydell wrote: > On 19 February 2013 04:19, Peter Crosthwaite > wrote: >> Configure to use the DTC submodule to build libfdt when no system libfdt >> is found. Prompt to install the DTC submodule if --enable-fdt is set but >> no DTC can be found. >> >> DTC ha

Re: [Qemu-devel] virtio-rng and fd passing

2013-03-03 Thread Amit Shah
On (Fri) 01 Mar 2013 [10:51:33], Paolo Bonzini wrote: > Il 01/03/2013 01:36, Eric Blake ha scritto: > > For fd passing to work, we have to use qemu_open() instead of raw > > open(). Is there any way to enforce that all files being opened by qemu > > go through the appropriate qemu_open() wrapper?

Re: [Qemu-devel] [PATCH v5 05/24] hw/arm: add Faraday FTDDRII030 support

2013-03-03 Thread Peter Crosthwaite
Hi Kuo-Jung, On Wed, Feb 27, 2013 at 5:15 PM, Kuo-Jung Su wrote: > From: Kuo-Jung Su > > The FTDDRII030 is a DDRII SDRAM controller which is responsible for > SDRAM initialization. > In QEMU we emualte only the SDRAM enable function. > "emulate" > Signed-off-by: Kuo-Jung Su > --- > hw/arm/Ma

Re: [Qemu-devel] [PATCH v5 04/24] hw/arm: add Faraday FTAHBC020 support

2013-03-03 Thread Peter Crosthwaite
Hi Kuo-Jung, On Wed, Feb 27, 2013 at 5:15 PM, Kuo-Jung Su wrote: > From: Kuo-Jung Su > > It's used to perform AHB remap and if the SDRAM is initialized > before AHB remap process activated, then it would also perform > the QEMU RAM initialization. > > Signed-off-by: Kuo-Jung Su > --- > hw/arm/

Re: [Qemu-devel] [PATCH V7 09/14] block: move bdrv_snapshot_find() to block.c

2013-03-03 Thread Wenchao Xia
于 2013-3-1 9:51, Wenchao Xia 写道: 于 2013-2-28 0:22, Kevin Wolf 写道: Am 27.02.2013 um 17:04 hat Markus Armbruster geschrieben: Wenchao Xia writes: Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- block.c | 24 include/block/block.h |2 ++

Re: [Qemu-devel] [PATCH v2 2/5] musicpal: qdevify musicpal-misc

2013-03-03 Thread Peter Crosthwaite
On Tue, Feb 26, 2013 at 3:08 AM, Peter Maydell wrote: > Make musicpal-misc into its own (trivial) qdev device, so we > can get rid of the abuse of sysbus_add_memory(). > > Signed-off-by: Peter Maydell Reviewed-by: Peter Crosthwaite > --- > hw/musicpal.c | 28 +++- >

Re: [Qemu-devel] [PATCH V7 08/14] qmp: add interface query-images.

2013-03-03 Thread Wenchao Xia
>>> >>>## >>> +# @query-images: >>> +# >>> +# Get a list of DeviceImageInfo for all virtual block devices. >> >> # Get block device image information >> >OK. > >>> +# >>> +# @device: #optional the name of the device to get image info from. If not >>> +# specified, all block de

Re: [Qemu-devel] [PATCH v2 1/5] sysbus: make SysBusDeviceClass::init optional

2013-03-03 Thread Peter Crosthwaite
On Tue, Feb 26, 2013 at 3:08 AM, Peter Maydell wrote: > Make the SysBusDeviceClass::init optional, for devices which > genuinely don't need to do anything here. In particular, simple > devices which can do all their initialization in their > instance_init method don't need either a DeviceClass::re

Re: [Qemu-devel] [PATCH v4 2/2] pci: Teach PCI Bridges about VGA routing

2013-03-03 Thread Alex Williamson
On Mon, 2013-03-04 at 09:39 +0800, Peter Maydell wrote: > On 4 March 2013 01:21, Alex Williamson wrote: > > --- a/hw/pci/pcie_port.c > > +++ b/hw/pci/pcie_port.c > > @@ -28,10 +28,12 @@ void pcie_port_init_reg(PCIDevice *d) > > pci_set_word(d->config + PCI_SEC_STATUS, 0); > > > > /* Unli

Re: [Qemu-devel] [PATCH v4 2/2] pci: Teach PCI Bridges about VGA routing

2013-03-03 Thread Peter Maydell
On 4 March 2013 01:21, Alex Williamson wrote: > --- a/hw/pci/pcie_port.c > +++ b/hw/pci/pcie_port.c > @@ -28,10 +28,12 @@ void pcie_port_init_reg(PCIDevice *d) > pci_set_word(d->config + PCI_SEC_STATUS, 0); > > /* Unlike conventional pci bridge, some bits are hardwired to 0. */ > +#defin

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-03 Thread Peter Crosthwaite
Hi Blue, Thanks for the review. Comments in-line below. Are you on the IRC much and what timezone? I'd like to ask a few questions about how you see this fitting with the memory API, that would probably go much faster in live discussion. I've commented on the issue below with my current thoughts.

Re: [Qemu-devel] DEFINE_NIC_PROPERTIES in net.h

2013-03-03 Thread Peter Maydell
On 4 March 2013 08:53, Phani Vadrevu wrote: > Hi list, > I am trying to write a device emulator for a Broadcom card. As > reference, I am looking at e1000.c code of 1.2.2 version. Just a recommendation -- don't write new devices against old versions of QEMU. There's been a lot of evolutio

Re: [Qemu-devel] [PATCH 00/12] KVM Support for MIPS32 Processors

2013-03-03 Thread Zhang, Yang Z
Sanjay Lal wrote on 2013-03-02: > The following patchset implements KVM support for MIPS32 processors, > using Trap & Emulate, with basic runtime binary translation to improve > performance. > > In KVM mode, CPU virtualization is handled via the kvm kernel module, > while system and I/O virtualiza

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-03 Thread Peter Maydell
cmake bug: LP:955379. sketch of how to fix signal races: http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg00384.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1129571 Title: libreoffice

[Qemu-devel] DEFINE_NIC_PROPERTIES in net.h

2013-03-03 Thread Phani Vadrevu
Hi list, I am trying to write a device emulator for a Broadcom card. As reference, I am looking at e1000.c code of 1.2.2 version. In that code, there is this line: DEFINE_NIC_PROPERTIES( E1000State, conf); Is there a definite structure for the state object that is passed to DEFINE_NIC_PROP

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-03 Thread Peter Maydell
John: it would be interesting to try to determine whether that hang has the same root cause as the cmake and boehm-gc hangs, ie the thing that is supposed to post the futex is a signal handler whose signal comes in either just before or during the syscall [either way, the emulated code for the hand

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-03 Thread John Rigby
I noticed for the case where javac --version hangs the process has several threads all waiting on futexes. Details attached. ** Attachment added: "dump.out" https://bugs.launchpad.net/qemu/+bug/1129571/+attachment/3555716/+files/dump.out -- You received this bug notification because you are

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-03-03 Thread Peter Maydell
The class of bugs exemplified by the symptoms described here are those where the multithreaded guest program causes QEMU to misbehave because we are sharing the code-translation globals (eg the generated code buffer) between multiple threads and they trod on each others' toes. (The race described

[Qemu-devel] [Bug 668799] Re: qemu-arm segfaults executing msgmerge (gettext)

2013-03-03 Thread Peter Maydell
Patches have now been committed to QEMU which fix the subset of "multithreaded guests crash" which this bug covers [ie ones where there was a race between tb_unlink_cpu() and the cpu thread using or modifying the TB graph], so I'm closing this bug. Note that there are still other classes of QEMU b

Re: [Qemu-devel] [PATCH v7 1/4] Add moxie target code

2013-03-03 Thread Peter Maydell
On 3 March 2013 21:07, Anthony Green wrote: > +/* generate intermediate code for basic block 'tb'. */ > +static void > +gen_intermediate_code_internal(MoxieCPU *cpu, TranslationBlock *tb, > + bool search_pc) > +{ > +DisasContext ctx; > +target_ulong pc_start;

Re: [Qemu-devel] virtio-rng and fd passing

2013-03-03 Thread Anthony Liguori
Stefan Berger writes: > It depends on what one defends against. If a jail-break succeeds and > open() is disabled, then that attack surfaces was effectively reduced. > It's hard to say whether opening files within libvirt could then allow > new exploits. Well, in the very least, libvirt is do

Re: [Qemu-devel] virtio-rng and fd passing

2013-03-03 Thread Anthony Liguori
Paolo Bonzini writes: > Il 02/03/2013 04:13, Anthony Liguori ha scritto: >> There is no valid use-case of rng-random other than using /dev/random. >> In fact, it was probably a mistake to even allow a filename to be >> specified because it lets people do silly things (like /dev/urandom). >> >> I

Re: [Qemu-devel] [PATCH] build: compile gtk.c with special CFLAGS

2013-03-03 Thread Anthony Liguori
Blue Swirl writes: > Compile gtk.c with special CFLAGS instead of disabling -Werror globally. > > Signed-off-by: Blue Swirl I thought Kevin's pragma trick solved this problem? Are you attempting to avoid disabling Werror when prgram isn't available? That seems to defeat the purpose of doing t

Re: [Qemu-devel] [PATCH] configure: require spice-protocol >= 0.12.3

2013-03-03 Thread Doug Goldstein
On Sun, Mar 3, 2013 at 4:04 AM, Alon Levy wrote: > Required since v1.4.0-rc0 > > For SPICE_PORT_EVENT_BREAK used by spice-qemu-char.c since: > > commit 5a49d3e9a799b7e1bf87da7ae7f2a719e01da319 > Author: Marc-André Lureau > Date: Wed Dec 5 16:15:34 2012 +0100 > > spice-qemu-char: add spicepo

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-03 Thread Colin Watson
** Tags added: qemu-user-ubuntu -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1129571 Title: libreoffice armhf FTBFS Status in QEMU: New Status in “qemu” package in Ubuntu: Confirmed Bug desc

[Qemu-devel] [PATCH] configure: require spice-protocol >= 0.12.3

2013-03-03 Thread Alon Levy
Required since v1.4.0-rc0 For SPICE_PORT_EVENT_BREAK used by spice-qemu-char.c since: commit 5a49d3e9a799b7e1bf87da7ae7f2a719e01da319 Author: Marc-André Lureau Date: Wed Dec 5 16:15:34 2012 +0100 spice-qemu-char: add spiceport chardev Signed-off-by: Alon Levy --- configure | 2 +- 1 fi

[Qemu-devel] [PATCH v4 2/2] pci: Teach PCI Bridges about VGA routing

2013-03-03 Thread Alex Williamson
Each PCI Bridge has a set of implied VGA regions that are enabled when the VGA bit is set in the bridge control register. This allows VGA devices behind bridges. Unfortunately with VGA Enable, which we formerly allowed but didn't back, comes along some required VGA baggage. VGA Palette Snooping

[Qemu-devel] [PATCH v4 1/2] pci: Add PCI VGA helpers

2013-03-03 Thread Alex Williamson
Allow devices to register VGA memory regions for handling PCI spec defined VGA I/O port and MMIO areas. PCI will attach these to the bus address spaces and enable them according to the device command register value. Signed-off-by: Alex Williamson --- hw/pci/pci.c | 61

[Qemu-devel] [PATCH v4 0/2] PCI learns about VGA

2013-03-03 Thread Alex Williamson
Bridges aren't the only thing that needs to know about VGA, any class VGA device can register for VGA. This adds infrastructure to PCI to allow devices to register VGA regions and incorporates the previous PCI bridge only patch to also make use of this. vfio-pci will also use the pci_register_vga

Re: [Qemu-devel] [PATCH v7 1/4] Add moxie target code

2013-03-03 Thread Blue Swirl
On Sun, Mar 3, 2013 at 1:07 PM, Anthony Green wrote: > > Signed-off-by: Anthony Green > --- > target-moxie/Makefile.objs |2 + > target-moxie/cpu.c | 172 > target-moxie/cpu.h | 170 > target-moxie/helper.c | 170 > target-moxie/helper.h

Re: [Qemu-devel] [PATCH v7 2/4] Add moxie disassembler

2013-03-03 Thread Blue Swirl
On Sun, Mar 3, 2013 at 1:07 PM, Anthony Green wrote: > > Signed-off-by: Anthony Green > --- > disas.c | 6 + > disas/Makefile.objs | 1 + > disas/moxie.c | 360 > > include/disas/bfd.h | 66 +- > 4 files changed

Re: [Qemu-devel] [PATCH 0/6] Drop the irredeemably racy cpu_unlink_tb()

2013-03-03 Thread Blue Swirl
Thanks, applied all. On Fri, Feb 22, 2013 at 6:09 PM, Peter Maydell wrote: > This patch series gets rid of cpu_unlink_tb(), which is irredeemably > racy, since it modifies the TB graph with no locking from other > threads, signal handlers, etc etc. (The signal handler case is > why you can't just

Re: [Qemu-devel] [PATCH] sysbus: Guard against NULL SysBusDevice::init fn

2013-03-03 Thread Peter Maydell
On 3 March 2013 21:19, Andreas Färber wrote: > Am 03.03.2013 06:30, schrieb Peter Crosthwaite: >> Fix by guarding the call to SysBusDevice::init against a NULL pointer. If no >> pointer is defined return 0 without action. >> >> Signed-off-by: Peter Crosthwaite > > While the patch is correct, I be

Re: [Qemu-devel] [PATCH 0/6] Drop the irredeemably racy cpu_unlink_tb()

2013-03-03 Thread Peter Maydell
Ping! thanks -- PMM On 23 February 2013 02:09, Peter Maydell wrote: > This patch series gets rid of cpu_unlink_tb(), which is irredeemably > racy, since it modifies the TB graph with no locking from other > threads, signal handlers, etc etc. (The signal handler case is > why you can't just fix t

[Qemu-devel] [PATCH 3/3] net: make netclient re-entrant with refcnt

2013-03-03 Thread Liu Ping Fan
From: Liu Ping Fan With refcnt, NetClientState's caller can run agaist reclaimer. Signed-off-by: Liu Ping Fan --- hw/qdev-properties-system.c | 14 ++ include/net/net.h |3 +++ net/hub.c | 29 - net/net.c

[Qemu-devel] [PATCH 2/3] net: introduce lock to protect NetClientState's send_queue

2013-03-03 Thread Liu Ping Fan
From: Liu Ping Fan Use nc->transfer_lock to protect the nc->peer->send_queue. All of the deleter and senders will sync on this lock, so we can also survive across unplug. Signed-off-by: Liu Ping Fan --- include/net/net.h |4 +++ include/net/queue.h |1 + net/hub.c | 21 ++

[Qemu-devel] [PATCH 1/3] net: spread hub on AioContexts

2013-03-03 Thread Liu Ping Fan
From: Liu Ping Fan Forward packet to other hub ports by their AioContext. Signed-off-by: Liu Ping Fan --- hw/qdev-properties-system.c |1 + include/block/aio.h |1 + include/net/net.h |5 + include/net/queue.h | 14 ++ main-loop.c

[Qemu-devel] [PATCH 0/3] *** make netlayer re-entrant ***

2013-03-03 Thread Liu Ping Fan
From: Liu Ping Fan This series aim to make netlayer re-entrant, so netlayer can run out of biglock safely. Liu Ping Fan (3): net: spread hub on AioContexts net: introduce lock to protect NetClientState's send_queue net: make netclient re-entrant with refcnt hw/qdev-properties-system.c |

Re: [Qemu-devel] [PATCH] sysbus: Guard against NULL SysBusDevice::init fn

2013-03-03 Thread Andreas Färber
Am 03.03.2013 06:30, schrieb Peter Crosthwaite: > In certain cases a device model can init with neither a Device::realize or > SysBusDevice::init (i.e. when its possible to do everything in Object::init). > In this case, the device model should be able to leave both SysBusDevice::init > and Device:

Re: [Qemu-devel] [PATCH v12 rebased] kvm: notify host when the guest is panicked

2013-03-03 Thread Gleb Natapov
On Fri, Mar 01, 2013 at 09:03:12PM -0300, Marcelo Tosatti wrote: > On Thu, Feb 28, 2013 at 04:54:25PM +0800, Hu Tao wrote: > > > > diff --git a/arch/x86/include/uapi/asm/kvm_para.h > > > > b/arch/x86/include/uapi/asm/kvm_para.h > > > > index 06fdbd9..c15ef33 100644 > > > > --- a/arch/x86/include/u

[Qemu-devel] [PATCH v7 4/4] Add top level changes for moxie

2013-03-03 Thread Anthony Green
Signed-off-by: Anthony Green --- MAINTAINERS | 5 + arch_init.c | 2 ++ configure | 9 - cpu-exec.c| 2 ++ default-configs/moxie-softmmu.mak | 2 ++ qapi-schema.json | 6 +++--

[Qemu-devel] [PATCH v7 1/4] Add moxie target code

2013-03-03 Thread Anthony Green
Signed-off-by: Anthony Green --- target-moxie/Makefile.objs |2 + target-moxie/cpu.c | 172 target-moxie/cpu.h | 170 target-moxie/helper.c | 170 target-moxie/helper.h |9 + target-moxie/machine.c | 27 ++ target-moxie/machin

[Qemu-devel] [PATCH v7 3/4] Add sample moxie system

2013-03-03 Thread Anthony Green
Signed-off-by: Anthony Green --- hw/moxie/Makefile.objs | 6 ++ hw/moxie/moxiesim.c| 174 + include/sysemu/arch_init.h | 1 + 3 files changed, 181 insertions(+) create mode 100644 hw/moxie/Makefile.objs create mode 100644 hw/moxie/mox

[Qemu-devel] [PATCH v7 2/4] Add moxie disassembler

2013-03-03 Thread Anthony Green
Signed-off-by: Anthony Green --- disas.c | 6 + disas/Makefile.objs | 1 + disas/moxie.c | 360 include/disas/bfd.h | 66 +- 4 files changed, 401 insertions(+), 32 deletions(-) create mode 100644 disas/moxie.c

[Qemu-devel] [PATCH v7 0/4] Moxie CPU port

2013-03-03 Thread Anthony Green
This version consolidates the helper file (helper.c & op_helper.c) and addresses the signed division of INT_MIN by -1 issue (which is now == 0x800). Hopefully this is looking much better to everybody now. Thanks! AG Anthony Green (4): Add moxie target code Add moxie disassembler Add

[Qemu-devel] [Bug 1129571] Re: libreoffice armhf FTBFS

2013-03-03 Thread John Rigby
I see the same thing javac hanging. This is with a raring chroot on raring host with qemu compiled from upstream 1.4.0 plus Peter's patches and my linux-user patches -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launch

Re: [Qemu-devel] [RFC PATCH v1 1/4] qemu-log: Allow checking of the current mask

2013-03-03 Thread Peter Maydell
On 3 March 2013 06:13, Peter Crosthwaite wrote: > Useful for heavy users of qemu_log_mask that want to avoid executing expensive > logic that sets up a qemu_log_mask when that mask is disabled. E.G. > > if (qemu_log_get_mask() && LOG_GUEST_ERROR) { > /* do my expensive logging data query *

Re: [Qemu-devel] Advice on some configuration parameters

2013-03-03 Thread Alon Levy
> Il 01/03/2013 13:45, Paolo Bonzini ha scritto: > > Il 12/02/2013 14:05, Fabio Fantoni ha scritto: > >> I'm making patches to enable some qemu upstream features in xen > >> that are > >> missing in libxl. > >> I'm trying to do it just by giving arguments to qemu, and I want > >> them to > >> be dy

[Qemu-devel] [PULL] virtio,vhost,pci,e1000

2013-03-03 Thread Michael S. Tsirkin
The following changes since commit 864a556e9a800116a305f10fbb714268ca7e9bc3: Merge remote-tracking branch 'kwolf/for-anthony' into staging (2013-02-26 07:44:39 -0600) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony for you to fet

[Qemu-devel] [PATCH] build: compile gtk.c with special CFLAGS

2013-03-03 Thread Blue Swirl
Compile gtk.c with special CFLAGS instead of disabling -Werror globally. Signed-off-by: Blue Swirl --- configure| 12 +++- ui/Makefile.objs |2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 19738ac..2a043d6 100755 --- a/confi

Re: [Qemu-devel] Block I/O optimizations

2013-03-03 Thread Abel Gordon
Stefan Hajnoczi wrote on 01/03/2013 12:54:54 PM: > On Thu, Feb 28, 2013 at 08:20:08PM +0200, Abel Gordon wrote: > > Stefan Hajnoczi wrote on 28/02/2013 04:43:04 PM: > > > I think extending and tuning the existing mechanisms is the way to go. > > > I don't see obvious advantages other than red

Re: [Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest

2013-03-03 Thread Gleb Natapov
On Thu, Feb 28, 2013 at 08:13:10PM +0800, Hu Tao wrote: > This series implements a new interface, kvm pv event, to notify host when > some events happen in guest. Right now there is one supported event: guest > panic. > What other event do you have in mind? Is interface generic enough to accommoda

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-03 Thread Blue Swirl
On Sun, Mar 3, 2013 at 6:13 AM, Peter Crosthwaite wrote: > This struct and functions provide some encapsulation of the uint32_t type to > make it more friendly for use as guest accessible device state. Bits of device > state (usually MMIO registers), often have all sorts of access restrictions > a