Re: [Qemu-devel] memory trace with qemu

2010-07-22 Thread Stefan Hajnoczi
On Fri, Jul 23, 2010 at 4:12 AM, Mulyadi Santosa wrote: > Hi... > > On Fri, Jul 23, 2010 at 05:30, Eduardo Cruz wrote: >> Hello, I need qemu to keep track of all the memory access made by the guest, >> including read, write and the instruction fetches. > > AFAIK there are lots of experiments on t

[Qemu-devel] [patch] remove dead code

2010-07-22 Thread Jun Koi
this patch removes unused function cpu_restore_state_copy(). Signed-off-by: Jun Koi diff --git a/exec-all.h b/exec-all.h index 58b5575..3a53fe6 100644 --- a/exec-all.h +++ b/exec-all.h @@ -86,9 +86,6 @@ int cpu_gen_code(CPUState *env, struct TranslationBlock *tb, int cpu_restore_state(struct

[Qemu-devel] [patch] add cscope.* to .gitignore

2010-07-22 Thread Jun Koi
we have "make cscope", therefore that makes sense to have cscope.* in .gitignore. Signed-off-by: Jun Koi diff --git a/.gitignore b/.gitignore index a32b7c4..ec6f89f 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ pc-bios/optionrom/linuxboot.bin pc-bios/optionrom/multiboot.bin pc-b

Re: [Qemu-devel] [PATCH 8/8] Rework debug exception processing for gdb use

2010-07-22 Thread Jun Koi
On Fri, Jul 23, 2010 at 1:58 PM, TeLeMan wrote: > On Fri, Jun 25, 2010 at 22:56, Jan Kiszka wrote: >> Guest debugging is currently broken under CONFIG_IOTHREAD. The reason is >> inconsistent or even lacking signaling the debug events from the source >> VCPU to the main loop and the gdbstub. >> >>

Re: [Qemu-devel] [PATCH 8/8] Rework debug exception processing for gdb use

2010-07-22 Thread TeLeMan
On Fri, Jun 25, 2010 at 22:56, Jan Kiszka wrote: > Guest debugging is currently broken under CONFIG_IOTHREAD. The reason is > inconsistent or even lacking signaling the debug events from the source > VCPU to the main loop and the gdbstub. > > This patch addresses the issue by pushing this signalin

Re: [Qemu-devel] Re: Release of COREMU, a scalable and portable full-system emulator

2010-07-22 Thread wang Tiger
在 2010年7月22日 下午11:47,Stefan Hajnoczi 写道: > 2010/7/22 wang Tiger : >> 在 2010年7月22日 下午9:00,Jan Kiszka 写道: >>> Stefan Hajnoczi wrote: On Thu, Jul 22, 2010 at 9:48 AM, Chen Yufei wrote: > On 2010-7-22, at 上午1:04, Stefan Weil wrote: > >> Am 21.07.2010 09:03, schrieb Chen Yufei: >

Re: [Qemu-devel] memory trace with qemu

2010-07-22 Thread Mulyadi Santosa
Hi... On Fri, Jul 23, 2010 at 05:30, Eduardo Cruz wrote: > Hello, I need qemu to keep track of all the memory access made by the guest, > including read, write and the instruction fetches. AFAIK there are lots of experiments on this and has produces working patches...at least from the posting of

Re: [Qemu-devel] regs_to_env() ?

2010-07-22 Thread Jun Koi
On Fri, Jul 23, 2010 at 10:43 AM, Jun Koi wrote: > On Fri, Jul 23, 2010 at 7:08 AM, Blue Swirl wrote: >> On Thu, Jul 22, 2010 at 2:06 AM, Jun Koi wrote: >>> Hi, >>> >>> Function regs_to_env() in target-i386/exec.h has a code like below: >>> >>> ... >>> #ifdef reg_EAX >>> env->regs[R_EAX] = EAX >

Re: [Qemu-devel] regs_to_env() ?

2010-07-22 Thread Jun Koi
On Fri, Jul 23, 2010 at 7:08 AM, Blue Swirl wrote: > On Thu, Jul 22, 2010 at 2:06 AM, Jun Koi wrote: >> Hi, >> >> Function regs_to_env() in target-i386/exec.h has a code like below: >> >> ... >> #ifdef reg_EAX >> env->regs[R_EAX] = EAX >> #endif >> ... >> >> However, elsewhere we have EAX defined

Re: [Qemu-devel] Unknown command 0xffffff in SVGA command FIFO

2010-07-22 Thread andrzej zaborowski
Sorry, tried to use get-send-email but haven't tested first. On 23 July 2010 03:35, wrote: > From: Andrzej Zaborowski ...

Re: [Qemu-devel] Unknown command 0xffffff in SVGA command FIFO

2010-07-22 Thread balrog
From: Andrzej Zaborowski Hi Janne, I came up with this version, it kind of reverses the logic of your patch but reuses the _items function (renamed _length), please see if it looks ok and possibly even works. diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 12bff48..464f8bc 100644 --- a/hw/v

[Qemu-devel] [PATCH 07/34] via: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/ide/via.c | 65 - 1 files changed, 41 insertions(+), 24 deletions(-) diff --git a/hw/ide/via.c b/hw/ide/via.c index b2c7cad..36901b3 100644 --- a/hw/ide/vi

[Qemu-devel] [PATCH 06/34] ne2000: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/ne2000.c | 66 +++--- 1 files changed, 44 insertions(+), 22 deletions(-) diff --git a/hw/ne2000.c b/hw/ne2000.c index 126e7cf..2b1e1ad 100644 --- a/hw/ne2000.c

[Qemu-devel] [PATCH 13/34] usb-ohci: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/usb-ohci.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index c60fd8d..992400e 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -1717,13 +1717,6 @

[Qemu-devel] [PATCH 04/34] ebus: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/isa.h |1 + hw/isa_mmio.c | 17 +++-- hw/sun4u.c| 29 ++--- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/hw/isa.h b/hw/isa.h index aaf0272..6

[Qemu-devel] [Bug 586175] Re: Windows XP/2003 doesn't boot

2010-07-22 Thread tekditt
I have to correct myself. Booting from Windows XP/2003 after the first reboot of the Windows setup is still impossible (without booting from the install CD at first). I tried both the command line used by libvirt and the following one: > qemu-kvm -hda thisfile -cdrom thatfile -boot c Also, I te

[Qemu-devel] [PATCH 05/34] macio: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/macio.c| 107 hw/ppc_mac.h |5 +- hw/ppc_newworld.c |2 +- hw/ppc_oldworld.c |4 +- 4 files changed, 39 insertions(+), 79 deletions(-)

[Qemu-devel] [PATCH v3 00/34] pci: handle BAR mapping and byte swapping at bus level

2010-07-22 Thread Blue Swirl
In this version, map_func is transformed to post_map_func and the PCI bus performs always the BAR mapping. Byte swapping (like in v1 but bug fixed) is moved to host bridges. I think this would be too big a change for 0.13, otherwise this passes my quick tests for x86, Sparc64 and PPC. The series

[Qemu-devel] memory trace with qemu

2010-07-22 Thread Eduardo Cruz
Hello, I need qemu to keep track of all the memory access made by the guest, including read, write and the instruction fetches. I was using Simics to acomplish this task, but it is very slow. I need the virtual address, the size of the operation, the cycle number when it happened and if it is a rea

[Qemu-devel] [PATCH 03/34] es1370: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/es1370.c | 32 +++- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index 40cb48c..a6f890e 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -906

Re: [Qemu-devel] [PATCH] Monitor: Convert do_sendkey() to QObject, QError

2010-07-22 Thread Luiz Capitulino
On Thu, 22 Jul 2010 23:17:39 +0200 Artyom Tarasenko wrote: > 2010/7/21 Luiz Capitulino : > > > Do you need this for 0.13? I think the development window is already closed. > > Was it announced somewhere? I heard it on the conf call and iirc it was said on some thread too, but I think it will o

[Qemu-devel] [PATCH 01/34] ioport: separate registration from mapping

2010-07-22 Thread Blue Swirl
Add I/O port registration functions which separate registration from the mapping stage. Signed-off-by: Blue Swirl --- ioport.c | 117 +++-- ioport.h |6 +++ 2 files changed, 111 insertions(+), 12 deletions(-) diff --git a/ioport.c b/i

[Qemu-devel] [PATCH 10/34] openpic: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/openpic.c | 36 +--- 1 files changed, 5 insertions(+), 31 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 01bf15f..3f97afd 100644 --- a/hw/openpic.c +++ b/hw/openpic.c

[Qemu-devel] [News] Important News about Jesus and Living Apostle

2010-07-22 Thread ApostleNews
Very important news about J= esus, Blessed Virgin Mary and living Apostle in the world today. Now on You Tube Channel&nbs= p; http://www.youtube.com/apostolicsee   Thanking You,   Sub= scription Options This email was sent = to qemu-devel@nongnu.org &n= bsp;I want to Unsubscribe |Subscribe=

[Qemu-devel] [PATCH 11/34] pcnet: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/pcnet.c | 62 +-- 1 files changed, 30 insertions(+), 32 deletions(-) diff --git a/hw/pcnet.c b/hw/pcnet.c index b52935a..49ff321 100644 --- a/hw/pcnet.c ++

[Qemu-devel] [PATCH 19/34] e1000: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Signed-off-by: Blue Swirl --- hw/e1000.c | 15 +++ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index 6d1c3d4..d64fb79 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -149,14 +

[Qemu-devel] [PATCH 08/34] piix: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/ide/piix.c | 72 +++- 1 files changed, 45 insertions(+), 27 deletions(-) diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 07483e8..959e061 100644 --- a/hw/ide/

[Qemu-devel] [PATCH 16/34] pci: add post_map_func, adjust callers

2010-07-22 Thread Blue Swirl
Add a callback for PCI BAR mapping. Replaces map_func. Signed-off-by: Blue Swirl --- hw/ac97.c |5 +++-- hw/cirrus_vga.c |5 +++-- hw/e1000.c|4 ++-- hw/eepro100.c |8 hw/es1370.c |2 +- hw/ide/cmd646.c | 10 +- hw/ide/piix.c

[Qemu-devel] [PATCH 02/34] pci: handle BAR mapping at PCI level

2010-07-22 Thread Blue Swirl
Move IOIO and MMIO BAR mapping to pci.c. Signed-off-by: Blue Swirl --- hw/pci.c | 167 - hw/pci.h | 14 +- 2 files changed, 122 insertions(+), 59 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index a98d6f3..49f03fb 100644 --- a/

[Qemu-devel] [PATCH 12/34] rtl8139: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/rtl8139.c | 42 -- 1 files changed, 16 insertions(+), 26 deletions(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index d92981d..bc20549 100644 --- a/hw/rtl8139.c +++ b/hw/rt

[Qemu-devel] [PATCH 21/34] lsi53c895a: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Signed-off-by: Blue Swirl --- hw/lsi53c895a.c | 47 --- 1 files changed, 20 insertions(+), 27 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index a9cbcef..ed52db0 10064

[Qemu-devel] [PATCH 09/34] cmd646: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/ide/cmd646.c | 149 ++- 1 files changed, 92 insertions(+), 57 deletions(-) diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index ff80dd5..ec080e0 100644 --- a/hw

[Qemu-devel] [PATCH 25/34] pci: remove now unused map_func parameter

2010-07-22 Thread Blue Swirl
The parameter map_func of pci_register_bar() is now completely unused since all callers pass NULL. Remove the unused parameter and all map_func handling. Adjust callers. Signed-off-by: Blue Swirl --- hw/ac97.c |4 ++-- hw/cirrus_vga.c |4 ++-- hw/e1000.c|4 ++-- hw

[Qemu-devel] [PATCH 14/34] usb-uhci: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/usb-uhci.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 1d83400..2e1f5ee 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.

[Qemu-devel] [PATCH 17/34] ac97: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Signed-off-by: Blue Swirl --- hw/ac97.c | 59 ++- 1 files changed, 38 insertions(+), 21 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index ad4aef4..2e5f02c 100644 ---

[Qemu-devel] [PATCH 24/34] vmware_vga: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Signed-off-by: Blue Swirl --- hw/vmware_vga.c | 93 +- 1 files changed, 57 insertions(+), 36 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 00fa8fd..1e2d17

[Qemu-devel] [PATCH 27/34] pci: replace pci_bus_set_mem_base() with bus specific manipulation

2010-07-22 Thread Blue Swirl
Move PCI memory base adjustment to APB specific MMIO manipulator. Signed-off-by: Blue Swirl --- hw/apb_pci.c | 25 - hw/pci.c | 26 +- hw/pci.h |2 -- 3 files changed, 29 insertions(+), 24 deletions(-) diff --git a/hw/apb_pci.c b/h

[Qemu-devel] [PATCH 18/34] cirrus_vga: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Signed-off-by: Blue Swirl --- hw/cirrus_vga.c | 26 -- 1 files changed, 8 insertions(+), 18 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 7c14361..a9ccb69 100644 --- a/hw/cirrus_vga.

[Qemu-devel] [PATCH 15/34] wdt_i6300esb: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() instead of a mapping function. Signed-off-by: Blue Swirl --- hw/wdt_i6300esb.c | 38 ++ 1 files changed, 14 insertions(+), 24 deletions(-) diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c index 46e1df8..24409ec 100644 --- a/hw/wdt_i6300e

[Qemu-devel] [PATCH 31/34] vga: refactor vga_init

2010-07-22 Thread Blue Swirl
Move common stuff not related to I/O port init from vga_init() to vga_common_init(). Signed-off-by: Blue Swirl --- hw/vga-isa-mm.c |1 - hw/vga.c|5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/vga-isa-mm.c b/hw/vga-isa-mm.c index 680b557..d4b1e95 10064

[Qemu-devel] [PATCH 28/34] Implement byte swapped MMIO type

2010-07-22 Thread Blue Swirl
Add a flag to indicate a byte swapped MMIO type. Signed-off-by: Blue Swirl --- cpu-common.h |4 +++- exec.c | 42 ++ softmmu_template.h | 16 +++- 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/cpu-com

[Qemu-devel] [PATCH 22/34] vga-pci: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Signed-off-by: Blue Swirl --- hw/vga-pci.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/vga-pci.c b/hw/vga-pci.c index 216071f..c627a79 100644 --- a/hw/vga-pci.c +++ b/hw/vga-

[Qemu-devel] [PATCH 33/34] Replace explicit PCI device byte swaps with byte swapping IO type at host bridge

2010-07-22 Thread Blue Swirl
For devices, delete explicit PCI byte swaps. At big endian host bridges, change MMIO registration to insert a byte swapping IO type. Signed-off-by: Blue Swirl --- hw/apb_pci.c |1 + hw/e1000.c |6 -- hw/grackle_pci.c | 14 ++ hw/gt64xxx.c | 16 ++

[Qemu-devel] [PATCH 20/34] eepro100: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Signed-off-by: Blue Swirl --- hw/eepro100.c | 72 +++- 1 files changed, 35 insertions(+), 37 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index 2b86007..747cb4c 10

[Qemu-devel] [PATCH 26/34] pci: add registration for MMIO manipulation functions

2010-07-22 Thread Blue Swirl
Add registration functions to manipulate MMIO mappings. Signed-off-by: Blue Swirl --- hw/pci.c | 49 + hw/pci.h |7 +++ 2 files changed, 44 insertions(+), 12 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 1b20c44..3555ef3 100644 ---

[Qemu-devel] [PATCH 30/34] Remove optional byte swapping for pci_host_*_register_mmio

2010-07-22 Thread Blue Swirl
Byte swapping in pci_host_*_register_mmio can be replaced with IO_MEM_BSWAP use. Partially reverts 952760bb7bce7fbfe0afcf04fee268745f297b87. Signed-off-by: Blue Swirl --- hw/dec_pci.c |4 +- hw/grackle_pci.c |4 +- hw/pci_host.c| 101 +++-

[Qemu-devel] [PATCH 32/34] vga: make byte swapping selectable

2010-07-22 Thread Blue Swirl
Make byte swapping in VGA selectable. Signed-off-by: Blue Swirl --- hw/mips_jazz.c |6 +- hw/pc.h |2 +- hw/vga-isa-mm.c |9 ++--- hw/vga-isa.c|3 ++- hw/vga-pci.c|2 +- hw/vga.c| 38 +- hw/vga_int.h|

[Qemu-devel] [PATCH 23/34] virtio-pci: convert to pci_bar_map

2010-07-22 Thread Blue Swirl
Use pci_bar_map() and post_map_func instead of a mapping function. Remove unused msix_mmio_map(). Signed-off-by: Blue Swirl --- hw/msix.c | 21 + hw/msix.h |3 --- hw/virtio-pci.c | 47 +++ 3 files changed, 32 i

[Qemu-devel] [PATCH 29/34] Replace explicit PCI host bridge byte swaps with byte swapping IO type

2010-07-22 Thread Blue Swirl
Delete explicit PCI host bridge byte swaps, adjust MMIO registrations to insert a byte swapping IO type. Signed-off-by: Blue Swirl --- hw/apb_pci.c | 12 ++-- hw/dec_pci.c |6 -- hw/grackle_pci.c |6 -- hw/ppc4xx_pci.c | 21 - hw/prep_pci.

[Qemu-devel] [PATCH 34/34] Compile PCI devices once

2010-07-22 Thread Blue Swirl
Compile e1000, rtl8139 and usb-ohci in hwlib. Signed-off-by: Blue Swirl --- Makefile.objs |5 + Makefile.target |7 --- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 67f1b21..8e2aebd 100644 --- a/Makefile.objs +++ b/Makefile.

Re: [Qemu-devel] regs_to_env() ?

2010-07-22 Thread Blue Swirl
On Thu, Jul 22, 2010 at 2:06 AM, Jun Koi wrote: > Hi, > > Function regs_to_env() in target-i386/exec.h has a code like below: > > ... > #ifdef reg_EAX > env->regs[R_EAX] = EAX > #endif > ... > > However, elsewhere we have EAX defined as: > > #define EAX (env->regs[R_EAX]) > > This means effectivel

Re: [Qemu-devel] [PATCH] Monitor: Convert do_sendkey() to QObject, QError

2010-07-22 Thread Artyom Tarasenko
2010/7/21 Luiz Capitulino : > Do you need this for 0.13? I think the development window is already closed. Was it announced somewhere? -- Regards, Artyom Tarasenko solaris/sparc under qemu blog: http://tyom.blogspot.com/

[Qemu-devel] [PATCH 3/4] slirp: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types

2010-07-22 Thread Stefan Weil
There is no need to have a second set of integral types. Replace them by the standard types from stdint.h. Signed-off-by: Stefan Weil --- slirp/cksum.c| 20 ++-- slirp/ip.h | 40 slirp/ip_icmp.h |2 +- slirp/

[Qemu-devel] [PATCH 4/4] slirp: Remove declarations which are no longer needed

2010-07-22 Thread Stefan Weil
The previous patches replaced u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types from stdint.h, so we can now remove their declarations which are no longer needed. Signed-off-by: Stefan Weil --- slirp/slirp.h | 33 - 1 files changed, 0 insertions(+)

[Qemu-devel] [PATCH 2/4] tests: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types

2010-07-22 Thread Stefan Weil
There is no need to have a second set of integral types. Replace them by the standard types from stdint.h. Signed-off-by: Stefan Weil --- tests/sha1.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/sha1.c b/tests/sha1.c index 3a76555..93b7

[Qemu-devel] [PATCH 1/4] block: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types

2010-07-22 Thread Stefan Weil
There is no need to have a second set of integral types. Replace them by the standard types from stdint.h. Signed-off-by: Stefan Weil --- block/raw-posix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index 291699f..a11170e 10064

[Qemu-devel] [PATCH 0/4] Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types

2010-07-22 Thread Stefan Weil
There is no need to have a second set of integral types. Replace them by the standard types from stdint.h. [PATCH 1/4] block: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types [PATCH 2/4] tests: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types [PATCH

Re: [Qemu-devel] Docs for and debugging of Asynchronous I/O

2010-07-22 Thread Ot ten Thije
On Tue, Jul 20, 2010 at 10:47 PM, Anthony Liguori wrote: > On 07/20/2010 01:34 PM, Ot ten Thije wrote: >> >> Hello, >> >> I am working on fixing the savevm/loadvm functionality in the Android >> emulator, and the two issues I've encountered so far both appear to stem >> from the asynchronous I/O (

Re: [Qemu-devel] Docs for and debugging of Asynchronous I/O

2010-07-22 Thread Ot ten Thije
On Tue, Jul 20, 2010 at 9:57 PM, Stefan Hajnoczi wrote: > > On Tue, Jul 20, 2010 at 7:34 PM, Ot ten Thije wrote: > > Hello, > > I am working on fixing the savevm/loadvm functionality in the Android > > emulator, and the two issues I've encountered so far both appear to stem > > from the asynchron

[Qemu-devel] [PATCH-V3 04/24] [V4] virtio-9p: readdir implementation for 9p2000.L

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Sripathi Kodi This patch implements the server part of readdir() implementation for 9p2000.L SYNOPSIS size[4] Treaddir tag[2] fid[4] offset[8] count[4] size[4] Rreaddir tag[2] count[4] data[count] DESCRIPTION The readdir request asks the server to read the directory

Re: [Qemu-devel] [PATCH 0/3] Fix broken if statements

2010-07-22 Thread Stefan Weil
Am 21.07.2010 22:05, schrieb Joel Schopp: I have decided to apply the broken window theory of crime http://en.wikipedia.org/wiki/Broken_windows_theory to code, and more specifically to qemu. I'm hoping that fixing seemingly trivial bugs will actually fix some more serious bugs, make the code run

[Qemu-devel] [PATCH-V3 06/24] virtio-9p: getattr server implementation for 9P2000.L protocol.

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Sripathi Kodi SYNOPSIS size[4] Tgetattr tag[2] fid[4] request_mask[8] size[4] Rgetattr tag[2] lstat[n] DESCRIPTION The getattr transaction inquires about the file identified by fid. request_mask is a bit mask

[Qemu-devel] [PATCH-V3 07/24] virtio-9p: Do not reset atime

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar Current code resets file's atime to 0 when there is a change in mtime. This results in resetting the atime to "1970-01-01 05:30:00". For example, truncate -s 0 filename results in changing the mtime to the truncate time, but resets the atime to "1970-01-01 05:

[Qemu-devel] [PATCH-V3 03/24] virtio-9p: Return correct error from v9fs_remove

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Sripathi Kodi Signed-off-by: Sripathi Kodi In v9fs_remove_post_remove() we currently ignore the error returned by the previous call to remove() and return an error only if freeing the fid fails. However, the client expects to see the error from remove(). Currently the client falsely think

[Qemu-devel] [Tracing] [PATCH 3/4] Add a header to the trace file format

2010-07-22 Thread Stefan Hajnoczi
The trace file format needs a header so that future extension is possible. There is a version number that can be bumped when file format changes are made. There is still the issue of endianness and sizeof(long). This patch does not address those. Signed-off-by: Stefan Hajnoczi --- simpletrace

[Qemu-devel] [Tracing] [PATCH 4/4] Disable posix_aio_process_queue by default

2010-07-22 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- trace-events |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/trace-events b/trace-events index 5304826..a50215f 100644 --- a/trace-events +++ b/trace-events @@ -63,4 +63,4 @@ disable virtio_blk_handle_write(void *req, unsigned long sec

[Qemu-devel] [Tracing] [PATCH 1/4] Move simple trace prototypes to header file

2010-07-22 Thread Stefan Hajnoczi
Simple trace prototypes should not be in the tracetool code generator. It is easier to modify and debug the code if they are in a regular C header file. Signed-off-by: Stefan Hajnoczi --- This patch is against the tracing branch: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing

[Qemu-devel] [Tracing] [PATCH 2/4] Add copyright and doc comments to simpletrace.py

2010-07-22 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- simpletrace.py | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/simpletrace.py b/simpletrace.py index 2271860..c951023 100755 --- a/simpletrace.py +++ b/simpletrace.py @@ -1,4 +1,14 @@ #!/usr/bin/env python +# +# Pretty-

[Qemu-devel] [PATCH-V3 20/24] virtio-9p: Hide user.virtfs xattr in case of mapped security.

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V With mapped security mode we use "user.virtfs" namespace is used to store the virtFs related attributes. So hide it from user. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p-local.c | 71

[Qemu-devel] [PATCH-V3 23/24] virtio-9p: Fix the memset usage

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V The arguments are wrong. Use qemu_mallocz directly Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 6899070..2a8deb9

[Qemu-devel] [PATCH-V3 00/24] Consolidated VirtFS work

2010-07-22 Thread Venkateswararao Jujjuri (JV)
This patch series is a consolidated view of various VirtFS patches on the Mailing List. None of these patches are new in this series. For sometime all these patches were on the mainling list individually. Changes from V2: - Couple of formatting issues - Fixed fid_type checks in BUG_ON() Signed-o

[Qemu-devel] [PATCH-V3 16/24] qemu: virtio-9p: Implement LOPEN

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar Implement 9p2000.L version of open(LOPEN) interface in qemu 9p server. For LOPEN, no need to convert the flags to and from 9p mode to VFS mode. Synopsis: size[4] Tlopen tag[2] fid[4] mode[4] size[4] Rlopen tag[2] qid[13] iounit[4] Current qemu 9p server does not

[Qemu-devel] [PATCH-V3 19/24] virtio-9p: Implement TXATTRCREATE

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V TXATTRCREATE: Prepare a fid for setting xattr value on a file system object. size[4] TXATTRCREATE tag[2] fid[4] name[s] attr_size[8] flags[4] size[4] RXATTRWALK tag[2] txattrcreate gets a fid pointing to xattr. This fid can later be used to get set the xattr value. fl

[Qemu-devel] [PATCH-V3 15/24] rename - change name of file or directory

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar size[4] Trename tag[2] fid[4] newdirfid[4] name[s] size[4] Rrename tag[2] Implement the 2000.L rename operation. A new function v9fs_complete_rename is introduced that acts as a common entry point for 2000.L rename operation and 2000.U rename opearation (via wstat). As part

[Qemu-devel] [PATCH-V3 22/24] virtio-9p: Use lchown which won't follow symlink

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V We should always use functions which don't follow symlink on the server Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p-local.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio-9p-local.c b/hw/vi

[Qemu-devel] [PATCH-V3 18/24] virtio-9p: Implement TXATTRWALK

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V TXATTRWALK: Descend a ATTR namespace size[4] TXATTRWALK tag[2] fid[4] newfid[4] name[s] size[4] RXATTRWALK tag[2] size[8] txattrwalk gets a fid pointing to xattr. This fid can later be used to get read the xattr value. If name is NULL the fid returned can be used to get

[Qemu-devel] [PATCH-V3 13/24] qemu: virtio-9p: Implement TMKNOD

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar Implement TMKNOD as part of 2000.L Work Synopsis size[4] Tmknod tag[2] fid[4] name[s] mode[4] major[4] minor[4] gid[4] size[4] Rmknod tag[2] qid[13] Description mknod asks the file server to create a device node with given device type, mode and gid. The q

[Qemu-devel] [PATCH-V3 08/24] [virtio-9p] Make v9fs_do_utimensat accept timespec structures instead of v9stat.

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Sripathi Kodi Currently v9fs_do_utimensat takes a V9fsStat argument and builds timespec structures. It sets tv_nsec values to 0 by default. Instead of this it should take struct timespec[2] and pass it down to the system directly. This will make it more generic and useful elsewhere. Signed

[Qemu-devel] [PATCH-V3 21/24] virtio-9p: Add SM_NONE security model

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V This is equivalent to SM_PASSTHROUGH security model. The only exception is, failure of privilige operation like chown are ignored. This makes a passthrough like security model usable for people who runs kvm as non root Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkat

[Qemu-devel] [PATCH-V3 12/24] [virtio-9p] This patch implements TLCREATE for 9p2000.L protocol.

2010-07-22 Thread Venkateswararao Jujjuri (JV)
SYNOPSIS size[4] Tlcreate tag[2] fid[4] name[s] flags[4] mode[4] gid[4] size[4] Rlcreate tag[2] qid[13] iounit[4] DESCRIPTION The Tlreate request asks the file server to create a new regular file with the name supplied, in the directory (dir) represented by fid. The mode argument specif

[Qemu-devel] [PATCH-V3 05/24] virtio-9p: Compute iounit based on host filesystem block size

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar Compute iounit based on the host filesystem block size and pass it to client with open/create response. Also return iounit as statfs's f_bsize for optimal block size transfers. Signed-off-by: M. Mohan Kumar Reviewd-by: Sripathi Kodi Signed-off-by: Venkateswararao Jujjuri

[Qemu-devel] [PATCH-V3 24/24] virtio-9p: Fix formatting issues in v9fs_wstat_post_chown()

2010-07-22 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 2a8deb9..4e7f2cb 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -2817,15 +2817,15 @@ static void v9fs_wstat_po

[Qemu-devel] [PATCH-V3 14/24] qemu: virtio-9p: Implement TMKDIR

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar Synopsis size[4] Tmkdir tag[2] fid[4] name[s] mode[4] gid[4] size[4] Rmkdir tag[2] qid[13] Description mkdir asks the file server to create a directory with given name, mode and gid. The qid for the new directory is returned with the mkdir reply messag

[Qemu-devel] [PATCH-V3 17/24] virtio-9p: Add fidtype so that we can do type specific operation

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V We want to add type specific operation during read/write Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 110 --- hw/virtio-9p.h | 24 +++- 2 files changed, 78 insertions(+), 56 deletions(-) diff --git

[Qemu-devel] [PATCH-V3 11/24] [virtio-9p] Define and implement TSYMLINK for 9P2000.L

2010-07-22 Thread Venkateswararao Jujjuri (JV)
This patch implements creating a symlink for TSYMLINK request and responds with RSYMLINK. In the case of error, we return RERROR. SYNOPSIS size[4] Tsymlink tag[2] fid[4] name[s] symtgt[s] gid[4] size[4] Rsymlink tag[2] qid[13] DESCRIPTION Create a symbolic link named 'name' poi

[Qemu-devel] [PATCH-V3 01/24] qemu: virtio-9p: Recognize 9P2000.L protocol

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar Make 9P server recognize 9P2000.L protocol version Signed-off-by: M. Mohan Kumar Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p.c |6 +- hw/virtio-9p.h |6 ++ 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virt

[Qemu-devel] [PATCH-V3 02/24] qemu: virtio-9p: Implement statfs support in server

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: M. Mohan Kumar Implement statfs support in qemu server based on Sripathi's initial statfs patch. Signed-off-by: M. Mohan Kumar Signed-off-by: Sripathi Kodi Signed-off-by: Venkateswararao Jujjuri --- hw/file-op-9p.h |1 + hw/virtio-9p-local.c |6 hw/virtio-9p.c |

[Qemu-devel] [PATCH-V3 10/24] [virtio-9p] Implement TLINK for 9P2000.L

2010-07-22 Thread Venkateswararao Jujjuri (JV)
Create a Hardlink. SYNOPSIS size[4] Tlink tag[2] dfid[4] oldfid[4] newpath[s] size[4] Rlink tag[2] DESCRIPTION Create a link 'newpath' in directory pointed by dfid linking to oldfid path. Signed-off-by: Venkateswararao Jujjuri --- hw/virtio-9p-debug.c |9 + hw/virtio-9p.c

[Qemu-devel] [PATCH-V3 09/24] virtio-9p: Implement server side of setattr for 9P2000.L protocol.

2010-07-22 Thread Venkateswararao Jujjuri (JV)
From: Sripathi Kodi SYNOPSIS size[4] Tsetattr tag[2] attr[n] size[4] Rsetattr tag[2] DESCRIPTION The setattr command changes some of the file status information. attr resembles the iattr structure used in Linux kernel. It specifies which status parameter is to

Re: [Qemu-devel] Re: Release of COREMU, a scalable and portable full-system emulator

2010-07-22 Thread Stefan Hajnoczi
2010/7/22 wang Tiger : > 在 2010年7月22日 下午9:00,Jan Kiszka 写道: >> Stefan Hajnoczi wrote: >>> On Thu, Jul 22, 2010 at 9:48 AM, Chen Yufei wrote: On 2010-7-22, at 上午1:04, Stefan Weil wrote: > Am 21.07.2010 09:03, schrieb Chen Yufei: >> On 2010-7-21, at 上午5:43, Blue Swirl wrote: >

Re: [Qemu-devel] Re: Release of COREMU, a scalable and portable full-system emulator

2010-07-22 Thread wang Tiger
在 2010年7月22日 下午9:00,Jan Kiszka 写道: > Stefan Hajnoczi wrote: >> On Thu, Jul 22, 2010 at 9:48 AM, Chen Yufei wrote: >>> On 2010-7-22, at 上午1:04, Stefan Weil wrote: >>> Am 21.07.2010 09:03, schrieb Chen Yufei: > On 2010-7-21, at 上午5:43, Blue Swirl wrote: > > >> On Sat, Jul 17, 2

Re: [Qemu-devel] virtio-9p is not working

2010-07-22 Thread Aneesh Kumar K. V
On Wed, 21 Jul 2010 17:27:47 +0900, Dallas Lee wrote: > Hi, > > I have trying to use the virtio-9p for my linux in QEMU, but without > success. > > Here is my option for booting my qemu: > i386-softmmu/qemu -kernel bzImage -append "console=ttyS0 > video=uvesafb:ywrap,overlay:rgb16,480x800...@60

[Qemu-devel] [PATCH v2 0/2]: QMP: instability warnings

2010-07-22 Thread Luiz Capitulino
This is good for 0.13, please check individual patches for details. Thanks.

[Qemu-devel] [PATCH 1/2] QMP: Update README file

2010-07-22 Thread Luiz Capitulino
A number of changes I prefer to do in one shot: - Add a note about instability - Add multiple monitors example - Add 'Development Process' section - Small clarifications Signed-off-by: Luiz Capitulino --- QMP/README | 67 +-- 1 files cha

[Qemu-devel] [PATCH 2/2] QMP: Add a warning to the greeting message

2010-07-22 Thread Luiz Capitulino
This commit add the following new key to QMP's greeting message: "warning": "QMP is unstable, it will change soon!" The goal is to go beyond document warnings with regard to QMP's current state. Signed-off-by: Luiz Capitulino --- QMP/README |2 +- monitor.c |3 ++- 2 files changed,

Re: [Qemu-devel] Using Linux's CPUSET for KVM VCPUs

2010-07-22 Thread Daniel P. Berrange
On Thu, Jul 22, 2010 at 04:03:13PM +0200, Andre Przywara wrote: > Hi all, > > while working on NUMA host pinning, I experimented with vCPU affinity > within QEMU, but left it alone as it would complicate the code and would > not achieve better experience than using taskset with the monitor > pr

Re: [Qemu-devel] [PATCH] Monitor: Convert do_sendkey() to QObject, QError

2010-07-22 Thread Luiz Capitulino
On Thu, 22 Jul 2010 15:03:27 +0100 "Daniel P. Berrange" wrote: > On Thu, Jul 22, 2010 at 10:50:00AM -0300, Luiz Capitulino wrote: > > On Thu, 22 Jul 2010 14:45:35 +0100 > > "Daniel P. Berrange" wrote: > > > > > On Thu, Jul 22, 2010 at 10:28:39AM -0300, Luiz Capitulino wrote: > > > > On Wed, 21

Re: [Qemu-devel] [PATCH] move 'unsafe' to end of caching modes in help

2010-07-22 Thread Anthony Liguori
On 07/22/2010 03:42 AM, Daniel P. Berrange wrote: On Wed, Jul 21, 2010 at 06:39:32PM -0500, Anthony Liguori wrote: On 07/21/2010 04:58 PM, Daniel P. Berrange wrote: Yes there is. Use the version number. The version number is not suitable, because features can be removed a

[Qemu-devel] Using Linux's CPUSET for KVM VCPUs

2010-07-22 Thread Andre Przywara
Hi all, while working on NUMA host pinning, I experimented with vCPU affinity within QEMU, but left it alone as it would complicate the code and would not achieve better experience than using taskset with the monitor provided thread ids like it is done currently. During that I looked at Linux

Re: [Qemu-devel] [PATCH] Monitor: Convert do_sendkey() to QObject, QError

2010-07-22 Thread Daniel P. Berrange
On Thu, Jul 22, 2010 at 10:50:00AM -0300, Luiz Capitulino wrote: > On Thu, 22 Jul 2010 14:45:35 +0100 > "Daniel P. Berrange" wrote: > > > On Thu, Jul 22, 2010 at 10:28:39AM -0300, Luiz Capitulino wrote: > > > On Wed, 21 Jul 2010 20:06:56 +0100 > > > "Daniel P. Berrange" wrote: > > > > > > > On

  1   2   >