[Qemu-devel] In OHCI the HC will sent packet to each attached port?

2012-02-19 Thread Wei Yang
All In function ohci_service_td() , there is a loop. for (i = 0; i ohci-num_ports; i++) { dev = ohci-rhport[i].port.dev; if ((ohci-rhport[i].ctrl OHCI_PORT_PES) == 0) continue; if (ohci-async_td) { /* ??? The hardware

Re: [Qemu-devel] [patch] qemu-1.0.1/VERSION

2012-02-19 Thread Stefan Weil
Am 19.02.2012 01:05, schrieb Kenneth Salerno: Hello, The VERSION file in stable release qemu-1.0.1 has what I believe might be a typo: 1.0,1 rather than 1.0.1. This is causing a parsing issue for windres.exe in Win32 which chokes on: #define CONFIG_FILEVERSION 1,0,1,0,1,0 #define

[Qemu-devel] [PATCH v4] qemu-ga: Add guest-network-info command

2012-02-19 Thread Michal Privoznik
This command returns an array of: [ifname, ipaddr, ipaddr_family, prefix, hwaddr] for each interface in the system that has an IP address. Currently, only IPv4 and IPv6 are supported. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- diff to v3: -use ctpop32() instead of separate

Re: [Qemu-devel] [PATCH] Add object_property_get_child().

2012-02-19 Thread Alexander Barabash
On 02/17/2012 12:17 PM, Paolo Bonzini wrote: Besides the non-triviality of the patch, how is this different from object_property_get_link? Perhaps we should just rename that one to object_property_get_obj, or add a function that is just a synonym. As for the patch's (non-)triviality, I just

Re: [Qemu-devel] Curious about this code in the ohci_service_td()

2012-02-19 Thread Peter Maydell
On 19 February 2012 07:56, Wei Yang weiyang.ker...@gmail.com wrote: 2012/2/19 Peter Maydell peter.mayd...@linaro.org: On 18 February 2012 16:19, Wei Yang weiyang.ker...@gmail.com wrote: I am reading the code in ohci_service_td(). There is a calculation of the length of the buffer.        if

Re: [Qemu-devel] [PATCH V7 08/11] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-02-19 Thread Michael S. Tsirkin
On Fri, Feb 17, 2012 at 05:08:42PM +, Anthony PERARD wrote: From: Allen Kay allen.m@intel.com A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay allen.m@intel.com Signed-off-by: Guy Zana g...@neocleus.com

Re: [Qemu-devel] [PATCH V7 06/11] pci.c: Add pci_check_bar_overlap

2012-02-19 Thread Michael S. Tsirkin
On Fri, Feb 17, 2012 at 05:08:40PM +, Anthony PERARD wrote: From: Yuji Shimada shimada-...@necst.nec.co.jp This function helps Xen PCI Passthrough device to check for overlap. Signed-off-by: Yuji Shimada shimada-...@necst.nec.co.jp Signed-off-by: Anthony PERARD

Re: [Qemu-devel] [RFC] Replication agent design (was [RFC PATCH] replication agent module)

2012-02-19 Thread Ori Mamluk
On 08/02/2012 16:59, Stefan Hajnoczi wrote: On Wed, Feb 8, 2012 at 1:28 PM, Ori Mamlukomam...@zerto.com wrote: You mentioned a future feature that sends request metadata (offset, length) to the rephub synchronously so that protection is 100%. (Otherwise a network failure or crash might result

[Qemu-devel] [PATCH 1/2] qemu-img: fix segment fault when the image format is qed

2012-02-19 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com [root@f15 qemu]# qemu-img info /home/zwu/work/misc/rh6.img image: /home/zwu/work/misc/rh6.img file format: qed virtual size: 4.0G (4294967296 bytes) disk size: 1.2G cluster_size: 65536 Segmentation fault (core dumped) Today when i were fixing another

[Qemu-devel] [PATCH 2/2] qemu-io: fix segment fault when the image format is qed

2012-02-19 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com [root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed cluster size: 64 KiB vm state offset: 0.00 bytes Segmentation fault (core dumped) This reason is same as the former patch Signed-off-by: Zhi Yong Wu

[Qemu-devel] [PATCH 2/2] qemu-io: fix segment fault when the image format is qed

2012-02-19 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com [root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed cluster size: 64 KiB vm state offset: 0.00 bytes Segmentation fault (core dumped) This reason is same as the former patch Signed-off-by: Zhi Yong Wu

Re: [Qemu-devel] [PATCHv2-RFC 2/2] pci: add standard bridge device

2012-02-19 Thread Michael S. Tsirkin
On Fri, Feb 17, 2012 at 02:25:56PM +0100, Gerd Hoffmann wrote: Hi, +/* If we don't specify the name, the bus will be addressed as id.0, where + * id is the parent id. But it seems more natural to address the bus using + * the parent device name. */ +if

[Qemu-devel] [PATCH] block: fix block I/O throtting with IDE

2012-02-19 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-)

Re: [Qemu-devel] [QEMU] net: adapt dump to support the new syntax

2012-02-19 Thread Michael S. Tsirkin
On Fri, Feb 17, 2012 at 10:55:40AM +, Stefan Hajnoczi wrote: On Fri, Feb 17, 2012 at 6:54 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: I would like to know if some one is playing around with the patchset. If yes, can any one make one response? I am very interested in rebasing it, and

Re: [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE

2012-02-19 Thread Andreas Färber
Am 19.02.2012 16:16, schrieb zwu.ker...@gmail.com: From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference. Fix is never a good patch description. ;) In place of the above sentence,

[Qemu-devel] Sparc Softmmu

2012-02-19 Thread P. Wilhelm
I've been able to install Solaris 8 using CDs on the Sparc Softmmu client system. Kudos to those responsible for Sparc development! I've been able to run a number of applications without problems on the client machine. I noticed something odd, however, and have been trying to isolate the

[Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-19 Thread Alexander Barabash
Add object_property_get_child(). Adding a direct accessor to a child property. In the existing implementation, object_property_get() must be used, with with a visitor, implementing the 'type_str' callback, receiving the child's canonical path. In the new

Re: [Qemu-devel] [PATCH 2/2] pci: rewrite devaddr parsing

2012-02-19 Thread Michael S. Tsirkin
On Fri, Feb 17, 2012 at 01:35:02PM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: On Thu, Feb 16, 2012 at 01:39:02PM -0700, Eric Blake wrote: On 02/16/2012 12:23 PM, malc wrote: On Thu, 16 Feb 2012, Michael S. Tsirkin wrote: Use scanf instead of manual

[Qemu-devel] [PATCH] pci: make another unused extern function static

2012-02-19 Thread Michael S. Tsirkin
Make pci_find_bus static and rename to pci_find_bus_nr to match functionality. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/pci.c | 15 --- hw/pci.h |1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 8abc986..31d6a5f

Re: [Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-19 Thread Andreas Färber
Am 19.02.2012 17:04, schrieb Alexander Barabash: Add object_property_get_child(). Adding a direct accessor to a child property. In the existing implementation, object_property_get() must be used, with with a visitor, implementing the 'type_str' callback, receiving

Re: [Qemu-devel] [PATCH v2] Revised: Add object_property_get_child().

2012-02-19 Thread Peter Maydell
On 19 February 2012 17:14, Andreas Färber afaer...@suse.de wrote: Am 19.02.2012 17:04, schrieb Alexander Barabash: +    return g_strndup(type[sizeof(LINK_PROPERTY_TYPE_PREFIX) - 1], +                     strlen(type) +                     - (sizeof(LINK_PROPERTY_TYPE_PREFIX) - 1) +            

Re: [Qemu-devel] [PATCH 2/2] pci: rewrite devaddr parsing

2012-02-19 Thread Michael S. Tsirkin
On Fri, Feb 17, 2012 at 01:35:02PM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: On Thu, Feb 16, 2012 at 01:39:02PM -0700, Eric Blake wrote: On 02/16/2012 12:23 PM, malc wrote: On Thu, 16 Feb 2012, Michael S. Tsirkin wrote: Use scanf instead of manual

Re: [Qemu-devel] In OHCI the HC will sent packet to each attached port?

2012-02-19 Thread Peter Maydell
On 19 February 2012 08:06, Wei Yang weiyang.ker...@gmail.com wrote: In function ohci_service_td() , there is a loop. This code changed recently (see commit 993048bb) so it's probably not terribly interesting to try to reason about the old version. -- PMM

Re: [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE

2012-02-19 Thread Chris Webb
zwu.ker...@gmail.com writes: The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference. I would indeed quite like to backport this to qemu 1.0! Am I right in thinking the sanest way to do this is to apply 922453bca6a9 to bring all

Re: [Qemu-devel] [PATCH 2/2] qemu-io: fix segment fault when the image format is qed

2012-02-19 Thread Christoph Hellwig
On Sun, Feb 19, 2012 at 10:24:59PM +0800, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com [root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed cluster size: 64 KiB vm state offset: 0.00 bytes Segmentation fault (core dumped) This

[Qemu-devel] [RFC 0/7] qxl: fix hangs caused by qxl_render_update

2012-02-19 Thread Alon Levy
This is the second attempt to fix this issue, as a lesson from the last time it doesn't try to use an async monitor command. So with this patchset, in qxl mode, a screendump monitor command will complete before the file is written to disk. This is much better then a hang. To fix it does require

[Qemu-devel] [RFC 1/7] sdl: remove NULL check, g_malloc0 can't fail

2012-02-19 Thread Alon Levy
Signed-off-by: Alon Levy al...@redhat.com --- ui/sdl.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index 6f8091c..f6f711c 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -167,10 +167,6 @@ static PixelFormat sdl_to_qemu_pixelformat(SDL_PixelFormat

[Qemu-devel] [RFC 7/7] qxl: add allocator

2012-02-19 Thread Alon Levy
Add an implementation of the DisplayAllocator callbacks for qxl. Uses the QEMU_ALLOCATED_FLAG to ensure vga/vga_draw_graphic does the 24 to 32 bits per pixel line convertion. Since free/resize/create are defined in qxl.c, it is easy to ensure consistent usage of the flag (it means QXL_ALLOCATED

Re: [Qemu-devel] Sparc Softmmu

2012-02-19 Thread Mark Cave-Ayland
On 19/02/12 15:45, P. Wilhelm wrote: Hi Paul, I've been able to install Solaris 8 using CDs on the Sparc Softmmu client system. Kudos to those responsible for Sparc development! I've been able to run a number of applications without problems on the client machine. I noticed something odd,

[Qemu-devel] [RFC 5/7] qxl-render: call ppm_save on callback

2012-02-19 Thread Alon Levy
This changes the behavior of the monitor command. After the previous patch, there is no longer an option of deadlock with virt-manager, but ppm_save is called too early, before the update has completed. With this patch it is called at the correct moment, but that means there is a race between the

[Qemu-devel] [RFC 2/7] qxl: drop qxl_spice_update_area_async definition

2012-02-19 Thread Alon Levy
It was never used. Introduced in 5ff4e36c804157bd84af43c139f8cd3a59722db9 qxl: async io support using new spice api But not used even then. Signed-off-by: Alon Levy al...@redhat.com --- hw/qxl.h |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/qxl.h b/hw/qxl.h

[Qemu-devel] [RFC 3/7] qxl: introduce QXLCookie

2012-02-19 Thread Alon Levy
Will be used in the next patch. Signed-off-by: Alon Levy al...@redhat.com --- hw/qxl-render.c|2 +- hw/qxl.c | 65 +-- hw/qxl.h |2 +- ui/spice-display.c | 26 ++-- ui/spice-display.h | 12

[Qemu-devel] [RFC 6/7] qxl: use spice_qxl_update_area_dirty_async

2012-02-19 Thread Alon Levy
--- hw/qxl.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 2409cb3..6e25bd1 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -150,17 +150,16 @@ void qxl_spice_update_area(PCIQXLDevice *qxl, uint32_t surface_id,

Re: [Qemu-devel] [patch] qemu-1.0.1/VERSION

2012-02-19 Thread Justin M. Forbes
On Sun, Feb 19, 2012 at 11:51:25AM +0100, Stefan Weil wrote: Am 19.02.2012 01:05, schrieb Kenneth Salerno: Hello, The VERSION file in stable release qemu-1.0.1 has what I believe might be a typo: 1.0,1 rather than 1.0.1. This is causing a parsing issue for windres.exe in Win32 which

[Qemu-devel] [RFC 4/7] qxl: make qxl_render_update async

2012-02-19 Thread Alon Levy
RHBZ# 747011 Removes the last user of QXL_SYNC when using update drivers that use the _ASYNC io ports. The last user is qxl_render_update, it is called both by qxl_hw_update which is the vga_hw_update_ptr passed to graphic_console_init, and by qxl_hw_screen_dump. At the same time the QXLRect

[Qemu-devel] [PATCH] arm: make sure that number of irqs can be represented in GICD_TYPER.

2012-02-19 Thread Rusty Russell
We currently assume that the number of interrupts (ITLinesNumber in the architecture reference manual) is divisible by 32, since we present it to the guest when it reads GICD_TYPER (in gic_dist_readb()) as (N - 32) / 1. Signed-off-by: Rusty Russell ru...@rustcorp.com.au diff --git a/hw/arm_gic.c

[Qemu-devel] [PATCH 1/2] arm: clean up GIC constants.

2012-02-19 Thread Rusty Russell
Interrupts numbers 0-31 are private to the processor interface, 32-1019 are general interrups. Add GIC_INTERNAL and substitute everywhere. Signed-off-by: Rusty Russell ru...@rustcorp.com.au diff --git a/hw/arm_gic.c b/hw/arm_gic.c index cf582a5..fa6a60a 100644 --- a/hw/arm_gic.c +++

Re: [Qemu-devel] [Android-virt] [PATCH] arm: make sure that number of irqs can be represented in GICD_TYPER.

2012-02-19 Thread Christoffer Dall
On Sun, Feb 19, 2012 at 6:07 PM, Rusty Russell ru...@rustcorp.com.au wrote: We currently assume that the number of interrupts (ITLinesNumber in the architecture reference manual) is divisible by 32, since we present it to the guest when it reads GICD_TYPER (in gic_dist_readb()) as (N - 32) /

[Qemu-devel] [PATCH] pci_bridge: user-friendly default bus name

2012-02-19 Thread Michael S. Tsirkin
For a pci bridge device, if we don't override the name with custom code, the bus will be addressed as id.0, where id is the id specified by the user. Since PCI Bridge devices have a single bus each, we don't need the index: address the bus using the parent device name. This is better since this

Re: [Qemu-devel] [PATCHv2-RFC 2/2] pci: add standard bridge device

2012-02-19 Thread Michael S. Tsirkin
On Sun, Feb 19, 2012 at 04:57:07PM +0200, Michael S. Tsirkin wrote: On Fri, Feb 17, 2012 at 02:25:56PM +0100, Gerd Hoffmann wrote: Hi, +/* If we don't specify the name, the bus will be addressed as id.0, where + * id is the parent id. But it seems more natural to address

[Qemu-devel] [PATCH 1/6] console: allow VCs to be overridden by UI

2012-02-19 Thread Anthony Liguori
We want to expose VCs using a VteTerminal widget. We need access to provide our own CharDriverState in order to do this. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- console.c | 14 +- console.h |6 +- qemu-char.c |2 +- 3 files changed, 19 insertions(+),

[Qemu-devel] [PATCH 2/6] ui: add basic GTK gui

2012-02-19 Thread Anthony Liguori
This is minimalistic and just contains the basic widget infrastructure. The GUI consists of a menu and a GtkNotebook. To start with, the notebook has its tabs hidden which provides a UI that looks very similar to SDL with the exception of the menu bar. The menu bar allows a user to toggle the

[Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen

2012-02-19 Thread Anthony Liguori
Basic menu items to enter full screen mode and zoom in/out. Unlike SDL, we don't allow arbitrary scaling based on window resizing. The current behavior with SDL causes a lot of problems for me. Sometimes I accidentally resize the window a tiny bit while trying to move it (Ubuntu's 1-pixel

[Qemu-devel] [PATCH 3/6] gtk: add virtual console support

2012-02-19 Thread Anthony Liguori
This enables VteTerminal to be used to render the text consoles. VteTerminal is the same widget used by gnome-terminal which means it's VT100 emulation is as good as they come. It's also screen reader accessible, supports copy/paste, proper scrolling and most of the other features you would

[Qemu-devel] [PATCH 4/6] gtk: add support for input grabbing

2012-02-19 Thread Anthony Liguori
There is a small deviation from SDL's behavior here. Instead of Ctrl+Alt triggering grab, we now use Ctrl-Alt-g to trigger grab. GTK will not accept Ctrl+Alt as an accelerator since it just consists of modifiers. Having grab as a proper accelerator is important as it allows a user to override

[Qemu-devel] [PATCH] qom: Fix object_initialize_with_type() assertion

2012-02-19 Thread Andreas Färber
Assert the object is at least sizeof(Object), not sizeof(ObjectClass). Signed-off-by: Andreas Färber afaer...@suse.de --- qom/object.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qom/object.c b/qom/object.c index b1ead15..dbfd6a4 100644 --- a/qom/object.c +++

[Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Anthony Liguori
A user can still enable SDL with '-sdl' or '-display sdl' but start making the default display GTK by default. I'd also like to deprecate the SDL display and remove it in a few releases. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- vl.c | 38 -- 1

Re: [Qemu-devel] [PATCH 0/6] Add GTK UI to enable basic accessibility

2012-02-19 Thread Anthony Liguori
Some screen shots: http://www.codemonkey.ws/files/qemu-gtk/ Regards, Anthony Liguori On 02/19/2012 05:44 PM, Anthony Liguori wrote: Hi, I realize UIs are the third rail of QEMU development, but over the years I've gotten a lot of feedback from users about our UI. I think everyone struggles

[Qemu-devel] [PATCH 0/6] Add GTK UI to enable basic accessibility

2012-02-19 Thread Anthony Liguori
Hi, I realize UIs are the third rail of QEMU development, but over the years I've gotten a lot of feedback from users about our UI. I think everyone struggles with the SDL interface and its lack of discoverability but it's worse than I think most people realize for users that rely on

Re: [Qemu-devel] [PATCH 4/6] gtk: add support for input grabbing

2012-02-19 Thread Anthony Liguori
On 02/19/2012 05:45 PM, Anthony Liguori wrote: There is a small deviation from SDL's behavior here. Instead of Ctrl+Alt triggering grab, we now use Ctrl-Alt-g to trigger grab. GTK will not accept Ctrl+Alt as an accelerator since it just consists of modifiers. Having grab as a proper

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Roy Tam
2012/2/20 Anthony Liguori aligu...@us.ibm.com: A user can still enable SDL with '-sdl' or '-display sdl' but start making the default display GTK by default. I'd also like to deprecate the SDL display and remove it in a few releases. So, will a win32 native UI be written? If not, it will be

[Qemu-devel] [PATCH v2 0/4] RTC: New logic to emulate RTC

2012-02-19 Thread Zhang, Yang Z
Changes in v2: Add UIP check logic. Add logic that next second tick will occur in exactly 500ms later after setting the clock Current RTC emulation uses periodic timer(2 timers per second) to update RTC clock. And it will stop CPU staying at deep C-state for long period. Our experience shows

[Qemu-devel] [PATCH v2 1/4] RTC: Update the RTC clock only when reading it

2012-02-19 Thread Zhang, Yang Z
There has no need to use two periodic timer to update RTC time. In this patch, we only update it when guest reading it. Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- hw/mc146818rtc.c | 199 +++--- 1 files changed, 56 insertions(+), 143

[Qemu-devel] [PATCH v2 3/4] RTC:Add alarm support

2012-02-19 Thread Zhang, Yang Z
Use timer to emulate alarm. The timer is enabled when AIE is setting Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- hw/mc146818rtc.c | 187 ++ 1 files changed, 187 insertions(+), 0 deletions(-) diff --git a/hw/mc146818rtc.c

[Qemu-devel] [PATCH v2 4/4] RTC:Add UIP(update in progress) check logic

2012-02-19 Thread Zhang, Yang Z
The UIP(update in progress) is set when RTC is updating. We only consider the normal oscillator(32Khz) mode. When time base is 32kHz, the update cycle takes 1984us at the end of every second. And the update cycle begins 244us later after UIP is set. So the UIP is set in 2228us at end of every

[Qemu-devel] [PATCH v2 2/4] RTC:Add RTC update-ended interrupt logic

2012-02-19 Thread Zhang, Yang Z
Use timer to emulate RTC update-ended interrupt. The timer is enabled only when UIE is setting. Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- hw/mc146818rtc.c | 53 - 1 files changed, 48 insertions(+), 5 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v9 3/3] pc: Support system flash memory with pflash

2012-02-19 Thread Jordan Justen
On Mon, Jan 9, 2012 at 01:28, Kevin Wolf kw...@redhat.com wrote: Am 19.12.2011 23:19, schrieb Anthony Liguori: On 12/19/2011 03:25 PM, Jordan Justen wrote: On Mon, Dec 19, 2011 at 11:41, Anthony Liguorialigu...@us.ibm.com  wrote: On 12/15/2011 02:51 PM, Jordan Justen wrote: If a pflash image

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Anthony Liguori
On 02/19/2012 06:15 PM, Roy Tam wrote: 2012/2/20 Anthony Liguorialigu...@us.ibm.com: A user can still enable SDL with '-sdl' or '-display sdl' but start making the default display GTK by default. I'd also like to deprecate the SDL display and remove it in a few releases. So, will a win32

[Qemu-devel] [PATCH v6 0/4] Zynq-7000 EPP platform model

2012-02-19 Thread Peter A. G. Crosthwaite
This is a suite of Device models and a machine model for the Xilinx Zynq-7000 Extensible Processing Platform: http://www.xilinx.com/products/silicon-devices/epp/zynq-7000/index.htm This is an ARM based platform featuring embedded SoC peripherals. This patch series includes a minimal set of

[Qemu-devel] [PATCH v6 1/4] cadence_uart: initial version of device model

2012-02-19 Thread Peter A. G. Crosthwaite
Implemented cadence UART serial controller Signed-off-by: Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com Signed-off-by: John Linn john.l...@xilinx.com --- --- changed from v4: fixed FSF addess changed device_init - type_init changes from v1: converted register file to array added vmsd

[Qemu-devel] [PATCH v6 2/4] cadence_ttc: initial version of device model

2012-02-19 Thread Peter A. G. Crosthwaite
Implemented cadence Triple Timer Counter (TCC) Signed-off-by: Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com Signed-off-by: John Linn john.l...@xilinx.com --- changed from v4: fixed FSF addess changed device_init - type_init changed from v3: Fixed race condition where timer could miss

[Qemu-devel] [PATCH v6 4/4] xilinx_zynq: machine model initial version

2012-02-19 Thread Peter A. G. Crosthwaite
Xilinx zynq-7000 machine model. Also includes device model for the zynq-specific system level control register (SLCR) module. Signed-off-by: Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com --- changed from v5: removed usages of arm_boot_info-bootsmp_priv_base changed from v4: fixed FSF

[Qemu-devel] [PATCH v6 3/4] cadence_gem: initial version of device model

2012-02-19 Thread Peter A. G. Crosthwaite
Device model for cadence gem ethernet controller. Signed-off-by: Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com Signed-off-by: John Linn john.l...@xilinx.com --- changed from v4: changed device_init - type_init changes from v1: removed global init function marked vmsd as unmigratable

Re: [Qemu-devel] [PATCH v6 0/4] Zynq-7000 EPP platform model

2012-02-19 Thread Peter Crosthwaite
Forgot to update branch-name, should read: Tree is available from: git://developer.petalogix.com/private/peterc/qemu.git branch: zynq-initial.6 On Mon, Feb 20, 2012 at 11:45 AM, Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com wrote: This is a suite of Device models and a machine

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Roy Tam
2012/2/20 Anthony Liguori anth...@codemonkey.ws: On 02/19/2012 06:15 PM, Roy Tam wrote: 2012/2/20 Anthony Liguorialigu...@us.ibm.com: A user can still enable SDL with '-sdl' or '-display sdl' but start making the default display GTK by default. I'd also like to deprecate the SDL display

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Anthony Liguori
On Feb 19, 2012 7:50 PM, Roy Tam roy...@gmail.com wrote: 2012/2/20 Anthony Liguori anth...@codemonkey.ws: On 02/19/2012 06:15 PM, Roy Tam wrote: 2012/2/20 Anthony Liguorialigu...@us.ibm.com: A user can still enable SDL with '-sdl' or '-display sdl' but start making the default

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Brad Smith
On 19/02/12 8:10 PM, Anthony Liguori wrote: If not, it will be nice to keep SDL because GTK huge and not that portable for win32 users. Neither are true. GTK is a reasonably small dependency especially given that GLIB is a mandatory dependency. I can't imagine that in terms of binary size,

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Anthony Liguori
On 02/19/2012 08:24 PM, Brad Smith wrote: On 19/02/12 8:10 PM, Anthony Liguori wrote: If not, it will be nice to keep SDL because GTK huge and not that portable for win32 users. Neither are true. GTK is a reasonably small dependency especially given that GLIB is a mandatory dependency. I

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Roy Tam
2012/2/20 Anthony Liguori anth...@codemonkey.ws: On 02/19/2012 08:24 PM, Brad Smith wrote: On 19/02/12 8:10 PM, Anthony Liguori wrote: If not, it will be nice to keep SDL because GTK huge and not that portable for win32 users. Neither are true. GTK is a reasonably small dependency

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Brad Smith
On 19/02/12 9:44 PM, Anthony Liguori wrote: On 02/19/2012 08:24 PM, Brad Smith wrote: On 19/02/12 8:10 PM, Anthony Liguori wrote: If not, it will be nice to keep SDL because GTK huge and not that portable for win32 users. Neither are true. GTK is a reasonably small dependency especially

[Qemu-devel] [PATCH] slirp: Fix assertion failure on rejected DHCP requests

2012-02-19 Thread David Gibson
The guest network stack might DHCPREQUEST an address that the slirp built in dhcp server can't let it have - for example if the guest has an old leases file from another network configuration. In this case the dhcp server should and does reject the request and prepares to send a DHCPNAK to the

[Qemu-devel] [PATCH] Use DMADirection type for dma_bdrv_io

2012-02-19 Thread David Gibson
Currently dma_bdrv_io() takes a 'to_dev' boolean parameter to determine the direction of DMA it is emulating. We already have a DMADirection enum designed specifically to encode DMA directions. This patch uses it for dma_bdrv_io() as well. Signed-off-by: David Gibson da...@gibson.dropbear.id.au

Re: [Qemu-devel] [PATCH 6/6] gtk: make default UI

2012-02-19 Thread Anthony Liguori
On 02/19/2012 08:52 PM, Brad Smith wrote: On 19/02/12 9:44 PM, Anthony Liguori wrote: On 02/19/2012 08:24 PM, Brad Smith wrote: On 19/02/12 8:10 PM, Anthony Liguori wrote: If not, it will be nice to keep SDL because GTK huge and not that portable for win32 users. Neither are true. GTK is a

[Qemu-devel] [PATCH 3/2] arm: make sure that number of irqs can be represented in GICD_TYPER.

2012-02-19 Thread Rusty Russell
We currently assume that the number of interrupts (ITLinesNumber in the architecture reference manual) is divisible by 32, since we present it to the guest when it reads GICD_TYPER (in gic_dist_readb()) as (N / 32) - 1. Thanks to Christoffer Dall for undoing comment thinko. Signed-off-by: Rusty

Re: [Qemu-devel] [Android-virt] [PATCH] arm: make sure that number of irqs can be represented in GICD_TYPER.

2012-02-19 Thread Rusty Russell
On Sun, 19 Feb 2012 18:40:08 -0500, Christoffer Dall c.d...@virtualopensystems.com wrote: On Sun, Feb 19, 2012 at 6:07 PM, Rusty Russell ru...@rustcorp.com.au wrote: We currently assume that the number of interrupts (ITLinesNumber in the architecture reference manual) is divisible by 32,

Re: [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE

2012-02-19 Thread Zhi Yong Wu
On Sun, Feb 19, 2012 at 11:40 PM, Andreas Färber afaer...@suse.de wrote: Am 19.02.2012 16:16, schrieb zwu.ker...@gmail.com: From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference. Fix

[Qemu-devel] buildbot failure in qemu on block_openbsd_4.9

2012-02-19 Thread qemu
The Buildbot has detected a new failure on builder block_openbsd_4.9 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_openbsd_4.9/builds/132 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_openbsd49 Build

[Qemu-devel] [PATCH 1/2] block: add the support for draining the throttled request queue

2012-02-19 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com If one guest has multiple disks with enabling I/O throttling function separately, when draining activities are done, some requests maybe are in the throttled queue; So we need to restart them at first. Moreover, when only one disk need to be drained

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2012-02-19 Thread Jeff Snider
Lucid 10.04.4 amd64 host. 2.6.32-38-server. All packages up to date. Guest: Win 7 64bit 1Gb RAM (all in use in guest) 2 vproc VirtIO disk (virtio-win-0.1-22) VirtIO network 2 IDE cdroms VNC display virsh save:

[Qemu-devel] [PATCH 2/2] block: fix the inaccurate draining activities with block I/O throttling

2012-02-19 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- blockdev.c |4 ++-- hw/ide/macio.c |2 +- hw/ide/pci.c |3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/blockdev.c b/blockdev.c index 7a6613a..fa85c78 100644

Re: [Qemu-devel] [PATCH] block: fix block I/O throtting with IDE

2012-02-19 Thread Zhi Yong Wu
On Mon, Feb 20, 2012 at 5:18 AM, Chris Webb ch...@arachsys.com wrote: zwu.ker...@gmail.com writes: The patch is based on the latest QEMU upstream. If you will backport the patchset to QEMU 1.0, pls note the difference. I would indeed quite like to backport this to qemu 1.0! Am I right in

[Qemu-devel] buildbot failure in qemu on block_mingw32

2012-02-19 Thread qemu
The Buildbot has detected a new failure on builder block_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/132 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason:

Re: [Qemu-devel] [PATCH 2/2] qemu-io: fix segment fault when the image format is qed

2012-02-19 Thread Zhi Yong Wu
On Mon, Feb 20, 2012 at 5:24 AM, Christoph Hellwig h...@lst.de wrote: On Sun, Feb 19, 2012 at 10:24:59PM +0800, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com [root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img format name: qed cluster size: 64 KiB vm state

[Qemu-devel] [PULL] Zynq-7000 EPP platform model

2012-02-19 Thread Peter Crosthwaite
Pull Request for Zynq-7000 platform model initial support. The following changes since commit 99c7f87826337fa81f2f0f9baa9ca0a44faf90e9: input: send kbd+mouse events only to running guests. (2012-02-17 11:02:55 -0600) are available in the git repository at:

Re: [Qemu-devel] [PULL] Zynq-7000 EPP platform model

2012-02-19 Thread Andreas Färber
Am 20.02.2012 07:25, schrieb Peter Crosthwaite: Pull Request for Zynq-7000 platform model initial support. The following changes since commit 99c7f87826337fa81f2f0f9baa9ca0a44faf90e9: input: send kbd+mouse events only to running guests. (2012-02-17 11:02:55 -0600) are available in the

Re: [Qemu-devel] [PATCH v2 2/4] RTC:Add RTC update-ended interrupt logic

2012-02-19 Thread Paolo Bonzini
On 02/20/2012 01:25 AM, Zhang, Yang Z wrote: Use timer to emulate RTC update-ended interrupt. The timer is enabled only when UIE is setting. The timer needs to be enabled when UF is clear, not when UIE is set. If UIE is set but the update interrupt is masked you do not need to do anything; on

Re: [Qemu-devel] [PATCH v2 4/4] RTC:Add UIP(update in progress) check logic

2012-02-19 Thread Paolo Bonzini
On 02/20/2012 01:25 AM, Zhang, Yang Z wrote: When time base is 32kHz, the update cycle takes 1984us at the end of every second. And the update cycle begins 244us later after UIP is set. So the UIP is set in 2228us at end of every second. I think we can keep UIP set only for 244us, since our

Re: [Qemu-devel] [PATCH v2 0/4] RTC: New logic to emulate RTC

2012-02-19 Thread Paolo Bonzini
On 02/20/2012 01:24 AM, Zhang, Yang Z wrote: Changes in v2: Add UIP check logic. Add logic that next second tick will occur in exactly 500ms later after setting the clock Current RTC emulation uses periodic timer(2 timers per second) to update RTC clock. And it will stop CPU staying at

Re: [Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen

2012-02-19 Thread Paolo Bonzini
On 02/20/2012 12:45 AM, Anthony Liguori wrote: +static void gd_menu_zoom_in(GtkMenuItem *item, void *opaque) +{ +GtkDisplayState *s = opaque; + +s-scale_x *= 1.25; +s-scale_y *= 1.25; + +gd_resize(s-ds); +} + +static void gd_menu_zoom_out(GtkMenuItem *item, void *opaque)