Re: [Qemu-devel] Re: [patch 2/3] Add support for live block copy

2011-02-24 Thread Stefan Hajnoczi
On Wed, Feb 23, 2011 at 3:31 PM, Avi Kivity wrote: > On 02/23/2011 04:35 PM, Anthony Liguori wrote: >> >> QEMU uses the state database to store information that is created >> dynamically.  For instance, devices added through device_add.  A device >> added via -device wouldn't necessary get added t

Re: [Qemu-devel] VNC broken in cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37

2011-02-24 Thread Wen Congyang
At 02/25/2011 03:07 PM, Corentin Chary Write: > On Fri, Feb 25, 2011 at 7:48 AM, Gerhard Wiesinger > wrote: >> Hello, >> >> VNC updates don't work correctly in git version >> cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37 (was ok around 1-2 weeks ago). I >> guess was due to latest optimizations. >> >>

Re: [Qemu-devel] VNC broken in cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37

2011-02-24 Thread Corentin Chary
On Fri, Feb 25, 2011 at 7:48 AM, Gerhard Wiesinger wrote: > Hello, > > VNC updates don't work correctly in git version > cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37 (was ok around 1-2 weeks ago). I > guess was due to latest optimizations. > > E.g. booting DOS 6.22, entering some letter => not seen. W

[Qemu-devel] Re: [PATCH] fix vnc regression

2011-02-24 Thread Corentin Chary
On Fri, Feb 25, 2011 at 7:26 AM, Wen Congyang wrote: > This patch fix the following two regressions: > 1. we should use bitmap_set() and bitmap_clear() to replace vnc_set_bits(). > 2. The unit of bitmap_intersects()'third parameter is bit, not words. >   But we pass the num of words to bitmap_inte

[Qemu-devel] VNC broken in cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37

2011-02-24 Thread Gerhard Wiesinger
Hello, VNC updates don't work correctly in git version cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37 (was ok around 1-2 weeks ago). I guess was due to latest optimizations. E.g. booting DOS 6.22, entering some letter => not seen. When you press enter => OK. VNC Viewer: UltraVNC 1.0.9.5, Auto se

[Qemu-devel] Better than Groupon & Deal Connex | All Free TheCustomerAdvantage

2011-02-24 Thread TheCustomerAdvantageEdge
TheCustomerAdvantage is better than Groupon and is built the same way, but you get paid! We continue to grow rapidly. No Enrollment and Monthly Fee and You get paid! Very quickly our membership has grown from 5 friends to 35880 Team Members. www.Clickpay.TheCustomerAdvantage.com Thanks Curt

[Qemu-devel] Better than Groupon & Deal Connex | All Free TheCustomerAdvantage

2011-02-24 Thread TheCustomerAdvantageEdge
TheCustomerAdvantage is better than Groupon and is built the same way, but you get paid! We continue to grow rapidly. No Enrollment and Monthly Fee and You get paid! Very quickly our membership has grown from 5 friends to 35880 Team Members. www.Clickpay.TheCustomerAdvantage.com Thanks Curt

[Qemu-devel] [PATCH] fix vnc regression

2011-02-24 Thread Wen Congyang
This patch fix the following two regressions: 1. we should use bitmap_set() and bitmap_clear() to replace vnc_set_bits(). 2. The unit of bitmap_intersects()'third parameter is bit, not words. But we pass the num of words to bitmap_intersects(). Signed-off-by: Wen Congyang --- ui/vnc.c |8

[Qemu-devel] [PATCH] net: Use iov helper functions

2011-02-24 Thread Jason Wang
Benjamin Poirier writes: > Signed-off-by: Benjamin Poirier > --- > net.c | 28 ++-- > 1 files changed, 6 insertions(+), 22 deletions(-) > Looks good. Acked-by: Jason Wang > diff --git a/net.c b/net.c > index ec4745d..15ed40b 100644 > --- a/net.c > +++ b/net

Re: [Qemu-devel] [PATCH] Remove a detached device from qemu_device_opts.

2011-02-24 Thread Minoru Usui
Hi, William, Markus and other people. On Wed, 23 Feb 2011 10:42:02 +0100 William Dauchy wrote: > Hi Minoru, > > On Tue, Feb 15, 2011 at 3:32 AM, Minoru Usui wrote: > > I can reproduce, too. > > But strangely, it don't occur in case of loading acpiphp driver > > to the guest VM on below environ

Re: [Qemu-devel] null mac address

2011-02-24 Thread Wen Congyang
At 02/24/2011 10:40 PM, William Dauchy Write: > Hi, > > I got some troubles hot plugging network pci devices. An attach works > as expected but the mac address is still set to "00:00:00:00:00:00" on > the guest machine. I have to reboot the guest to get the correct mac > address. > I first tried t

Re: [Qemu-devel] [PATCH 08/58] vmstate: be able to store/save a pci device from a pointer

2011-02-24 Thread Isaku Yamahata
On Thu, Feb 24, 2011 at 06:57:05PM +0100, Juan Quintela wrote: > Signed-off-by: Juan Quintela > --- > hw/hw.h |8 > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/hw/hw.h b/hw/hw.h > index 0dfc053..f874dd0 100644 > --- a/hw/hw.h > +++ b/hw/hw.h > @@ -609,6 +609,14

Re: [Qemu-devel] null mac address

2011-02-24 Thread Wen Congyang
At 02/24/2011 10:40 PM, William Dauchy Write: > Hi, > > I got some troubles hot plugging network pci devices. An attach works > as expected but the mac address is still set to "00:00:00:00:00:00" on > the guest machine. I have to reboot the guest to get the correct mac > address. > I first tried t

Re: [Qemu-devel] Re: [PATCH 22/22] migration: Make state definitions local

2011-02-24 Thread Yoshiaki Tamura
2011/2/24 Anthony Liguori : > On 02/24/2011 06:23 AM, Juan Quintela wrote: >> >> Yoshiaki Tamura  wrote: >> >>> >>> 2011/2/23 Juan Quintela: >>> Yoshiaki Tamura  wrote: > > 2011/2/23 Juan Quintela: > >> >> > > Although you're right, I would prefer to keep it so th

Re: [Qemu-devel] Re: [PATCH 22/22] migration: Make state definitions local

2011-02-24 Thread Yoshiaki Tamura
2011/2/24 Juan Quintela : > Yoshiaki Tamura wrote: >> 2011/2/23 Juan Quintela : >>> Yoshiaki Tamura wrote: 2011/2/23 Juan Quintela : > Although you're right, I would prefer to keep it so that somebody outside of migration may understand the status in the future if there are no

[Qemu-devel] [PATCH] Outdated comment in HACKING

2011-02-24 Thread Joey Trebbien
All printf-style functions in the source (except for a few in tests/) already have a format __attribute__ (via the GCC_ATTR or GCC_FMT_ATTR macros). Signed-off-by: Joseph Trebbien --- HACKING | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/HACKING b/HACKING index 6ba9d7e.

Re: [Qemu-devel] [PATCH 00/17 v3] LatticeMico32 target

2011-02-24 Thread Michael Walle
Am Donnerstag 17 Februar 2011, 23:45:01 schrieb Michael Walle: > This patchset adds support for the LatticeMico32 softcore processor by > Lattice Semiconductor. > > Changes since v2: > - lots of CODING_STYLE fixes > - reworked pic and juart model, CPUState is not passed anymore > - use qdev res

Re: [Qemu-devel] [PATCH v3 00/16] vnc: adapative tight, zrle, zywrle, and bitmap module

2011-02-24 Thread Corentin Chary
> Is there a special reason why you use __always_inline > instead of inline in bitops.h? Because it's not only a hint, I really want this function to be inlined. > This breaks compilation for mingw :-( > > mingw also fails at timersub() in vnc.c. Then we should defined timersub when not availabl

[Qemu-devel] [PATCH] bitops: fix test_and_change_bit()

2011-02-24 Thread Corentin Chary
./bitops.h:192: warning: ‘old’ is used uninitialized in this function Signed-off-by: Corentin Chary --- bitops.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bitops.h b/bitops.h index ae7bcb1..e2b9df3 100644 --- a/bitops.h +++ b/bitops.h @@ -187,7 +187,7 @@ static in

[Qemu-devel] [RFC PATCH 0/3] Make kvm-unit-tests more friendly to upstream QEMU

2011-02-24 Thread Anthony Liguori
This series makes an attempt to make kvm-unit-tests more friendly to upstream QEMU. I've been writing unit tests for all of the QMP commands and many of them, like ballooning, require guest cooperation to be tested in a meaningful way. I'm leaning towards building simple guests using libcflat in

[Qemu-devel] [PATCH 2/3] kvm-unit-tests: do not set level sensitive irq when initializing the PIC

2011-02-24 Thread Anthony Liguori
I'm not sure if this was intentional but the QEMU i8259 does not support this flag. I haven't observed any issues with this but I'll happily admit that I'm not very aware of what I'm doing here. Signed-off-by: Anthony Liguori diff --git a/lib/x86/apic.c b/lib/x86/apic.c index 7bb98ed..2c2afb7 1

[Qemu-devel] [PATCH 1/3] kvm-unit-tests: add x86 port io accessors

2011-02-24 Thread Anthony Liguori
Signed-off-by: Anthony Liguori diff --git a/lib/x86/io.h b/lib/x86/io.h new file mode 100644 index 000..bd6341c --- /dev/null +++ b/lib/x86/io.h @@ -0,0 +1,40 @@ +#ifndef IO_H +#define IO_H + +static inline unsigned char inb(unsigned short port) +{ +unsigned char value; +asm volatile(

[Qemu-devel] [PATCH 3/3] kvm-unit-tests: make I/O more friendly to existing QEMU hardware

2011-02-24 Thread Anthony Liguori
Use the serial port for printf() and use the Bochs bios exit port if the testdev port isn't available. This unconditionally switches to use the serial port but tries to use the testdev exit port since that lets you pass an exit status. Signed-off-by: Anthony Liguori diff --git a/lib/x86/io.c b/

Re: [Qemu-devel] [PATCH v3 00/16] vnc: adapative tight, zrle, zywrle, and bitmap module

2011-02-24 Thread Stefan Weil
Am 24.02.2011 22:03, schrieb Stefan Weil: Am 04.02.2011 09:05, schrieb Corentin Chary: From: Corentin Chary Hi, Since v2: - Fixed some styles issues - Rebased to current master - Fixed a Makefile issue (using .c instead of .o) I rebased the series against current master, it contains: - Adap

Re: [Qemu-devel] [PATCH v3 00/16] vnc: adapative tight, zrle, zywrle, and bitmap module

2011-02-24 Thread Stefan Weil
Am 04.02.2011 09:05, schrieb Corentin Chary: From: Corentin Chary Hi, Since v2: - Fixed some styles issues - Rebased to current master - Fixed a Makefile issue (using .c instead of .o) I rebased the series against current master, it contains: - Adaptive Tight Encoding: send lossy or lossless

Re: [Qemu-devel] Re: [patch 2/3] Add support for live block copy

2011-02-24 Thread Anthony Liguori
On 02/24/2011 09:22 AM, Avi Kivity wrote: On 02/24/2011 05:00 PM, Anthony Liguori wrote: On 02/24/2011 02:54 AM, Avi Kivity wrote: On 02/23/2011 10:18 PM, Anthony Liguori wrote: Then the management stack has to worry about yet another way of interacting via qemu. { 'StateItem': { 'key': 'st

[Qemu-devel] [PATCH 02/58] vmstate: Fix varrays with uint8 indexes

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h |5 +++-- savevm.c |2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 209f568..4a02799 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -298,6 +298,7 @@ enum VMStateFlags { VMS_VARRAY_UINT16= 0x080, /* Arr

[Qemu-devel] [PATCH 11/58] vmstate: port adb_mouse

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/adb.c | 43 +++ 1 files changed, 15 insertions(+), 28 deletions(-) diff --git a/hw/adb.c b/hw/adb.c index fbf5080..7499cdc 100644 --- a/hw/adb.c +++ b/hw/adb.c @@ -427,32 +427,20 @@ static int adb_mouse_reset(ADBDevice

[Qemu-devel] [PATCH Appendix] Skeleton backend driver

2011-02-24 Thread Stefan Berger
It should be possible to recycle a lot of the backend code. So, below is a skeleton backend driver with all libtpms and block storage dependencies removed. It compiled, but doesn't work. In the areas where I know that code needs to be written into, I marked it with '// !!!'. Signed-off-by: Stefan

[Qemu-devel] [PATCH 35/58] vmstate: port pxa2xx_rtc

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx.c | 85 +- 1 files changed, 37 insertions(+), 48 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index 349a5d4..e6542a0 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -1170,62 +1170,53 @@ stat

[Qemu-devel] [PATCH 3/5]: Add TPM (frontend) hardware interface (TPM TIS) to Qemu

2011-02-24 Thread Stefan Berger
This patch adds the main code of the TPM frontend driver, the TPM TIS interface, to Qemu. The code is largely based on my previous implementation for Xen but has been significantly extended to meet the standard's requirements, such as the support for changing of localities and all the functionality

Future entries for .gitignore (was Re: [Qemu-devel] [PATCH] Add TAGS and *~ to .gitignore)

2011-02-24 Thread Stefan Weil
.gitignore contains two categories of entries: (1) files and directories which are created during configure / make (2) files which might be created by users, editors and other tools The 1st category of files is needed by any developer who runs make in the source tree. There was once a suggestio

[Qemu-devel] [PATCH 39/58] vmstate: port stellaris_adc

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/stellaris.c | 89 +-- 1 files changed, 34 insertions(+), 55 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index 78d4eea..01f17c3 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -1058,60 +105

[Qemu-devel] [PATCH 29/58] vmstate: port cuda

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/cuda.c | 116 - 1 files changed, 46 insertions(+), 70 deletions(-) diff --git a/hw/cuda.c b/hw/cuda.c index e4c178d..f47dfab 100644 --- a/hw/cuda.c +++ b/hw/cuda.c @@ -644,80 +644,56 @@ static CPURea

[Qemu-devel] [PATCH 5/5]: Implementation of the libtpms-based backend

2011-02-24 Thread Stefan Berger
This patch provides the glue for the TPM TIS interface (frontend) to the libtpms that provides the actual TPM functionality. Some details: The libtpms-based backend implements functionality to write into a Qemu block storage device rather than to plain files. With that we can support VM snapshot

[Qemu-devel] [PATCH 4/5]: Implement qemu_thread_join function

2011-02-24 Thread Stefan Berger
This patch provides support for 'joining a thread' by wrapping pthread_join with qemu_thread_join. Since the backend implementation is based on threads and I am stopping and starting that thread during operations like 'snapshot resume', I do use this functionality to synchronize with the TPM threa

Re: [Qemu-devel] [PATCH] Fix conversions from pointer to int and vice versa

2011-02-24 Thread Stefan Weil
Am 24.02.2011 11:11, schrieb Markus Armbruster: Kevin Wolf writes: Am 24.02.2011 08:21, schrieb Markus Armbruster: Stefan Weil writes: Here the int values fds[0], sigfd, s, sock and fd are converted to void pointers which are later converted back to an int value. These conversions should al

[Qemu-devel] [PATCH 12/58] vmstate: port ads7846

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/ads7846.c | 41 ++--- 1 files changed, 18 insertions(+), 23 deletions(-) diff --git a/hw/ads7846.c b/hw/ads7846.c index b3bbeaf..9c58a5f 100644 --- a/hw/ads7846.c +++ b/hw/ads7846.c @@ -105,35 +105,30 @@ static void ads784

[Qemu-devel] [PATCH 1/5]: Add tpm_tis driver to build process

2011-02-24 Thread Stefan Berger
The TPM interface (tpm_tis) needs to be explicitly enabled via ./configure --enable-tpm. I am restricting the building of the TPM support to i386 and x86_64 targets since both backends I know of, the Xen backend and the libtpms-based backend, will likely only be available for these targets, at lea

[Qemu-devel] [PATCH 2/5]: Support for TPM command line options

2011-02-24 Thread Stefan Berger
This patch adds support for TPM command line options. The command line supported here (considering the libtpms based backend) are ./qemu-... -tpm type=,path=, and ./qemu-... -tpm ? where the latter works similar to -soundhw ? and shows a list of available TPM backends (i.e., libtpms-based, Xen)

[Qemu-devel] [PATCH 42/58] vmstate: port stellaris gamepad

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/stellaris_input.c | 50 -- 1 files changed, 24 insertions(+), 26 deletions(-) diff --git a/hw/stellaris_input.c b/hw/stellaris_input.c index 16aae96..b5b3bd7 100644 --- a/hw/stellaris_input.c +++ b/hw/stellaris

[Qemu-devel] [PATCH 24/58] vmstate: port stellaris i2c

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/stellaris.c | 49 + 1 files changed, 17 insertions(+), 32 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index b903273..00beaf2 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -844,36 +844,22 @@

[Qemu-devel] [PATCH 32/58] vmstate: port pxa2xx_cm

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx.c | 39 ++- 1 files changed, 14 insertions(+), 25 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index 8e8305d..4e95a9f 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -228,29 +228,18 @@ static CPUWriteMemoryFunc

[Qemu-devel] [PATCH 41/58] vmstate: port syborg_keyboard

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/syborg_keyboard.c | 57 +++--- 1 files changed, 17 insertions(+), 40 deletions(-) diff --git a/hw/syborg_keyboard.c b/hw/syborg_keyboard.c index d295e99..706a039 100644 --- a/hw/syborg_keyboard.c +++ b/hw/syborg_ke

[Qemu-devel] [PATCH 03/58] vmstate: add UINT32 VARRAYS

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h | 11 +++ savevm.c |2 ++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 4a02799..bff56e1 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -299,6 +299,7 @@ enum VMStateFlags { VMS_VBUFFER = 0x100,

[Qemu-devel] [PATCH 23/58] vmstate: port armv7m nvic

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/armv7m_nvic.c | 39 ++- 1 files changed, 14 insertions(+), 25 deletions(-) diff --git a/hw/armv7m_nvic.c b/hw/armv7m_nvic.c index 6c7ce01..397f5c9 100644 --- a/hw/armv7m_nvic.c +++ b/hw/armv7m_nvic.c @@ -365,30 +365,19 @@

[Qemu-devel] [PATCH 26/58] vmstate: port stellaris sys

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/stellaris.c | 71 +++ 1 files changed, 25 insertions(+), 46 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index 3e77b8f..9fce160 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -605,58 +605,

[Qemu-devel] [PATCH 31/58] vmstate: port pxa2xx_i2s

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx.c | 53 ++--- 1 files changed, 18 insertions(+), 35 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index dc595f3..8e8305d 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -1710,39 +1710,23 @@ static CP

Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-24 Thread Stefan Berger
On 02/24/2011 10:30 AM, Andreas Niederl wrote: On 02/18/2011 05:37 PM, Stefan Berger wrote: [...] I have a tpm_tis.c with major changes in it getting rid of the polling, closer to specs that passes a test suite and a registerable backend as well that has several more interface functions, due to

[Qemu-devel] [PATCH 0/5]: Qemu Trusted Platform Module (TPM) integration

2011-02-24 Thread Stefan Berger
The following series of patches adds a TPM (Trusted Platform Module) TIS (TPM Interface Spec) interface to Qemu and with that provides means to access a backend implementing the actual TPM functionality. This frontend enables for example Linux's TPM TIS (tpm_tis) driver. I am also posting the imp

[Qemu-devel] [PATCH 22/58] vmstate: port pl011

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pl011.c | 76 +++ 1 files changed, 25 insertions(+), 51 deletions(-) diff --git a/hw/pl011.c b/hw/pl011.c index 77f0dbf..3b94b14 100644 --- a/hw/pl011.c +++ b/hw/pl011.c @@ -235,56 +235,30 @@ static CPU

[Qemu-devel] [PATCH 09/58] vmstate: move timers to use test instead of version

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index f874dd0..c9de893 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -399,6 +399,15 @@ extern const VMStateInfo vmstate_info_unused_buffer; .offset =

[Qemu-devel] [PATCH 01/58] vmstate: add VMSTATE_UINT32_EQUAL

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h |4 savevm.c | 21 + 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 5e24329..209f568 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -343,6 +343,7 @@ extern const VMStateInfo vmstate_info_int64

[Qemu-devel] [PATCH 47/58] pxa2xx_lcd: up field is used as a bool and migrated as an uint8_t

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx_lcd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 78e31c4..53b6837 100644 --- a/hw/pxa2xx_lcd.c +++ b/hw/pxa2xx_lcd.c @@ -17,7 +17,7 @@ struct dma_channel { target_phys_addr_t b

[Qemu-devel] [PATCH 00/58] VMState: Port several non-pc devices

2011-02-24 Thread Juan Quintela
Hi This series are split in three parts: - All VMState changes/fixes are together at the beggining (patches 1-9) - Devices whose port is trivial: (patches 10-40) - Devices whose port needs some change in types, or introduce a new struct to include all the device state: rest of patches. There ar

[Qemu-devel] [PATCH 27/58] vmstate: port pl022 ssp

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pl022.c | 84 +-- 1 files changed, 36 insertions(+), 48 deletions(-) diff --git a/hw/pl022.c b/hw/pl022.c index ffe05ab..00e494a 100644 --- a/hw/pl022.c +++ b/hw/pl022.c @@ -239,54 +239,42 @@ static CPU

[Qemu-devel] [PATCH 30/58] vmstate: port stellaris gptm

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/stellaris.c | 84 1 files changed, 24 insertions(+), 60 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index 9fce160..78d4eea 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -280,64 +280

[Qemu-devel] [PATCH 54/58] vmstate: port mac_nvram

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/mac_nvram.c | 30 +++--- 1 files changed, 11 insertions(+), 19 deletions(-) diff --git a/hw/mac_nvram.c b/hw/mac_nvram.c index 64f0192..61e53d2 100644 --- a/hw/mac_nvram.c +++ b/hw/mac_nvram.c @@ -105,24 +105,17 @@ static CPUReadMemor

[Qemu-devel] [PATCH 20/58] vmstate: port pxa2xx_pic

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx_pic.c | 52 1 files changed, 20 insertions(+), 32 deletions(-) diff --git a/hw/pxa2xx_pic.c b/hw/pxa2xx_pic.c index a36da23..d1015ab 100644 --- a/hw/pxa2xx_pic.c +++ b/hw/pxa2xx_pic.c @@ -241,41 +24

[Qemu-devel] [PATCH 44/58] pxa2xx_dma: make req array static

2011-02-24 Thread Juan Quintela
We know its size, and it is always allocated Signed-off-by: Juan Quintela --- hw/pxa2xx_dma.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/pxa2xx_dma.c b/hw/pxa2xx_dma.c index b512d34..6fd2282 100644 --- a/hw/pxa2xx_dma.c +++ b/hw/pxa2xx_dma.c @@ -23,6 +23,8

[Qemu-devel] [PATCH 51/58] nand: pin values are uint8_t

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/flash.h |4 ++-- hw/nand.c |6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/flash.h b/hw/flash.h index d7d103e..c22e1a9 100644 --- a/hw/flash.h +++ b/hw/flash.h @@ -21,8 +21,8 @@ pflash_t *pflash_cfi02_register(target_phys_a

[Qemu-devel] [PATCH 46/58] pxa2xx_lcd: name anonymous struct

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx_lcd.c | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 5b2b07e..78e31c4 100644 --- a/hw/pxa2xx_lcd.c +++ b/hw/pxa2xx_lcd.c @@ -15,6 +15,20 @@ #include "sysemu.h

[Qemu-devel] [PATCH 21/58] vmstate: port pxa2xx_keypad

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx_keypad.c | 53 --- 1 files changed, 17 insertions(+), 36 deletions(-) diff --git a/hw/pxa2xx_keypad.c b/hw/pxa2xx_keypad.c index d77dbf1..10ef154 100644 --- a/hw/pxa2xx_keypad.c +++ b/hw/pxa2xx_keypad.c

[Qemu-devel] [PATCH 07/58] vmstate: Add a way to send a partial array

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index af88460..0dfc053 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -429,6 +429,15 @@ extern const VMStateInfo vmstate_info_unused_buffer; .offset = vmstat

[Qemu-devel] [PATCH 15/58] vmstate: port arm sp804

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/arm_timer.c | 29 +++-- 1 files changed, 11 insertions(+), 18 deletions(-) diff --git a/hw/arm_timer.c b/hw/arm_timer.c index 82f05de..cfd1ebe 100644 --- a/hw/arm_timer.c +++ b/hw/arm_timer.c @@ -235,24 +235,17 @@ static CPUWriteMemor

[Qemu-devel] [PATCH 33/58] vmstate: port pxa2xx_mm

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx.c | 33 - 1 files changed, 12 insertions(+), 21 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index 4e95a9f..a044c1f 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -517,25 +517,16 @@ static CPUWriteMemoryFunc * con

[Qemu-devel] [PATCH 48/58] vmstate: port pxa2xx_lcdc

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx_lcd.c | 110 +- 1 files changed, 43 insertions(+), 67 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 53b6837..ef8791e 100644 --- a/hw/pxa2xx_lcd.c +++ b/hw/pxa2xx_lcd.c @@ -833,74 +

[Qemu-devel] [PATCH 53/58] mac_nvram: size is a size, no need to be a target dependent type

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/mac_nvram.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/mac_nvram.c b/hw/mac_nvram.c index c2a2fc2..64f0192 100644 --- a/hw/mac_nvram.c +++ b/hw/mac_nvram.c @@ -38,7 +38,7 @@ #endif struct MacIONVRAMState { -target_phys_a

[Qemu-devel] [PATCH 14/58] vmstate: port mipsnet

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/mipsnet.c | 53 +++-- 1 files changed, 19 insertions(+), 34 deletions(-) diff --git a/hw/mipsnet.c b/hw/mipsnet.c index c5e54ff..26aad51 100644 --- a/hw/mipsnet.c +++ b/hw/mipsnet.c @@ -202,44 +202,29 @@ static

[Qemu-devel] [PATCH 16/58] vmstate: port arm_timer

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/arm_timer.c | 37 ++--- 1 files changed, 14 insertions(+), 23 deletions(-) diff --git a/hw/arm_timer.c b/hw/arm_timer.c index cfd1ebe..dac9e70 100644 --- a/hw/arm_timer.c +++ b/hw/arm_timer.c @@ -140,28 +140,19 @@ static void

[Qemu-devel] [PATCH 18/58] vmstate: port pmtimer

2011-02-24 Thread Juan Quintela
It was a half conversion. Finish it. enabled can only get values of 0, 1 or 2, was declared as an int but sent as an unint8_t, change its type. Signed-off-by: Juan Quintela --- hw/hw.h | 17 ++- hw/ptimer.c | 59 +++-- qe

[Qemu-devel] [PATCH 08/58] vmstate: be able to store/save a pci device from a pointer

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 0dfc053..f874dd0 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -609,6 +609,14 @@ extern const VMStateDescription vmstate_pci_device; .offset = vmstate_

[Qemu-devel] [PATCH 28/58] vmstate: port heathrow_pic

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/heathrow_pic.c | 62 +--- 1 files changed, 25 insertions(+), 37 deletions(-) diff --git a/hw/heathrow_pic.c b/hw/heathrow_pic.c index b19b754..5fd71a0 100644 --- a/hw/heathrow_pic.c +++ b/hw/heathrow_pic.c @@ -

[Qemu-devel] [PATCH 49/58] max111x: input field is only used as uint8_t

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/max111x.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/max111x.c b/hw/max111x.c index 2844665..3adc3e4 100644 --- a/hw/max111x.c +++ b/hw/max111x.c @@ -15,7 +15,7 @@ typedef struct { uint8_t tb1, rb2, rb3; int cycle; -

[Qemu-devel] [PATCH 43/58] vmstate: stellaris use unused for placeholder entries

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/stellaris.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index 01f17c3..6f2c9da 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -291,8 +291,7 @@ static const VMStateDescription vmstate_stellaris_

[Qemu-devel] [PATCH 52/58] vmstate: port nand

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/nand.c | 73 1 files changed, 39 insertions(+), 34 deletions(-) diff --git a/hw/nand.c b/hw/nand.c index 9f978d8..37e51d7 100644 --- a/hw/nand.c +++ b/hw/nand.c @@ -66,6 +66,8 @@ struct NANDFlashSt

[Qemu-devel] [PATCH 40/58] vmstate: port syborg_serial

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/syborg_serial.c | 60 +++ 1 files changed, 18 insertions(+), 42 deletions(-) diff --git a/hw/syborg_serial.c b/hw/syborg_serial.c index 34ce076..df2950f 100644 --- a/hw/syborg_serial.c +++ b/hw/syborg_serial.c

[Qemu-devel] [PATCH 45/58] vmstate: port pxa2xx_dma

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx_dma.c | 90 ++- 1 files changed, 36 insertions(+), 54 deletions(-) diff --git a/hw/pxa2xx_dma.c b/hw/pxa2xx_dma.c index 6fd2282..5bed585 100644 --- a/hw/pxa2xx_dma.c +++ b/hw/pxa2xx_dma.c @@ -428,60

[Qemu-devel] [PATCH 05/58] vmstate: add VMSTATE_INT64_ARRAY

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 923efc9..d439a6d 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -778,6 +778,12 @@ extern const VMStateDescription vmstate_usb_device; #define VMSTATE_UINT32_ARRAY

[Qemu-devel] [PATCH 34/58] vmstate: port pxa2xx_pm

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/pxa2xx.c | 33 - 1 files changed, 12 insertions(+), 21 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index a044c1f..349a5d4 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -147,25 +147,16 @@ static CPUWriteMemoryFunc * con

[Qemu-devel] [PATCH 50/58] vmstate: port max111x

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/max111x.c | 49 + 1 files changed, 17 insertions(+), 32 deletions(-) diff --git a/hw/max111x.c b/hw/max111x.c index 3adc3e4..eca117e 100644 --- a/hw/max111x.c +++ b/hw/max111x.c @@ -94,36 +94,22 @@ static uint3

[Qemu-devel] [PATCH 37/58] vmstate: port ppc4xx_pci

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/ppc4xx_pci.c | 80 ++ 1 files changed, 39 insertions(+), 41 deletions(-) diff --git a/hw/ppc4xx_pci.c b/hw/ppc4xx_pci.c index f62f1f9..299473c 100644 --- a/hw/ppc4xx_pci.c +++ b/hw/ppc4xx_pci.c @@ -285,50 +

[Qemu-devel] [PATCH 36/58] vmstate: port ppce500_pci

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/ppce500_pci.c | 87 +- 1 files changed, 40 insertions(+), 47 deletions(-) diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c index 11edd03..132d8f7 100644 --- a/hw/ppce500_pci.c +++ b/hw/ppce500_pci.c @@ -216

[Qemu-devel] [PATCH 17/58] vmstate: port sysborg_timer

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/syborg_timer.c | 46 -- 1 files changed, 16 insertions(+), 30 deletions(-) diff --git a/hw/syborg_timer.c b/hw/syborg_timer.c index cedcd8e..50c813e 100644 --- a/hw/syborg_timer.c +++ b/hw/syborg_timer.c @@ -174,34

[Qemu-devel] [PATCH 38/58] vmstate: port syborg_pointer

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/syborg_pointer.c | 73 +++--- 1 files changed, 28 insertions(+), 45 deletions(-) diff --git a/hw/syborg_pointer.c b/hw/syborg_pointer.c index a886888..2f99707 100644 --- a/hw/syborg_pointer.c +++ b/hw/syborg_pointe

[Qemu-devel] [PATCH 13/58] vmstate: port m48t59

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/m48t59.c | 36 +--- 1 files changed, 13 insertions(+), 23 deletions(-) diff --git a/hw/m48t59.c b/hw/m48t59.c index 2020487..82223c9 100644 --- a/hw/m48t59.c +++ b/hw/m48t59.c @@ -585,28 +585,18 @@ static CPUReadMemoryFunc * c

[Qemu-devel] [PATCH 19/58] vmstate: port syborg_rtc

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/syborg_rtc.c | 34 -- 1 files changed, 12 insertions(+), 22 deletions(-) diff --git a/hw/syborg_rtc.c b/hw/syborg_rtc.c index 329aa42..4e24e52 100644 --- a/hw/syborg_rtc.c +++ b/hw/syborg_rtc.c @@ -102,26 +102,17 @@ static CPU

[Qemu-devel] [PATCH 25/58] vmstate: port stellaris ssi bus

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/stellaris.c | 31 +++ 1 files changed, 11 insertions(+), 20 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index 00beaf2..3e77b8f 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -1219,24 +1219,16 @@ static uint32_t

[Qemu-devel] [PATCH 10/58] vmstate: port adb_kbd

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/adb.c | 40 ++-- 1 files changed, 14 insertions(+), 26 deletions(-) diff --git a/hw/adb.c b/hw/adb.c index 99b30f6..fbf5080 100644 --- a/hw/adb.c +++ b/hw/adb.c @@ -261,30 +261,19 @@ static int adb_kbd_request(ADBDevice *d

[Qemu-devel] [PATCH 04/58] vmstate: add VMSTATE_STRUCT_VARRAY_INT32

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index bff56e1..923efc9 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -508,6 +508,17 @@ extern const VMStateInfo vmstate_info_unused_buffer; .offset = off

[Qemu-devel] [PATCH 06/58] vmstate: add VMSTATE_STRUCT_VARRAY_UINT32

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index d439a6d..af88460 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -519,6 +519,16 @@ extern const VMStateInfo vmstate_info_unused_buffer; .offset = offs

Re: [Qemu-devel] [RESEND][REBASE] [PATCH] virtio-serial: kill VirtIOSerialDevice

2011-02-24 Thread Anthony Liguori
On 02/23/2011 11:44 PM, Amit Shah wrote: From: Gerd Hoffmann VirtIOSerialDevice is like VirtIOSerialPort with just the first two fields, which makes it pretty pointless. Using VirtIOSerialPort directly works equally well and is less confusing. [Amit: - rebase - rename 'dev' to 'port' i

Re: [Qemu-devel] [PATCH] Add TAGS and *~ to .gitignore

2011-02-24 Thread Anthony Liguori
On 02/23/2011 11:34 PM, David Gibson wrote: Add the etags output generated by "make TAGS" and editor backup files to .gitignore. This patch has previously appeared in my series of patches to add pSeries emulation support. However, it obviously has no real connection to that, and can be applied

[Qemu-devel] Re: [PATCH] ui/vnc-enc-tight.c: Fix compile failure if CONFIG_VNC_JPEG not defined

2011-02-24 Thread Anthony Liguori
On 02/24/2011 10:04 AM, Peter Maydell wrote: Add some missing #ifdefs to fix compilation failures in the !CONFIG_VNC_JPEG case introduced by commit ce702e93. Signed-off-by: Peter Maydell Applied. Thanks. Regards, Anthony Liguori --- ui/vnc-enc-tight.c |4 1 files changed,

Re: [Xen-devel] Re: [Qemu-devel] [PATCH V10 02/15] xen: Make xen build only on x86 target.

2011-02-24 Thread Anthony Liguori
On 02/24/2011 11:46 AM, Jan Kiszka wrote: On 2011-02-24 18:27, Anthony Liguori wrote: On 02/24/2011 10:25 AM, Anthony PERARD wrote: On Thu, Feb 24, 2011 at 16:11, Anthony Liguori wrote: Is this really necessary? The advantage to building globally is that it keeps the code

[Qemu-devel] [PATCH 58/58] vmstate: port mac_dbdma

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/mac_dbdma.c | 46 ++ 1 files changed, 22 insertions(+), 24 deletions(-) diff --git a/hw/mac_dbdma.c b/hw/mac_dbdma.c index c108aee..3522552 100644 --- a/hw/mac_dbdma.c +++ b/hw/mac_dbdma.c @@ -810,30 +810,28 @@ sta

[Qemu-devel] [PATCH 57/58] mac_dbdma: create DBDMAState instead of passing one array around

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/mac_dbdma.c | 45 +++-- 1 files changed, 27 insertions(+), 18 deletions(-) diff --git a/hw/mac_dbdma.c b/hw/mac_dbdma.c index 5680fa9..c108aee 100644 --- a/hw/mac_dbdma.c +++ b/hw/mac_dbdma.c @@ -165,6 +165,10 @@ typed

[Qemu-devel] [PATCH 56/58] vmstate: port piix4

2011-02-24 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/piix4.c | 25 +++-- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git a/hw/piix4.c b/hw/piix4.c index 40cd91a..71f1f84 100644 --- a/hw/piix4.c +++ b/hw/piix4.c @@ -72,19 +72,16 @@ static void piix4_reset(void *opaque) pci

[Qemu-devel] [PATCH 55/58] piix4: create PIIX4State

2011-02-24 Thread Juan Quintela
It only contains a PCIDevice by know, but it makes easy to use migration code Signed-off-by: Juan Quintela --- hw/piix4.c | 29 + 1 files changed, 17 insertions(+), 12 deletions(-) diff --git a/hw/piix4.c b/hw/piix4.c index 72073cd..40cd91a 100644 --- a/hw/piix4.c

Re: [Xen-devel] Re: [Qemu-devel] [PATCH V10 02/15] xen: Make xen build only on x86 target.

2011-02-24 Thread Jan Kiszka
On 2011-02-24 18:27, Anthony Liguori wrote: > On 02/24/2011 10:25 AM, Anthony PERARD wrote: >> On Thu, Feb 24, 2011 at 16:11, Anthony Liguori wrote: >> >>> Is this really necessary? The advantage to building globally is that it >>> keeps the code from getting unnecessary i386-isms. >>>

  1   2   >