Re: [Qemu-devel] q35 chipset support

2012-06-15 Thread Markus Armbruster
Anthony Liguori writes: > On 06/14/2012 02:54 PM, Jason Baron wrote: >> Hi, >> >> I recently updated Isaku Yamahata's q35 patches to work on the latest qemu >> and >> seabios trees. On the qemu side, most of the changes revolved around updating >> to use QOM and updates to the memory API. I was

Re: [Qemu-devel] [PATCH v3 0/2] Balloon event change notifications

2012-06-15 Thread Amit Shah
On (Thu) 14 Jun 2012 [18:12:55], Daniel P. Berrange wrote: > This is a followup to: > > https://lists.gnu.org/archive/html/qemu-devel/2012-05/msg02833.html > > > Changes since v2: > > - Drop 'query-events' patch which is already merged > - Rename balloon_change() function to balloon_chang

Re: [Qemu-devel] [PATCH v2 1/6] qerror: add MAX_KEYCODES 16

2012-06-15 Thread Amos Kong
On 14/06/12 18:20, Amos Kong wrote: On 12/06/12 01:25, Luiz Capitulino wrote: Hi Luiz, Anthony BTW, why is there a 16 keycode limit? 'Sendkey' command was added by this commit a3a91a355bc6107b7d06d722fb97d2b80065ee0b Limitation of keycodes number (16) was also introduced here, and I didn'

Re: [Qemu-devel] [PATCH v2 1/6] qerror: add MAX_KEYCODES 16

2012-06-15 Thread Gerd Hoffmann
Hi, >> It seems we need to notice user when inputted keys are more than 16. > > Hi Gerd, > > When I use 'sendkey' command to send key-series to guest, some keyboard > events will be send. There is a limitation (16) that was introduced by this > old commit c8256f9d (without description). Do you

Re: [Qemu-devel] qemu-system-ppc64 hanging occasionally in disk writes

2012-06-15 Thread Paolo Bonzini
Il 15/06/2012 00:01, Richard W.M. Jones ha scritto: >>> > > /home/rjones/d/qemu/ppc64-softmmu/qemu-system-ppc64 \ >>> > >-global virtio-blk-pci.scsi=off \ >>> > >-nodefconfig \ >>> > >-nodefaults \ >>> > >-nographic \ >>> > >-device virtio-scsi-pci,id=scsi \ >>> > >-drive fi

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

2012-06-15 Thread Laurent Desnogues
On Fri, Jun 15, 2012 at 12:30 AM, Lluís Vilanova wrote: [...] > Now that I think of it, you will have problems generating code to surround > each > qemu_ld/st with a lightweight mechanism to get the time. In x86 it would be > rdtsc, but you want to generate a host rdtsc instruction inside the cod

Re: [Qemu-devel] [PATCH] trace: added ability to comment out events in the list

2012-06-15 Thread Stefan Hajnoczi
On Fri, Jun 15, 2012 at 5:36 AM, Alexey Kardashevskiy wrote: > On 14/06/12 23:18, Stefan Hajnoczi wrote: >> On Thu, Jun 14, 2012 at 02:41:40PM +1000, Alexey Kardashevskiy wrote: >>> It is convenient for debug to be able to switch on/off some events easily. >>> The only possibility now is to remove

[Qemu-devel] question about irq update

2012-06-15 Thread Zhi Hui Li
In the code of libqtest.c have a function : bool qtest_get_irq(QTestState *s, int num) { /* dummy operation in order to make sure irq is up to date */ qtest_inb(s, 0); return s->irq_level[num]; } but I don't know how it can make the irq up to date and why we will read from the a

Re: [Qemu-devel] question about irq update

2012-06-15 Thread Paolo Bonzini
Il 15/06/2012 10:42, Zhi Hui Li ha scritto: > > bool qtest_get_irq(QTestState *s, int num) > { > /* dummy operation in order to make sure irq is up to date */ > qtest_inb(s, 0); > > return s->irq_level[num]; > } > > but I don't know how it can make the irq up to date > and why we wil

Re: [Qemu-devel] question about irq update

2012-06-15 Thread Zhi Hui Li
On 2012年06月15日 17:04, Paolo Bonzini wrote: It just forces libqtest to read any pending events. Ok, Thank you very much! :)

Re: [Qemu-devel] [PATCH 0/2] introduce bdrv_swap, implement bdrv_append on top

2012-06-15 Thread Kevin Wolf
Am 14.06.2012 16:55, schrieb Paolo Bonzini: > Yet another tiny bit extracted from block mirroring, looks like it > should be useful for block commit too. > > Paolo Bonzini (2): > block: copy over job and dirty bitmap fields in bdrv_append > block: introduce bdrv_swap, implement bdrv_append on

Re: [Qemu-devel] [PATCH 0/2] introduce bdrv_swap, implement bdrv_append on top

2012-06-15 Thread Paolo Bonzini
Il 15/06/2012 11:38, Kevin Wolf ha scritto: >> > Yet another tiny bit extracted from block mirroring, looks like it >> > should be useful for block commit too. >> > >> > Paolo Bonzini (2): >> > block: copy over job and dirty bitmap fields in bdrv_append >> > block: introduce bdrv_swap, impleme

[Qemu-devel] [PATCHv2 03/13] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable

2012-06-15 Thread Guan Xuetao
This patch initializes the cpuid to exactly correct value because linux kernel will check it. Also UC32_CPUID_* are removed. In addition, the exception types are specified in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao --- cpu-exec.

[Qemu-devel] [PATCHv2 04/13] unicore32-softmmu: Implement softmmu specific functions

2012-06-15 Thread Guan Xuetao
This patch implements softmmu specific functions, include tlb_fill, switch_mode, do_interrupt and uc32_cpu_handle_mmu_fault. So the full exception handlers and page table walking could work now. Signed-off-by: Guan Xuetao --- target-unicore32/op_helper.c | 22 - target-unicore32/softmmu.c

Re: [Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space

2012-06-15 Thread Wei-Ren Chen
Hi Guan, > /* These instructions trap after executing, so defer them until after the > conditional executions state has been updated. */ > @@ -1551,12 +1558,12 @@ static void do_misc(CPUUniCore32State *env, > DisasContext *s, uint32_t insn) > /* load/store I_offset and R_offset */ > stati

[Qemu-devel] [PATCHv2 1/1] Add usb option in machine options to enable/disable usb

2012-06-15 Thread Li Zhang
For pseries machine, it needs to enable usb to add keyboard or usb mouse. -usb option won't be used in the future, and machine options is a better way to enable usb. So this patch is to add usb option to machine options (-machine type=psereis,usb=on/off)to enable/disable usb controller. In this p

[Qemu-devel] [PATCHv2 09/13] unicore32-softmmu: Add puv3 gpio support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 gpio (General Purpose Input/Output) support, include gpio device simulation and its interrupt support. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + hw/puv3.c |6 ++ hw/puv3_gpio.c | 141 3 files ch

Re: [Qemu-devel] [PATCHv2 00/13] unicore32: add softmmu support and puv3 machine

2012-06-15 Thread Wei-Ren Chen
On Fri, Jun 15, 2012 at 05:47:33PM +0800, Guan Xuetao wrote: > These patches implement softmmu support on unicore32 architecture. > > UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3 > devices simulation codes together. > Only minimal system control modules are simulated, to ma

[Qemu-devel] [PATCHv2 06/13] unicore32-softmmu: Add puv3 soc/board support

2012-06-15 Thread Guan Xuetao
This patch only add puv3 soc/board support, which introduces puv3 machine description, and specifies console type. Signed-off-by: Guan Xuetao --- Makefile.target |1 + default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93 +

[Qemu-devel] [PATCH] cris: Fix NMI-flag handling on crisv10.

2012-06-15 Thread Lars Persson
- The M-flag is encoded in different bits on cris v10 and cris v32. Signed-off-by: Lars Persson --- cpu-exec.c | 17 - target-cris/cpu.h |3 ++- target-cris/helper.c|4 ++-- target-cris/op_helper.c |4 ++-- 4 files changed, 18 insertions(+), 1

Re: [Qemu-devel] [PATCHv2 01/13] unicore32-softmmu: Add unicore32-softmmu build support

2012-06-15 Thread Paolo Bonzini
Il 15/06/2012 11:47, Guan Xuetao ha scritto: > This patch adds unicore32-softmmu build support, include configure, > makefile, arch_init, and all missing functions needed by softmmu. > Although all missing functions are empty, unicore32-softmmu could > be build successfully. > > Signed-off-by: Gua

[Qemu-devel] [PATCHv2 01/13] unicore32-softmmu: Add unicore32-softmmu build support

2012-06-15 Thread Guan Xuetao
This patch adds unicore32-softmmu build support, include configure, makefile, arch_init, and all missing functions needed by softmmu. Although all missing functions are empty, unicore32-softmmu could be build successfully. Signed-off-by: Guan Xuetao --- Makefile.target |

Re: [Qemu-devel] IO performance test on the tcm-vhost scsi

2012-06-15 Thread Stefan Hajnoczi
On Thu, Jun 14, 2012 at 9:41 PM, Nicholas A. Bellinger wrote: > Btw, I'll likely end up doing this conversion to realize the performance > benefits when testing with raw flash backends, but I'm more than happy > to take a patch ahead of that if you have the extra cycles to spare. This was mention

[Qemu-devel] [PATCHv2 12/13] unicore32-softmmu: Add ps2 support

2012-06-15 Thread Guan Xuetao
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs/unicore32-softmmu.mak

[Qemu-devel] [PATCHv2 02/13] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-06-15 Thread Guan Xuetao
Coprocessor 0 is system control coprocessor, and we need get/set its contents. Also, all cache/tlb ops shoule be implemented here, but just ignored with no harm. Coprocessor 1 is OCD (on-chip-debugger), which is used for faked console, so we could output chars to this console without graphic card

[Qemu-devel] [PATCHv2 00/13] unicore32: add softmmu support and puv3 machine

2012-06-15 Thread Guan Xuetao
These patches implement softmmu support on unicore32 architecture. UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3 devices simulation codes together. Only minimal system control modules are simulated, to make linux kernel boot and busybox run in initramfs. Any advice is great

Re: [Qemu-devel] libguestfs now uses virtio-scsi, supports large numbers of disks

2012-06-15 Thread Stefan Hajnoczi
On Thu, Jun 14, 2012 at 2:49 PM, Richard W.M. Jones wrote: > I switched libguestfs over to using virtio-scsi.  One immediate > benefit is support for large numbers of disks: up to 255 because we're > using 1 target / disk and we reserve one disk for the appliance, in > theory more could be support

[Qemu-devel] [PATCHv2 13/13] unicore32-softmmu: Add maintainer information for UniCore32 machine

2012-06-15 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index b45f075..eb5d93a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -394,6 +394,13 @@ M: Alexander Graf S: Maintained F: hw/s390-*.c +UniCore32

[Qemu-devel] [PATCHv2 08/13] unicore32-softmmu: Add puv3 ostimer support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 ostimer support, include os timer device simulation and ptimer support in puv3 machine. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |3 + hw/puv3_ost.

[Qemu-devel] [PATCHv2 11/13] unicore32-softmmu: Add puv3 dma support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + hw/puv3.c |1 + hw/puv3_dma.c | 109 + 3 files changed, 111 insertion

[Qemu-devel] [PATCHv2 10/13] unicore32-softmmu: Add puv3 pm support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + hw/puv3.c |1 + hw/puv3_pm.c | 148 + 3 files changed, 150 insertions(+),

[Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space

2012-06-15 Thread Guan Xuetao
As a matter of course, we need to access user space in kernel code, so we need to correct load/store decoders to indicate correct memory region. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26 insertions(+), 10 deletion

[Qemu-devel] [PATCHv2 07/13] unicore32-softmmu: Add puv3 interrupt support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 interrupt support, include interrupt controler device simulation and interrupt handler in puv3 machine. Signed-off-by: Guan Xuetao --- Makefile.objs |3 + hw/puv3.c | 23 +- hw/puv3_intc.c | 135 3

Re: [Qemu-devel] [PATCH V13 0/9] Xen PCI Passthrough

2012-06-15 Thread Stefano Stabellini
On Thu, 14 Jun 2012, Michael S. Tsirkin wrote: > On Thu, Jun 14, 2012 at 06:01:40PM +0100, Anthony PERARD wrote: > > Hi all, > > > > This patch series introduces the PCI passthrough for Xen. > > > > Changes since the last version: > > - New patch that introduce a new qdev-property pci-host-deva

Re: [Qemu-devel] [PATCH 1/1] Add usb option in machine options.

2012-06-15 Thread Andreas Färber
Am 15.06.2012 05:06, schrieb Li Zhang: > > > On Thu, Jun 14, 2012 at 10:27 PM, Andreas Färber > wrote: > > Am 14.06.2012 07:17, schrieb zhlci...@gmail.com > : > > From: Li Zhang > > > >

Re: [Qemu-devel] [PATCH 0/3] xilinx: Speed up the build

2012-06-15 Thread Edgar E. Iglesias
On Sat, Jun 09, 2012 at 03:54:28AM +0200, Andreas Färber wrote: > Hello Edgar and Peter, > > With the Makefile refactoring applied now, here's the Makefile improvements > for MicroBlaze I mentioned. > > All Xilinx devices that are used for more than one softmmu are compiled once > in libhw32. Act

Re: [Qemu-devel] [PATCHv2 02/13] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-06-15 Thread Andreas Färber
Am 15.06.2012 11:47, schrieb Guan Xuetao: > Coprocessor 0 is system control coprocessor, and we need get/set its contents. > Also, all cache/tlb ops shoule be implemented here, but just ignored with no > harm. > > Coprocessor 1 is OCD (on-chip-debugger), which is used for faked console, > so we c

Re: [Qemu-devel] [PATCH v2 00/11] Xilinx Devs: refactored device and property names

2012-06-15 Thread Edgar E. Iglesias
On Wed, Jun 13, 2012 at 02:46:40PM +1000, Peter A. G. Crosthwaite wrote: > Refactored the device and property names of the Xilinx IP models to match > those used by Xilinx in their tools. > > This lays the groundwork for creating Xilinx IP machines from Xilinx > generated sources (using -readcon

[Qemu-devel] [PATCH 2/2] xenstore: Use

2012-06-15 Thread Anthony PERARD
In the next release of Xen (4.2), xs.h became deprecated. Signed-off-by: Anthony PERARD --- configure |2 +- hw/xen_common.h |6 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c2366ee..e7f66c9 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 1/2] xen: Reorganize includes of Xen headers.

2012-06-15 Thread Anthony PERARD
Because xs.h will be remove in future release of Xen, this patch removes the extra includes of this headers. Also, it removes the extra includes of xenctrl.h and xen/io/xenbus.h as there already are in xen_common.h. Signed-off-by: Anthony PERARD --- hw/xen_backend.c |6 ++ hw/xen_consol

[Qemu-devel] [PATCH 0/2] xen: Deprecation of .

2012-06-15 Thread Anthony PERARD
Considering that will be deprecated in the next release of Xen, this two patches clean a bit the inclusion of xs.h and changes it in a single place. Anthony PERARD (2): xen: Reorganize includes of Xen headers. xenstore: Use configure|2 +- hw/xen_backend.c |6 ++ hw/xen

Re: [Qemu-devel] libguestfs now uses virtio-scsi, supports large numbers of disks

2012-06-15 Thread Richard W.M. Jones
On Fri, Jun 15, 2012 at 11:44:42AM +0100, Stefan Hajnoczi wrote: > On Thu, Jun 14, 2012 at 2:49 PM, Richard W.M. Jones wrote: > > I switched libguestfs over to using virtio-scsi.  One immediate > > benefit is support for large numbers of disks: up to 255 because we're > > using 1 target / disk and

Re: [Qemu-devel] [PATCH] cris: Fix NMI-flag handling on crisv10.

2012-06-15 Thread Edgar E. Iglesias
On Thu, Jun 14, 2012 at 04:23:55PM +0200, Lars Persson wrote: > - The M-flag is encoded in different bits on cris v10 and cris v32. I applied this with a small change to remove an accidental tab from cpu-exec.c Thanks Lars. > > Signed-off-by: Lars Persson > --- > cpu-exec.c |

Re: [Qemu-devel] [PATCH v2 09/11] xilinx_axienet: changed device name

2012-06-15 Thread Andreas Färber
Am 13.06.2012 06:46, schrieb Peter A. G. Crosthwaite: > Changed device name to xlnx,axi-ethernet. This is the exact name of the > device in the xilinx EDK development tools. > > Signed-off-by: Peter A. G. Crosthwaite Commit message doesn't match the change. Which one is right? /-F > --- > hw/

Re: [Qemu-devel] [PATCH v2 11/11] xilinx_axidma: changed device name

2012-06-15 Thread Andreas Färber
Am 13.06.2012 06:46, schrieb Peter A. G. Crosthwaite: > Changed device name to xlnx,axi-dma. This is the exact name of the device in > the > Xilinx EDK development tools. > > Signed-off-by: Peter A. G. Crosthwaite Same here. Please review more carefully. /-F > --- > hw/xilinx.h|2

Re: [Qemu-devel] [PATCH v2 07/11] xilinx_ethlite: changed device name

2012-06-15 Thread Andreas Färber
Am 13.06.2012 06:46, schrieb Peter A. G. Crosthwaite: > Changed device name to xlnx,xps-ethernetlite. This is the exact name of the > device in the xilinx EDK development tools. > > Signed-off-by: Peter A. G. Crosthwaite Dito. /-F > --- > hw/xilinx.h |4 ++-- > hw/xilinx_ethlite.c

Re: [Qemu-devel] [PATCH v2 05/11] xilinx_intc: changed device name

2012-06-15 Thread Andreas Färber
Am 13.06.2012 06:46, schrieb Peter A. G. Crosthwaite: > Changed device name to xlnx,xps-intc. This is the exact name of the device > in the xilinx EDK development tools. > > Signed-off-by: Peter A. G. Crosthwaite Dito. /-F > --- > hw/xilinx.h |2 +- > hw/xilinx_intc.c |4 ++-- >

Re: [Qemu-devel] [PATCH v2 01/11] xilinx_uartlite: changed device name

2012-06-15 Thread Andreas Färber
Am 13.06.2012 06:46, schrieb Peter A. G. Crosthwaite: > Changed device name to xlnx,xps-uartlite. This is the exact name of the device > in the xilinx EDK development tools. > > Signed-off-by: Peter A. G. Crosthwaite Dito. /-F > --- > hw/petalogix_s3adsp1800_mmu.c |2 +- > hw/xilinx_uartl

[Qemu-devel] [PATCH] qcow2: Silence false warning

2012-06-15 Thread Kevin Wolf
Some gcc versions seem not to be able to figure out that the switch statement covers all possible values and that c is therefore always initialised. Add a default branch for them. Reported-by: malc Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |2 ++ 1 files changed, 2 insertions(+),

Re: [Qemu-devel] [PATCH 2/2] xenstore: Use

2012-06-15 Thread Juan Quintela
Anthony PERARD wrote: > In the next release of Xen (4.2), xs.h became deprecated. > > Signed-off-by: Anthony PERARD > --- > configure |2 +- > hw/xen_common.h |6 +- > 2 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/configure b/configure > index c2366ee..e7f66

Re: [Qemu-devel] [PATCH] qcow2: Silence false warning

2012-06-15 Thread malc
On Fri, 15 Jun 2012, Kevin Wolf wrote: > Some gcc versions seem not to be able to figure out that the switch > statement covers all possible values and that c is therefore always > initialised. Add a default branch for them. > Applied, thanks. -- mailto:av1...@comtv.ru

Re: [Qemu-devel] [PATCHv2 1/1] Add usb option in machine options to enable/disable usb

2012-06-15 Thread Markus Armbruster
Li Zhang writes: > For pseries machine, it needs to enable usb to add > keyboard or usb mouse. -usb option won't be used in > the future, and machine options is a better way to > enable usb. > > So this patch is to add usb option to machine options > (-machine type=psereis,usb=on/off)to enable/di

Re: [Qemu-devel] [PATCH 2/2] xenstore: Use

2012-06-15 Thread Anthony PERARD
On 15/06/12 12:53, Juan Quintela wrote: Anthony PERARD wrote: In the next release of Xen (4.2), xs.h became deprecated. Signed-off-by: Anthony PERARD --- configure |2 +- hw/xen_common.h |6 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/con

Re: [Qemu-devel] [PATCH 2/2] xenstore: Use

2012-06-15 Thread Stefano Stabellini
On Fri, 15 Jun 2012, Juan Quintela wrote: > Anthony PERARD wrote: > > In the next release of Xen (4.2), xs.h became deprecated. > > > > Signed-off-by: Anthony PERARD > > --- > > configure |2 +- > > hw/xen_common.h |6 +- > > 2 files changed, 6 insertions(+), 2 deletions(-) > >

Re: [Qemu-devel] [PATCH 0/2] xen: Deprecation of .

2012-06-15 Thread Stefano Stabellini
On Fri, 15 Jun 2012, Anthony PERARD wrote: > Considering that will be deprecated in the next release of Xen, this > two > patches clean a bit the inclusion of xs.h and changes it in a single place. > > Anthony PERARD (2): > xen: Reorganize includes of Xen headers. > xenstore: Use > > conf

Re: [Qemu-devel] [PATCHv2 1/1] Add usb option in machine options to enable/disable usb

2012-06-15 Thread Andreas Färber
Am 15.06.2012 12:06, schrieb Li Zhang: > For pseries machine, it needs to enable usb to add > keyboard or usb mouse. -usb option won't be used in > the future, and machine options is a better way to > enable usb. > > So this patch is to add usb option to machine options > (-machine type=psereis,us

Re: [Qemu-devel] [PATCHv2 01/13] unicore32-softmmu: Add unicore32-softmmu build support

2012-06-15 Thread Andreas Färber
Am 15.06.2012 12:28, schrieb Paolo Bonzini: > Il 15/06/2012 11:47, Guan Xuetao ha scritto: >> This patch adds unicore32-softmmu build support, include configure, >> makefile, arch_init, and all missing functions needed by softmmu. >> Although all missing functions are empty, unicore32-softmmu could

Re: [Qemu-devel] [PATCH 1/1] Add usb option in machine options.

2012-06-15 Thread Li Zhang
On Fri, Jun 15, 2012 at 7:09 PM, Andreas Färber wrote: > > Am 15.06.2012 05:06, schrieb Li Zhang: > > > > > > On Thu, Jun 14, 2012 at 10:27 PM, Andreas Färber > > wrote: > > > >     Am 14.06.2012 07:17, schrieb zhlci...@gmail.com > >     : > >  

Re: [Qemu-devel] [PATCHv2 1/1] Add usb option in machine options to enable/disable usb

2012-06-15 Thread Li Zhang
On Fri, Jun 15, 2012 at 8:04 PM, Markus Armbruster wrote: > Li Zhang writes: > >> For pseries machine, it needs to enable usb to add >> keyboard or usb mouse. -usb option won't be used in >> the future, and machine options is a better way to >> enable usb. >> >> So this patch is to add usb option

Re: [Qemu-devel] [PATCHv2 1/1] Add usb option in machine options to enable/disable usb

2012-06-15 Thread Li Zhang
On Fri, Jun 15, 2012 at 8:30 PM, Andreas Färber wrote: > Am 15.06.2012 12:06, schrieb Li Zhang: >> For pseries machine, it needs to enable usb to add >> keyboard or usb mouse. -usb option won't be used in >> the future, and machine options is a better way to >> enable usb. >> >> So this patch is t

Re: [Qemu-devel] [PATCHv2 01/13] unicore32-softmmu: Add unicore32-softmmu build support

2012-06-15 Thread Paolo Bonzini
> >> +obj-unicore32-y += softmmu.o > >> + > > > > You need to rebase this and put this line (actually > > obj-$(CONFIG_SOFTMMU) += softmmu.o) in > > target-unicore32/Makefile.objs. > > Noticed this, too. I wonder if Xuetao could place the new puv3.c > machine file into hw/unicore32/ now, if he wa

[Qemu-devel] [PULL 00/39] Block patches

2012-06-15 Thread Kevin Wolf
The following changes since commit 63bb682a18acc5d2f3219ea96c4d81c1a3b50748: Merge branch 'master' of git://git.qemu.org/qemu (2012-06-15 15:53:34 +0400) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Josh Durgin (1): rbd: hook up cache options Ke

[Qemu-devel] [PATCH 20/39] block: flush in writethrough mode after writes

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini We want to make the formats handle their own flushes autonomously, while keeping for guests the ability to use a writethrough cache. Since formats will write metadata via bs->file, bdrv_co_do_writev is the only place where we need to add a flush. Signed-off-by: Paolo Bonzini

[Qemu-devel] [PATCH 19/39] qemu-iotests: start vms in qtest mode

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini This way, they will not execute any VM code at all. However, right now the cancellation test is "relying" on being slowed down by TCG executing BIOS code. So, change the timeouts. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- tests/qemu-iotests/030|

[Qemu-devel] [PATCH 36/39] fdc: fix implied seek while there is no media in drive

2012-06-15 Thread Kevin Wolf
From: Pavel Hrdina The Windows uses 'READ' command at the start of an instalation without checking the 'dir' register. We have to abort the transfer with an abnormal termination if there is no media in the drive. Signed-off-by: Pavel Hrdina Signed-off-by: Kevin Wolf --- hw/fdc.c |4

Re: [Qemu-devel] [libseccomp-discuss] [RFC] [PATCHv2 0/2] Sandboxing Qemu guests with Libseccomp

2012-06-15 Thread Paul Moore
On Thursday, June 14, 2012 02:59:06 PM Kees Cook wrote: > On Wed, Jun 13, 2012 at 1:31 PM, Paul Moore wrote: > > On Wednesday, June 13, 2012 04:20:20 PM Eduardo Otubo wrote: > >> Hello all, > >> > >> This is the second effort to sandbox Qemu guests using Libseccomp[0]. > > > > ... > > > >> [0]

[Qemu-devel] [PATCH 25/39] ide: support enable/disable write cache

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini Enabling or disabling the write cache is done with the SET FEATURES command. The command can be issued with sg_sat_set_features from sg3-utils. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/ide/core.c | 21 ++--- 1 files changed, 18 inser

Re: [Qemu-devel] [PATCH v2] qapi: converted commit

2012-06-15 Thread Luiz Capitulino
On Thu, 14 Jun 2012 09:35:21 +0200 Pavel Hrdina wrote: > > Signed-off-by: Pavel Hrdina > --- > Please ignore previous patch, I forget to change 'Since' version. > > blockdev.c |9 - > blockdev.h |1 - > hmp-commands.hx |2 +- > hmp.c|9

[Qemu-devel] [PatchV2] s390: autodetect map private

2012-06-15 Thread Christian Borntraeger
By default qemu will use MAP_PRIVATE for guest pages. This will write protect pages and thus break on s390 systems that dont support this feature. Therefore qemu has a hack to always use MAP_SHARED for s390. But MAP_SHARED has other problems (no dirty pages tracking, a lot more swap overhead etc.)

[Qemu-devel] Next version of memory allocation fixup

2012-06-15 Thread Christian Borntraeger
Jan, Alex, what about this version? I had two options: ifdef in kvm for s390 or provide a kvm_arch_vmalloc for every kvm arch. I did choose the first one.

Re: [Qemu-devel] [PATCH v2] qapi: converted commit

2012-06-15 Thread Luiz Capitulino
On Thu, 14 Jun 2012 17:21:44 +0200 Pavel Hrdina wrote: > On 06/14/2012 05:04 PM, Eric Blake wrote: > > On 06/14/2012 08:56 AM, Pavel Hrdina wrote: > >> On 06/14/2012 02:18 PM, Eric Blake wrote: > >>> On 06/14/2012 01:35 AM, Pavel Hrdina wrote: > Signed-off-by: Pavel Hrdina > --- >

[Qemu-devel] [PATCH 31/39] qemu-img: document qed format on qemu-img man page

2012-06-15 Thread Kevin Wolf
From: Stefan Hajnoczi The qemu-img.1 man page is missing the qed format from its list of supported formats. Document the image creation options for qed. Suggested-by: Michael Tokarev Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- qemu-img.texi | 23 +++ 1

Re: [Qemu-devel] [PATCH v2] qapi: converted commit

2012-06-15 Thread Jeff Cody
On 06/15/2012 10:02 AM, Luiz Capitulino wrote: > On Thu, 14 Jun 2012 17:21:44 +0200 > Pavel Hrdina wrote: > >> On 06/14/2012 05:04 PM, Eric Blake wrote: >>> On 06/14/2012 08:56 AM, Pavel Hrdina wrote: On 06/14/2012 02:18 PM, Eric Blake wrote: > On 06/14/2012 01:35 AM, Pavel Hrdina wrote:

[Qemu-devel] [PATCH 15/39] Prevent disk data loss when closing qemu

2012-06-15 Thread Kevin Wolf
From: Pavel Dovgaluk Prevent disk data loss when closing qemu console window under Windows 7. v3. Comment for Sleep() parameter was updated. Signed-off-by: Pavel Dovgalyuk Signed-off-by: Kevin Wolf --- os-win32.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/

[Qemu-devel] [PATCH 13/39] sheepdog: add coroutine_fn markers to coroutine functions

2012-06-15 Thread Kevin Wolf
From: MORITA Kazutaka Signed-off-by: MORITA Kazutaka Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/sheepdog.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index f46ca8f..8877f45 100644 --- a/block/sheep

[Qemu-devel] [PATCH 38/39] qemu-iotests: add qcow2.py set-feature-bit command

2012-06-15 Thread Kevin Wolf
From: Stefan Hajnoczi This new command sets feature bits in the image file header: qcow2.py set-feature-bit incompatible|compatible|autoclear The bit number must be in the range [0, 64). Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- tests/qemu-iotests/qcow2.py | 23 +

Re: [Qemu-devel] qemu-system-ppc64 hanging occasionally in disk writes

2012-06-15 Thread Richard W.M. Jones
On Thu, Jun 14, 2012 at 06:13:11PM +0100, Richard W.M. Jones wrote: > I just tried virtio-scsi, but only the first disk shows up. I added > two disks. See below for detailed logs. This works fine on x86-64. > Should I file a separate bug for this? Here's that bug: https://bugs.launchpad.net/qe

[Qemu-devel] [Bug 1013691] [NEW] ppc64 + virtio-scsi: only first scsi disk shows up in the guest

2012-06-15 Thread Richard W.M. Jones
Public bug reported: When adding two virtio-scsi targets to a single guest, only the first disk is seen inside the guest. For some unknown reason the guest doesn't enumerate the second disk. For full qemu-system-ppc64 command line and 'dmesg' output, see: http://lists.nongnu.org/archive/html/qe

Re: [Qemu-devel] [PATCH v3 2/5] qapi: Add pass-fd QMP command

2012-06-15 Thread Luiz Capitulino
On Thu, 14 Jun 2012 11:55:02 -0400 Corey Bryant wrote: > This patch adds the pass-fd QMP command using the QAPI framework. > Like the getfd command, it is used to pass a file descriptor via > SCM_RIGHTS. However, the pass-fd command also returns the received > file descriptor, which is a differe

Re: [Qemu-devel] [PATCH v3 4/5] block: Convert open calls to qemu_open

2012-06-15 Thread Luiz Capitulino
On Thu, 14 Jun 2012 11:55:04 -0400 Corey Bryant wrote: > This patch converts all block layer open calls to qemu_open. This > enables all block layer open paths to dup(X) a pre-opened file > descriptor if the filename is of the format /dev/fd/X. This is > useful if QEMU is restricted from openin

Re: [Qemu-devel] [PATCH v3 5/5] block: Prevent /dev/fd/X filename from being detected as floppy

2012-06-15 Thread Luiz Capitulino
On Thu, 14 Jun 2012 11:55:05 -0400 Corey Bryant wrote: > Reported-by: Kevin Wolf > Reviewed-by: Paolo Bonzini > Signed-off-by: Corey Bryant This too, would be better to move before the /dev/fd/X feature so that we avoid having introducing a bug and fixing it in a later commit. But again, it's

[Qemu-devel] [PATCH 14/39] block: Simplify how drive_init() computes default ID

2012-06-15 Thread Kevin Wolf
From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- blockdev.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/blockdev.c b/blockdev.c index 622ecba..9e0a72a 100644 --- a/blockdev.c +++ b/blockdev.c @@ -278,7 +278,6 @@ DriveInfo

[Qemu-devel] [PATCH 35/39] qcow2: fix autoclear image header update

2012-06-15 Thread Kevin Wolf
From: Stefan Hajnoczi The autoclear feature bits can be used for qcow2 file format features that are safe to "drop" by old programs that do not understand the feature. Upon opening the image file unknown autoclear feature bits are cleared and the image file header is rewritten, but this was happ

Re: [Qemu-devel] [PATCH v2] qapi: converted commit

2012-06-15 Thread Luiz Capitulino
On Fri, 15 Jun 2012 10:11:46 -0400 Jeff Cody wrote: > On 06/15/2012 10:02 AM, Luiz Capitulino wrote: > > On Thu, 14 Jun 2012 17:21:44 +0200 > > Pavel Hrdina wrote: > > > >> On 06/14/2012 05:04 PM, Eric Blake wrote: > >>> On 06/14/2012 08:56 AM, Pavel Hrdina wrote: > On 06/14/2012 02:18 PM,

[Qemu-devel] [PATCH 10/39] qemu-img check: Print fixed clusters and recheck

2012-06-15 Thread Kevin Wolf
When any inconsistencies have been fixed, print the statistics and run another check to make sure everything is correct now. Signed-off-by: Kevin Wolf --- block.h |2 ++ block/qed-check.c |2 ++ qemu-img.c| 10 ++ 3 files changed, 14 insertions(+), 0 deletions

Re: [Qemu-devel] Adding errno to QMP errors

2012-06-15 Thread Luiz Capitulino
On Wed, 13 Jun 2012 14:49:10 -0300 Luiz Capitulino wrote: > On Thu, 31 May 2012 16:54:47 +0200 > Paolo Bonzini wrote: > > > Wait, I think you're conflating two things. > > > > One is "do not shoehorn errors into errno values". So for QOM invalid > > values we > > have PropertyValueBad, not a

[Qemu-devel] [PATCH 05/39] stream: move is_allocated_above to block.c

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block.c| 49 + block.h|4 block/stream.c | 53 ++--- 3 files changed, 55 insertions(+), 51

[Qemu-devel] [PATCH 02/39] qcow2: fix endianness conversion

2012-06-15 Thread Kevin Wolf
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 812c93c..443c021 100644 --- a/block/qc

Re: [Qemu-devel] [PATCH 0/3] xilinx: Speed up the build

2012-06-15 Thread Andreas Färber
Am 15.06.2012 13:13, schrieb Edgar E. Iglesias: > On Sat, Jun 09, 2012 at 03:54:28AM +0200, Andreas Färber wrote: >> Hello Edgar and Peter, >> >> With the Makefile refactoring applied now, here's the Makefile improvements >> for MicroBlaze I mentioned. >> >> All Xilinx devices that are used for mor

[Qemu-devel] [PATCH 37/39] fdc-test: introduced qtest read_without_media

2012-06-15 Thread Kevin Wolf
From: Pavel Hrdina If you try to read from a floppy drive without a media, you should get an abnormal termination error. Signed-off-by: Pavel Hrdina Signed-off-by: Kevin Wolf --- tests/fdc-test.c | 66 ++ 1 files changed, 66 insertions(+),

[Qemu-devel] [PATCH 06/39] stream: move rate limiting to a separate header file

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini Make the code reusable. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block/stream.c | 31 +--- include/qemu/ratelimit.h | 48 ++ 2 files changed, 50 insertions(+), 29 deletions(

[Qemu-devel] [PATCH 04/39] stream: tweak usage of bdrv_co_is_allocated

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini is_allocated_base has complex semantics that are not really usable outside streaming. Split the check in two parts, where the allocated state for the top bs is moved to the caller. The resulting function is more generally useful. Signed-off-by: Paolo Bonzini Signed-off-by:

[Qemu-devel] [PATCH 28/39] qcow2: Fix avail_sectors in cluster allocation code

2012-06-15 Thread Kevin Wolf
avail_sectors should really be the number of sectors from the start of the allocation, not from the start of the write request. We're lucky enough that this mistake didn't cause any real bug. avail_sectors is only used in the intialiser of QCowL2Meta: .nb_available = MIN(requested_sectors, av

[Qemu-devel] [PATCH 18/39] qemu-iotests: fill streaming test image with data

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini The TestStreamStop test case is racy; if the job completes before we can cancel it, it fails. If we remove the sleep the job will be canceled before it has even started, and the test succeeds but it is also not testing anything interesting. But if the image is left sparse, t

[Qemu-devel] [PATCH 24/39] block: always open drivers in writeback mode

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini Formats are entirely in charge of flushes for metadata writes. For guest-initiated writes, a writethrough cache is faked in the block layer. So we can always open in writeback mode. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block.c |3 ++- 1 files cha

Re: [Qemu-devel] USB hardware simulation in external process

2012-06-15 Thread Daniel Mack
On 12.06.2012 09:56, Dor Laor wrote: > On 06/11/2012 05:48 PM, Daniel Mack wrote: >> Hey, >> >> I'm thinking about adding a USB hardware proxy that allows communication >> with an external server process which in turn simulates USB devices. >> >> I'm new to the internals of QEMU, so what I'm sharin

[Qemu-devel] [PATCH 33/39] xen: Don't change -drive if=xen device name during machine init

2012-06-15 Thread Kevin Wolf
From: Markus Armbruster A "top" BlockDriverState has a non-empty device_name. If the user doesn't specify one with -drive parameter id, the system supplies a default name. xen_config_dev_blk() changes this name, during machine initialization. Naughty. Don't do that. Signed-off-by: Markus Armb

[Qemu-devel] [PATCH 29/39] qemu-iotests: Some backing file COW tests

2012-06-15 Thread Kevin Wolf
Looks like we're still missing these very basic tests for backing file handling. Signed-off-by: Kevin Wolf Reviewed-by: Paolo Bonzini --- tests/qemu-iotests/037 | 119 tests/qemu-iotests/037.out | 645 tests/qemu-iotests/group |1

[Qemu-devel] [PATCH 26/39] qcow2: always operate caches in writeback mode

2012-06-15 Thread Kevin Wolf
From: Paolo Bonzini Writethrough does not need special-casing anymore in the qcow2 caches. The block layer adds flushes after every guest-initiated data write, and these will also flush the qcow2 caches to the OS. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block/qcow2-cache.c

Re: [Qemu-devel] [PATCH v3 2/5] qapi: Add pass-fd QMP command

2012-06-15 Thread Corey Bryant
On 06/15/2012 10:32 AM, Luiz Capitulino wrote: On Thu, 14 Jun 2012 11:55:02 -0400 Corey Bryant wrote: This patch adds the pass-fd QMP command using the QAPI framework. Like the getfd command, it is used to pass a file descriptor via SCM_RIGHTS. However, the pass-fd command also returns the

  1   2   3   >