[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] QEMU for ppc440 on i386 host

2011-06-01 Thread Lê Đức Tài
On 31.05.2011, at 23:52, Alexander Graf wrote: >On 31.05.2011, at 18:05, Lê Đức Tài wrote: > >> Hi! >> My name is Tai. >> Sorry for bother you! >> >> I have a question about QEMU for powerpc. >> Can QEMU emulate the ppc440 on a i386 host? >> I mean it is full-system emulation. >> Because when I'm

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

[Qemu-devel] Reminder about your invitation from Paulo Cezar

2011-06-01 Thread Paulo Cezar (LinkedIn Invitations)
LinkedIn This invitation is awaiting your response: From Paulo Cezar -- (c) 2011, LinkedIn Corporation

Re: [Qemu-devel] QEMU for ppc440 on i386 host

2011-06-01 Thread Edgar E. Iglesias
On Wed, Jun 01, 2011 at 03:03:18PM +0800, Lê ?c Tài wrote: >On 31.05.2011, at 23:52, Alexander Graf wrote: >>On 31.05.2011, at 18:05, Lê Äức Tà i wrote: >> >>> Hi! >>> My name is Tai. >>> Sorry for bother you! >>> >>> I have a question about QEMU for powerpc.

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Michael S. Tsirkin
On Fri, May 20, 2011 at 10:21:03AM +0200, Paolo Bonzini wrote: > Hi all, > > here is the second version of the spec. In the end I took the > advice of merging all requestq's into one. The reason for this is > that I took a look at the vSCSI device and liked its approach of > using SAM 8-byte LUN

Re: [Qemu-devel] VMDK development plan for Summer of Code 2011

2011-06-01 Thread Alexander Graf
On 01.06.2011, at 06:29, Stefan Hajnoczi wrote: > On Sun, May 29, 2011 at 2:19 PM, Fam Zheng wrote: >> As a project of Google Summer of Code 2011, I'm now working on >> improving VMDK image support. There are many subformats of VMDK >> virtual disk, some of which have separate descriptor file an

[Qemu-devel] [PATCH] qcow2: Fix memory leaks in error cases

2011-06-01 Thread Kevin Wolf
This fixes memory leaks that may be caused by I/O errors during L1 table growth (can happen during save_vm) and in qemu-img check. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |2 +- block/qcow2-refcount.c |9 ++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] VMDK development plan for Summer of Code 2011

2011-06-01 Thread Kevin Wolf
Am 01.06.2011 10:49, schrieb Alexander Graf: > > On 01.06.2011, at 06:29, Stefan Hajnoczi wrote: > >> On Sun, May 29, 2011 at 2:19 PM, Fam Zheng wrote: >>> As a project of Google Summer of Code 2011, I'm now working on >>> improving VMDK image support. There are many subformats of VMDK >>> virtu

Re: [Qemu-devel] VMDK development plan for Summer of Code 2011

2011-06-01 Thread Alexander Graf
On 01.06.2011, at 11:11, Kevin Wolf wrote: > Am 01.06.2011 10:49, schrieb Alexander Graf: >> >> On 01.06.2011, at 06:29, Stefan Hajnoczi wrote: >> >>> On Sun, May 29, 2011 at 2:19 PM, Fam Zheng wrote: As a project of Google Summer of Code 2011, I'm now working on improving VMDK image

[Qemu-devel] [PATCH v2 2/2] Add support for Zipit Z2 machine

2011-06-01 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes, added VMStateDescription for LCD device and AER915, traces clean up. Makefile.target |1 + hw/z2.c | 352 +++ 2 files changed,

[Qemu-devel] [PATCH v2 1/2] pxa2xx_lcd: add proper rotation support

2011-06-01 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes hw/framebuffer.c |2 + hw/pxa2xx_lcd.c | 86 +++-- input.c

[Qemu-devel] [PATCH] linux-user: Fix the computation of the requested heap size

2011-06-01 Thread Cédric VINCENT
Hi Peter & Martin, On 2011-04-21 14:04:40, Peter Maydell wrote: > > I've had a report from Martin Mohring that this patch breaks some > programs which previously worked in linux-user mode (one wonders if > they were overwriting some chunk of memory that they happened not > to be using for anythin

Re: [Qemu-devel] [PATCH] virtio: correctly initialize vm_running

2011-06-01 Thread Michael S. Tsirkin
On Wed, May 18, 2011 at 01:57:37PM +0800, Jason Wang wrote: > Current vm_running was not explicitly initialized and its value was changed by > vm state notifier, this may confuse the virtio device being hotplugged such as > virtio-net with vhost backend as it may think the vm was not running. Solve

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Alexander Graf
On 01.06.2011, at 09:30, Gerd Hoffmann wrote: > Hi, > >> 0xE000 is hard-coded in the DSDT for both piix and q35 as below. >> If the range is determined dynamically, the area also needs to be >> updated somehow dynamically. >> >> ... >> Name (_CRS, ResourceTemplate () >> ... >>

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] Question on virtio disk maximum index and maximum partition

2011-06-01 Thread Stefano Stabellini
On Wed, 1 Jun 2011, Wei Liu wrote: > That's exactly what I'm seeing... > > Maybe I should modify the checking and make a exception for virtio > disk? Stefano, what would you say? That is not a check, it is just the upper limit to decode "vda1" or "vde2" in a disk number and partition number. I wo

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Rudolf Marek
Sorry I forgot to include all addresses. I don't know how much work it would be to generate the DSDT dynamically from Qemu, but IMHO that's the sanest way to make things flexible. We could probably even extract most information from the Qdev tree. Well I have written for coreboot a ACPI byteco

Re: [Qemu-devel] QEMU for ppc440 on i386 host

2011-06-01 Thread Lê Đức Tài
On Wed, Jun 01, 2011 at 15:36, Edgar E. Iglesias wrote: > On Wed, Jun 01, 2011 at 03:03:18PM +0800, Lê Đức Tài wrote: > > On 31.05.2011, at 23:52, Alexander Graf wrote: > > > On 31.05.2011, at 18:05, Lê Đức Tài wrote: > > > > > > > > Hi! > > > > My name is Tai. > > >

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] [PATCH 01/14] usb-linux: Set usb_auto_timer to NULL after deleting it

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: We might check for it being NULL later, if the device gets unplugged. --- usb-linux.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 4d7a31a..ea3ab5f 100644 --- a/usb-linux.c +++ b/usb-linux.c @@

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Avi Kivity
On 06/01/2011 12:56 PM, Alexander Graf wrote: On 01.06.2011, at 09:30, Gerd Hoffmann wrote: > Hi, > >> 0xE000 is hard-coded in the DSDT for both piix and q35 as below. >> If the range is determined dynamically, the area also needs to be >> updated somehow dynamically. >> >> ... >>

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Alexander Graf
On 01.06.2011, at 13:13, Avi Kivity wrote: > On 06/01/2011 12:56 PM, Alexander Graf wrote: >> On 01.06.2011, at 09:30, Gerd Hoffmann wrote: >> >> > Hi, >> > >> >> 0xE000 is hard-coded in the DSDT for both piix and q35 as below. >> >> If the range is determined dynamically, the area also

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Avi Kivity
On 06/01/2011 02:16 PM, Alexander Graf wrote: >> > > Generating the DSDT dynamically is hard, but the DSDT itself is dynamic. You can make any function talk to the firmware configuration interface and return results that depend on the information there. Does that hold true for nodes as well?

Re: [Qemu-devel] [PATCH 03/14] usb-linux: Teach about super speed

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: +if (!strcmp(buf, "5000")) { +speed = USB_SPEED_SUPER; +} else if (!strcmp(buf, "480")) { Patch applied. thanks, Gerd

[Qemu-devel] [PATCH] qemu-char: Print strerror message on failure

2011-06-01 Thread Kevin Wolf
The only way for chardev drivers to communicate an error was to return a NULL pointer, which resulted in an error message that said _that_ something went wrong, but not _why_. This patch changes the interface to return 0/-errno and updates qemu_chr_open_opts to use strerror to display a more helpf

Re: [Qemu-devel] [PATCH 02/14] usb-linux: Get speed from sysfs rather then from the connectinfo ioctl

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: The connectinfo ioctl only differentiates between lo speed devices, and all other speeds, where as we would like to know the real speed. The real speed is available in sysfs so use that when available. Applied. thanks, Gerd

Re: [Qemu-devel] [PATCH 04/14] usb-linux: Don't do perror when errno is not set

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: Note that "op" also is not set, so before this change these error paths would feed NULL to perror. Patch applied. thanks, Gerd

Re: [Qemu-devel] [PATCH 04/14] usb-linux: Don't do perror when errno is not set

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: Note that "op" also is not set, so before this change these error paths would feed NULL to perror. Patch applied. thanks, Gerd

[Qemu-devel] [PATCH] linux-user: Define AT_RANDOM to support target dynamic linkers that do ASLR

2011-06-01 Thread Cédric VINCENT
From: Laurent ALFONSI The dynamic linker of the GNU C library v2.10+ uses the ELF auxialiary vector AT_RANDOM as a pointer to a 16-bit random value. Prior this patch the value of AT_RANDOM was not defined by the ELF loader of QEMU so the GNU dynamic linker de-referenced the NULL pointer instead.

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Paolo Bonzini
Device initialization - The initialization routine should first of all discover the device's control virtqueues. The driver should then place at least a buffer in the control receiveq. Size of the buffer? Good catch. I'll add this to the configuration information.

[Qemu-devel] [PATCH] bdrv_img_create: Fix segfault

2011-06-01 Thread Kevin Wolf
Block drivers that don't support creating images don't have a size option. Fail gracefully instead of segfaulting when trying to access the option's value. Signed-off-by: Kevin Wolf --- block.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index e

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] [PATCH 06/14] usb-linux: Ensure devep != 0

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: So that we don't index endp_table with a negative index. Patch applied. thanks, Gerd

Re: [Qemu-devel] [PATCH 05/14] usb-linux: Don't call usb_host_close when usb_host_open fails

2011-06-01 Thread Gerd Hoffmann
What bug you are trying to fix here? cheers, Gerd

Re: [Qemu-devel] [PATCH 07/14] usb-linux: If opening a device fails remove it from our filter list

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: So that we don't retry to open it every 2 seconds flooding stderr with error messages. The polling here is done intentionally, so the devices catched by the filter show up in the guest automagically as soon as they are plugged in. Just zapping the filt

Re: [Qemu-devel] [PATCH 08/14] usb-linux: Don't try to open the same device twice

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: If a user wants to redirect 2 identical usb sticks, in theory this is possible by doing: usb_add host:1234:5678 usb_add host:1234:5678 But this will lead to us trying to open the first stick twice, since we don't break the loop after having found a match i

[Qemu-devel] [PATCH] linux-user: Fix the load of ELF files that have no "useful" symbol

2011-06-01 Thread Cédric VINCENT
This patch fixes a "double free()" due to "realloc(syms, 0)" in the loader when the ELF file has no "useful" symbol, as with the following example (compiled with "sh4-linux-gcc -nostdlib"): .text .align 1 .global _start _start: mov #1, r3 trapa #40 // sysc

Re: [Qemu-devel] [PATCH 09/14] usb-linux: Don't declare a usbdevice_name

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: Declaring a usbdevice_name while we still have an explicit call to usb_host_device_open in vl.c causes usb_host_device_open to get called twice if the initial call fails. Wrong way around, the vl.c call should be zapped instead. Just did. cheers, Gerd

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] [PATCH 13/14] usb-bus: Don't detach non attached devices on device exit

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: This causes an "Error: tried to detach unattached usb device " to be printed, this can happen when deleting ie a usb host qdev, which did not get attached (because a device matching the filter never got plugged in). Patch applied. thanks, Gerd

Re: [Qemu-devel] [PATCH 10/14] usb-linux: Enlarge buffer for descriptors to 8192 bytes

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: 1024 bytes is way to small, one hd UVC webcam I have over here has so many resolutions its descriptors take op close to 4k. Hopefully 8k will be enough for all devices. Patch applied. thanks, Gerd

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-06-01 Thread Gerd Hoffmann
Hi, I'll wait a bit for more feedback and then change [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors I'll wait for new revisions of patches 12+14 then. cheers, Gerd

[Qemu-devel] [PATCH 1/3] lsi: Fix unused-but-set-variable warning

2011-06-01 Thread Christophe Fergeau
This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau --- hw/lsi53c895a.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 83084b6..90c6cbc 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -889,7 +889,6 @@ static v

Re: [Qemu-devel] [PATCH 11/14] usb-bus: Add knowledge of USB_SPEED_SUPER to usb_speed helper

2011-06-01 Thread Gerd Hoffmann
On 05/31/11 11:35, Hans de Goede wrote: +[ USB_SPEED_SUPER ] = "5000", Patch applied. thanks, Gerd

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Michael S. Tsirkin
On Wed, Jun 01, 2011 at 01:59:14PM +0200, Paolo Bonzini wrote: > >>Device initialization > >>- > >> > >>The initialization routine should first of all discover the device's > >>control virtqueues. > >> > >>The driver should then place at least a buffer in the control receiveq. >

[Qemu-devel] [PATCH 0/3] Fix unused-but-set-variable warnings

2011-06-01 Thread Christophe Fergeau
Hi, Here are a few more "unused-but-set-variable" warning fixes which I got when rebuilding qemu. I can fold the other 2 patches that were already sent to this list in this series if needed. The 3rd hunk of the ehci patch needs a review from someone who knows the code, different values are assign

[Qemu-devel] [PATCH 2/3] ehci: Fix unused-but-set-variable warning

2011-06-01 Thread Christophe Fergeau
This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau --- hw/usb-ehci.c | 11 +-- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index f63519e..8a7b1bb 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -523,11 +523,8 @@ static

Re: [Qemu-devel] [PATCH] linux-user: Fix the load of ELF files that have no "useful" symbol

2011-06-01 Thread Richard Henderson
On 06/01/2011 05:36 AM, Cédric VINCENT wrote: > This patch fixes a "double free()" due to "realloc(syms, 0)" in the > loader when the ELF file has no "useful" symbol, as with the following > example (compiled with "sh4-linux-gcc -nostdlib"): > > .text > .align 1 > .global _start >

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

[Qemu-devel] [PATCH 3/3] linux-user: Fix unused-but-set-variable warning

2011-06-01 Thread Christophe Fergeau
This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau --- linux-user/linuxload.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index ac8c486..e66a4ea 100644 --- a/linux-user/linuxload.c +++ b/linux-use

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Paolo Bonzini
On 06/01/2011 02:51 PM, Michael S. Tsirkin wrote: The cdb, data and sense fields must reside in separate buffers. The cdb field is always read-only. The data buffers may be either read-only or write-only, depending on the request, with the read-only buffers coming first. The

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Vivek Goyal
On Wed, Jun 01, 2011 at 11:19:58AM +0800, Zhi Yong Wu wrote: > On Tue, May 31, 2011 at 03:55:49PM -0400, Vivek Goyal wrote: > >Date: Tue, 31 May 2011 15:55:49 -0400 > >From: Vivek Goyal > >To: Zhi Yong Wu > >Cc: kw...@redhat.com, aligu...@us.ibm.com, stefa...@linux.vnet.ibm.com, > > k...@vger

Re: [Qemu-devel] [PATCH uq/master V3] kvm: Add CPUID support for VIA CPU

2011-06-01 Thread Marcelo Tosatti
On Wed, Jun 01, 2011 at 09:59:52AM +0800, BrillyWu wrote: > From: brill...@viatech.com.cn > > When KVM is running on VIA CPU with host cpu's model, the > feautures of VIA CPU will be passed into kvm guest by calling > the CPUID instruction for Centaur. > > Signed-off-by: BrillyWu > Signed-off-by:

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Vivek Goyal
On Tue, May 31, 2011 at 06:30:09PM -0500, Anthony Liguori wrote: [..] > The level of consistency will then depend on whether you overcommit > your hardware and how you have it configured. Agreed. > > Consistency is very hard because at the end of the day, you still > have shared resources. Eve

Re: [Qemu-devel] [PATCH 05/18] ide: Turn debug messages into assertions

2011-06-01 Thread Kevin Wolf
Am 01.06.2011 15:44, schrieb Luiz Capitulino: > On Thu, 26 May 2011 18:12:08 -0300 > Luiz Capitulino wrote: > >> On Thu, 19 May 2011 14:33:19 +0200 >> Kevin Wolf wrote: >> >>> These printfs aren't really debug messages, but clearly indicate a bug if >>> they >>> ever become effective. >> >> The

Re: [Qemu-devel] [PATCH] linux-user: Define AT_RANDOM to support target dynamic linkers that do ASLR

2011-06-01 Thread Richard Henderson
On 06/01/2011 04:42 AM, Cédric VINCENT wrote: > +/* The dynamic linker of the GNU C library v2.10+ uses the ELF > + * auxialiary vector AT_RANDOM as a pointer to a 16-bit random > + * value. Note the start of the text segment is not random at > + * all, however it is definitively r

Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface

2011-06-01 Thread Richard Henderson
On 05/31/2011 06:38 PM, Eduard - Gabriel Munteanu wrote: > +static inline void dma_memory_rw(DMADevice *dev, > + dma_addr_t addr, > + void *buf, > + dma_addr_t len, > + in

Re: [Qemu-devel] [PATCH 05/18] ide: Turn debug messages into assertions

2011-06-01 Thread Luiz Capitulino
On Wed, 01 Jun 2011 16:02:56 +0200 Kevin Wolf wrote: > Am 01.06.2011 15:44, schrieb Luiz Capitulino: > > On Thu, 26 May 2011 18:12:08 -0300 > > Luiz Capitulino wrote: > > > >> On Thu, 19 May 2011 14:33:19 +0200 > >> Kevin Wolf wrote: > >> > >>> These printfs aren't really debug messages, but c

Re: [Qemu-devel] [PATCH] linux-user: Define AT_RANDOM to support target dynamic linkers that do ASLR

2011-06-01 Thread cedric.vincent
On Wed, Jun 01, 2011 at 03:26:09PM +0200, Richard Henderson wrote: > > 16 bytes, not 16 bits. You're right it's not 16 bits, it's "sizeof(uintptr_t)" actually: http://repo.or.cz/w/glibc.git/blob/glibc-2.10:/sysdeps/unix/sysv/linux/dl-osinfo.h#l89 > Typos for auxiliary and readable. Thank

Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface

2011-06-01 Thread Avi Kivity
On 06/01/2011 05:01 PM, Richard Henderson wrote: > +err = dev->mmu->translate(dev, addr,&paddr,&plen, is_write); I see you didn't take my suggestion for using an opaque callback pointer. Really and truly, I won't be able to use this as-is for Alpha. Rather than opaques, please pass t

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Michael S. Tsirkin
On Wed, Jun 01, 2011 at 03:31:42PM +0200, Paolo Bonzini wrote: > On 06/01/2011 02:51 PM, Michael S. Tsirkin wrote: > The cdb, data and sense fields must reside in separate buffers. > The cdb field is always read-only. The data buffers may be either > read-only or write-o

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Rudolf Marek
Having a brief look at the coreboot code it seems static stuff (compiled by iasl) and dynamic bits are combined into the final dsdt table, is that correct? Yes the dsdt is static, it has just external references to ssdt which is dynamically generated using the acpigen. Acpigen can generate th

Re: [Qemu-devel] [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors

2011-06-01 Thread Hans de Goede
Hi, On 06/01/2011 02:50 PM, Gerd Hoffmann wrote: Hi, I'll wait a bit for more feedback and then change [PATCH 14/14] usb: Proper error propagation for usb_device_attach errors I'll wait for new revisions of patches 12+14 then. I already fixed this yeterday, I opted to leave patch 12 unmodi

[Qemu-devel] [PATCH v2] linux-user: Define AT_RANDOM to support target dynamic linkers that do ASLR

2011-06-01 Thread Cédric VINCENT
From: Laurent ALFONSI The dynamic linker of the GNU C library v2.10+ uses the ELF auxialiary vector AT_RANDOM as a pointer to a word with random value. Prior this patch the value of AT_RANDOM was not defined by the ELF loader of QEMU so the GNU dynamic linker de-referenced the NULL pointer inste

Re: [Qemu-devel] [PATCH 07/14] usb-linux: If opening a device fails remove it from our filter list

2011-06-01 Thread Hans de Goede
Hi, On 06/01/2011 02:32 PM, Gerd Hoffmann wrote: On 05/31/11 11:35, Hans de Goede wrote: So that we don't retry to open it every 2 seconds flooding stderr with error messages. The polling here is done intentionally, so the devices catched by the filter show up in the guest automagically as s

Re: [Qemu-devel] [PATCH 05/14] usb-linux: Don't call usb_host_close when usb_host_open fails

2011-06-01 Thread Hans de Goede
Hi, On 06/01/2011 02:22 PM, Gerd Hoffmann wrote: What bug you are trying to fix here? Nothing in particular, while looking at some other stuff I noticed that we have the following sequence, which is wrong: usb_host_open called usb_host_open calls usb_host_claim_interfaces usb_host_claim_i

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Avi Kivity
On 06/01/2011 05:36 PM, Michael S. Tsirkin wrote: > > So, if I am going to give this liberty with buffers to the driver, I > _have_ to keep the size information. Otherwise, I agree that it is > redundant and I will remove it. What poison do you prefer? > Ah, I think I understand now. Both s

Re: [Qemu-devel] [PATCH 09/14] usb-linux: Don't declare a usbdevice_name

2011-06-01 Thread Hans de Goede
Hi, On 06/01/2011 02:44 PM, Gerd Hoffmann wrote: On 05/31/11 11:35, Hans de Goede wrote: Declaring a usbdevice_name while we still have an explicit call to usb_host_device_open in vl.c causes usb_host_device_open to get called twice if the initial call fails. Wrong way around, the vl.c call s

Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface

2011-06-01 Thread Eduard - Gabriel Munteanu
On Wed, Jun 01, 2011 at 07:01:42AM -0700, Richard Henderson wrote: > On 05/31/2011 06:38 PM, Eduard - Gabriel Munteanu wrote: > > +static inline void dma_memory_rw(DMADevice *dev, > > + dma_addr_t addr, > > + void *buf, > > +

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Avi Kivity
On 05/20/2011 11:21 AM, Paolo Bonzini wrote: Hi all, here is the second version of the spec. In the end I took the advice of merging all requestq's into one. The reason for this is that I took a look at the vSCSI device and liked its approach of using SAM 8-byte LUNs directly. While it _is

Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface

2011-06-01 Thread Richard Henderson
On 06/01/2011 07:52 AM, Eduard - Gabriel Munteanu wrote: > The main selling point is there are more chances to screw up if every > bus layer implements these manually. And it's really convenient, > especially if we get to add another ld/st. If we drop the ld/st, we're talking about 5 lines for eve

Re: [Qemu-devel] [PATCH] linux-user: Define AT_RANDOM to support target dynamic linkers that do ASLR

2011-06-01 Thread Richard Henderson
On 06/01/2011 06:47 AM, cedric.vinc...@st.com wrote: > On Wed, Jun 01, 2011 at 03:26:09PM +0200, Richard Henderson wrote: >> >> 16 bytes, not 16 bits. > > You're right it's not 16 bits, it's "sizeof(uintptr_t)" actually: No, it's not. unsigned char k_rand_bytes[16]; elf_addr_t __

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit->http:tinyurl.com/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface

2011-06-01 Thread Eduard - Gabriel Munteanu
On Wed, Jun 01, 2011 at 08:09:29AM -0700, Richard Henderson wrote: > On 06/01/2011 07:52 AM, Eduard - Gabriel Munteanu wrote: > > The main selling point is there are more chances to screw up if every > > bus layer implements these manually. And it's really convenient, > > especially if we get to ad

[Qemu-devel] [PATCH v1][ 03/14] Introduce the new error framework

2011-06-01 Thread Michael Roth
From: Luiz Capitulino New error-handling framework that allows for exception-like error propagation. Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth --- Makefile.objs |2 +- error.c | 140 + error.h | 70 +++

[Qemu-devel] [QAPI+QGA 2/3] QAPI code generation infrastructure

2011-06-01 Thread Michael Roth
This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set1-v1, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set2-v1 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basic

[Qemu-devel] [PATCH v1][ 05/21] qapi: add qapi-types.py code generator

2011-06-01 Thread Michael Roth
This is the code generator for qapi types. It will generation the following files: $(prefix)qapi-types.h - C types corresponding to types defined in the schema you pass in $(prefix)qapi-types.c - Cleanup functions for the above C types The $(prefix) is used to as a n

[Qemu-devel] [PATCH v1][ 06/21] qapi: add qapi-visit.py code generator

2011-06-01 Thread Michael Roth
This is the code generator for qapi visiter functions used to marshal/unmarshal/dealloc qapi types. It generates the following 2 files: $(prefix)qapi-visit.c: visiter function for a particular c type, used to automagically convert qobjects into the

[Qemu-devel] [PATCH v1][ 15/21] qapi: add base declaration/types for QMP

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qmp-core.h | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) create mode 100644 qapi/qmp-core.h diff --git a/qapi/qmp-core.h b/qapi/qmp-core.h new file mode 100644 index 000..34b2e6a --- /dev/null +++

Re: [Qemu-devel] [RFC PATCH 00/13] AMD IOMMU emulation patches, another try

2011-06-01 Thread Richard Henderson
On 05/31/2011 06:38 PM, Eduard - Gabriel Munteanu wrote: > Hi, > > Again, sorry for taking so long, but I just don't send stuff without looking > through it. This is meant to go into Michael's PCI branch, if it does. > > Some of the changes include: > - some fixes (one thanks to David Gibson)

[Qemu-devel] [PATCH v3][ 4/7] guest agent: add error class for QERR_QGA_LOGGING_FAILED

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- qerror.c |4 qerror.h |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index c18641f..059981b 100644 --- a/qerror.c +++ b/qerror.c @@ -209,6 +209,10 @@ static const QErrorStringTable qerror_table[] = {

[Qemu-devel] [PATCH v1][ 09/14] json-parser: detect premature EOI

2011-06-01 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- json-parser.c | 58 - 1 files changed, 57 insertions(+), 1 deletions(-) diff --git a/json-parser.c b/json-parser.c index ac4063a..58e973b 100644 --- a/json-parser.c +++ b/json-parse

[Qemu-devel] [PATCH v1][ 16/21] qapi: test schema used for unit tests

2011-06-01 Thread Michael Roth
This is how QMP commands/parameters/types would be defined. We use a subset of that functionality here to implement functions/types for unit testing. Signed-off-by: Michael Roth --- qapi-schema-test.json | 16 1 files changed, 16 insertions(+), 0 deletions(-) create mode 1006

[Qemu-devel] [PATCH v1][ 17/21] qapi: add test-visiter, tests for gen. visiter code

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- test-visiter.c | 214 1 files changed, 214 insertions(+), 0 deletions(-) create mode 100644 test-visiter.c diff --git a/test-visiter.c b/test-visiter.c new file mode 100644 index 000..31596a0 --- /dev

[Qemu-devel] [QAPI+QGA 1/3] Error propagation and JSON parser fix-ups

2011-06-01 Thread Michael Roth
This is Set 1/3 of the QAPI+QGA patchsets. These patches apply on top of master (5-31), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set1-v1 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basic code ge

[Qemu-devel] [PATCH v1][ 18/21] qapi: Makefile changes to build test-visiter

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile | 13 + Makefile.objs |7 +++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index cf318c8..6636d2a 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,19 @@ check-qlist: check-qlist.o qlist.

[Qemu-devel] [PATCH v1][ 05/14] json-streamer: allow recovery after bad input

2011-06-01 Thread Michael Roth
From: Anthony Liguori Once we detect a malformed message, make sure to reset our state. Signed-off-by: Michael Roth --- json-streamer.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/json-streamer.c b/json-streamer.c index f7e7a68..549e9b7 100644 --- a/json-str

[Qemu-devel] [PATCH v3][ 2/7] guest agent: command state class

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- qga/guest-agent-command-state.c | 73 +++ 1 files changed, 73 insertions(+), 0 deletions(-) create mode 100644 qga/guest-agent-command-state.c diff --git a/qga/guest-agent-command-state.c b/qga/guest-agent-command-state.c ne

[Qemu-devel] [PATCH v1][ 10/21] qapi: add QMP input visiter

2011-06-01 Thread Michael Roth
A type of Visiter class that is used to walk a qobject's structure and assign each entry to the corresponding native C type. Command marshaling function will use this to pull out QMP command parameters recieved over the wire and pass them as native arguments to the corresponding C functions. Signe

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Paolo Bonzini
On 06/01/2011 03:46 PM, Avi Kivity wrote: Virtqueues 0:control transmitq 1:control receiveq 2:requestq Shouldn't we plan multiqueue for this from day 1? How would you do multiqueue? Just provide N queues, and the device can place requests for any LUN on any queue? If tha

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Avi Kivity
On 06/01/2011 07:25 PM, Paolo Bonzini wrote: On 06/01/2011 03:46 PM, Avi Kivity wrote: Virtqueues 0:control transmitq 1:control receiveq 2:requestq Shouldn't we plan multiqueue for this from day 1? How would you do multiqueue? Just provide N queues, and the device can pla

[Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-01 Thread Luiz Capitulino
Hi there, There are people who want to use QMP for thin provisioning. That's, the VM is started with a small storage and when a no space error is triggered, more space is allocated and the VM is put to run again. QMP has two limitations that prevent people from doing this today: 1. The BLOCK_IO_

[Qemu-devel] [PATCH v1][ 12/14] json-lexer: make lexer error-recovery more deterministic

2011-06-01 Thread Michael Roth
Currently when we reach an error state we effectively flush everything fed to the lexer, which can put us in a state where we keep feeding tokens into the parser at arbitrary offsets in the stream. This makes it difficult for the lexer/tokenizer/parser to get back in sync when bad input is made by

Re: [Qemu-devel] [PATCH V2 3/3] Remove warning in printf due to type mismatch

2011-06-01 Thread Andreas Färber
Markus, Stefan, Am 30.05.2011 um 00:22 schrieb Alexandre Raymond: 8< qemu/target-lm32/translate.c: In function ‘gen_intermediate_code_internal’: qemu/target-lm32/translate.c:1135: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 4 has type ‘int’ 8< Both gen

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 2:20 PM, Vivek Goyal wrote: > On Tue, May 31, 2011 at 06:30:09PM -0500, Anthony Liguori wrote: > > [..] >> The level of consistency will then depend on whether you overcommit >> your hardware and how you have it configured. > > Agreed. > >> >> Consistency is very hard becaus

[Qemu-devel] [PATCH v1][ 11/21] qapi: add QMP output visiter

2011-06-01 Thread Michael Roth
Type of Visiter class that serves as the inverse of the input visiter: it takes a series of native C types and uses their values to construct a corresponding QObject. The command marshaling/dispatcher functions will use this to convert the output of QMP functions into a QObject that can be sent ove

[Qemu-devel] [PATCH 2/2] kvm: Enable CPU SMEP feature

2011-06-01 Thread Marcelo Tosatti
From: "Yang, Wei Y" This patchset enables a new CPU feature SMEP (Supervisor Mode Execution Protection) in QEMU-KVM. SMEP prevents kernel from executing code in application. Updated Intel SDM describes this CPU feature. The document will be published soon. SMEP is identified by CPUID leaf 7 EB

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Vivek Goyal
On Wed, Jun 01, 2011 at 10:15:30PM +0100, Stefan Hajnoczi wrote: > On Wed, Jun 1, 2011 at 2:20 PM, Vivek Goyal wrote: > > On Tue, May 31, 2011 at 06:30:09PM -0500, Anthony Liguori wrote: > > > > [..] > >> The level of consistency will then depend on whether you overcommit > >> your hardware and ho

  1   2   >