Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-19 Thread Mohammed Gamal
On Tue, Apr 20, 2010 at 12:54 AM, jvrao wrote: > Mohammed Gamal wrote: >> On Tue, Apr 13, 2010 at 9:08 PM, jvrao wrote: >>> jvrao wrote: Alexander Graf wrote: > On 12.04.2010, at 13:58, Jamie Lokier wrote: > >> Mohammed Gamal wrote: >>> On Mon, Apr 12, 2010 at 12:29 AM, Jamie

[Qemu-devel] [PATCH v4 4/4] Use cpu_physical_memory_get_dirty_range() to check multiple dirty pages.

2010-04-19 Thread Yoshiaki Tamura
Modifies ram_save_block() and ram_save_remaining() to use cpu_physical_memory_get_dirty_range() to check multiple dirty and non-dirty pages at once. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- arch_init.c | 54 +- 1 files ch

[Qemu-devel] [PATCH v4 2/4] Introduce cpu_physical_memory_get_dirty_range().

2010-04-19 Thread Yoshiaki Tamura
It checks the first row and puts dirty addr in the array. If the first row is empty, it skips to the first non-dirty row or the end addr, and put the length in the first entry of the array. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- cpu-all.h |4 +++ exec.c| 67

[Qemu-devel] [PATCH v4 1/4] Modify DIRTY_FLAG value and introduce DIRTY_IDX to use as indexes of bit-based phys_ram_dirty.

2010-04-19 Thread Yoshiaki Tamura
Replaces byte-based phys_ram_dirty bitmap with four (MASTER, VGA, CODE, MIGRATION) bit-based phys_ram_dirty bitmap. On allocation, it sets all bits in the bitmap. It uses ffs() to convert DIRTY_FLAG to DIRTY_IDX. Modifies wrapper functions for byte-based phys_ram_dirty bitmap to bit-based phys_r

[Qemu-devel] [PATCH v4 3/4] Use cpu_physical_memory_set_dirty_range() to update phys_ram_dirty.

2010-04-19 Thread Yoshiaki Tamura
Modifies kvm_physical_sync_dirty_bitmap to use cpu_physical_memory_set_dirty_range() to update the row of the bit-based phys_ram_dirty bitmap at once. Signed-off-by: OHMURA Kei Signed-off-by: Yoshiaki Tamura --- bswap.h |2 ++ kvm-all.c | 33 +++-- 2 files ch

[Qemu-devel] [PATCH v4 0/4] Introduce bit-based phys_ram_dirty, and bit-based dirty page checker.

2010-04-19 Thread Yoshiaki Tamura
The dirty and non-dirty pages are checked one by one. When most of the memory is not dirty, checking the dirty and non-dirty pages by multiple page size should be much faster than checking them one by one. We introduced bit-based phys_ram_dirty for VGA, CODE, MIGRATION, MASTER, and cpu_physical_m

Re: [Qemu-devel] SPARC user mode multithread

2010-04-19 Thread Gabriel Southern
Hi, I noticed that this patch never got applied, but I'm not sure if it works. It seems like it works for forks, but not for pthreads. I tried applying it to the current git head and it seems to change the behavior from dumping the registers to dying silently for code with pthreads, but does wor

Re: [Qemu-devel] [PATCH] virtio-spec: document block CMD and FLUSH

2010-04-19 Thread Jamie Lokier
Michael S. Tsirkin wrote: > I took a stub at documenting CMD and FLUSH request types in virtio > block. Christoph, could you look over this please? > > I note that the interface seems full of warts to me, > this might be a first step to cleaning them. > > One issue I struggled with especially is

Re: [SeaBIOS] [Qemu-devel] QEMU regression problems

2010-04-19 Thread Kevin O'Connor
On Mon, Apr 19, 2010 at 08:19:55AM +0200, Gerhard Wiesinger wrote: > Kevin O'Connor wrote: > >The SeaBIOS log would really help. This can be done by adding: > > > >-chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios > > > >to the qemu command line. > OK, I made some researc

Re: [Qemu-devel] [PATCH] flush TB on singlestep command

2010-04-19 Thread Jun Koi
Thank you for the explanation of this code. Qemu has a command named singlestep, which reduces the translated code block to be only one instruction. This new patch flushes TBs both when singlestep is on and off. Signed-off-by: Jun Koi diff --git a/monitor.c b/monitor.c index 5659991..2b2005b 1

[Qemu-devel] x86_64-linux-user multithreaded?

2010-04-19 Thread Gabriel Southern
Hi, Does the linux-user mode in QEMU support running multithreaded code? I am most interested in running SPARC binaries, but I tested with x86_64 and it seems like some system calls needed for pthreads are not included. I've attached a very simple program that uses pthreads. When I run it normall

Re: [Qemu-devel] KVM call agenda for Apr 20

2010-04-19 Thread Brian Jackson
On Monday 19 April 2010 18:30:44 Chris Wright wrote: > Please send in any agenda items you are interested in covering. 0.12.4? > > thanks, > -chris >

[Qemu-devel] KVM call agenda for Apr 20

2010-04-19 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-19 Thread jvrao
Mohammed Gamal wrote: > On Tue, Apr 13, 2010 at 9:08 PM, jvrao wrote: >> jvrao wrote: >>> Alexander Graf wrote: On 12.04.2010, at 13:58, Jamie Lokier wrote: > Mohammed Gamal wrote: >> On Mon, Apr 12, 2010 at 12:29 AM, Jamie Lokier >> wrote: >>> Javier Guerra Giraldez wr

Re: [Qemu-devel] dummy field in CPUTLBEntry?

2010-04-19 Thread Paul Brook
> I find the way we calculate the dummy field in CPUTLBEntry funny. What > is the point of having: > >((-sizeof(target_ulong) * 3) & (sizeof(unsigned long) - > 1)) > > in its size? Why shouldnt it be more simple, like below? > > uint8_t dummy[(1 << CPU_TLB_ENTRY_BITS) -

[Qemu-devel] Re: [PATCH] virtio-spec: document block CMD and FLUSH

2010-04-19 Thread Michael S. Tsirkin
On Fri, Feb 19, 2010 at 12:22:20AM +0200, Michael S. Tsirkin wrote: > I took a stub at documenting CMD and FLUSH request types in virtio > block. Any comments?

[Qemu-devel] Re: [PATCH] ehci: fix infinite loop with usb netdevice

2010-04-19 Thread Jan Kiszka
David S. Ahern wrote: > Hi Jan: > > The attached addresses the spinning with the usb net device. Now I can > enable the device and ethtool shows a link: > > # ifconfig usb0 up > # ethtool usb0 > Settings for usb0: > Current message level: 0x0007 (7) > Link detected: yes > > Thoug

[Qemu-devel] Re: singlestep and sparc32

2010-04-19 Thread Artyom Tarasenko
2010/4/19 Blue Swirl : > On 4/19/10, Artyom Tarasenko wrote: >> is -single-step option supposed to work under qemu-system-sparc? Or is >>  it only for non-pipelined CPUs? > > I've never used it. is there another way to reduce a translation block? -icount 1 doesn't make a difference. >>  I get pr

[Qemu-devel] [PATCH rebased/amended] microblaze: fix custom fprintf with _FORTIFY_SOURCE=2

2010-04-19 Thread Thomas Monjalon
From: Thomas Monjalon Using GCC-4.2.4-1ubuntu4, there is a warning: microblaze-dis.c:792: warning: unused variable 'fprintf' Indeed, fprintf() is shadowed by a custom redefinition but is not used because of FORTIFY_SOURCE option which replace calls to fprintf() by fprintf_chk(). It is f

Re: [Qemu-devel] [PATCH v2] Write cmos hd data for ide drives using -device parm

2010-04-19 Thread Bruce Rogers
>>> On 4/14/2010 at 01:24 AM, Gerd Hoffmann wrote: > Hi, > >> When specifying ide devices using -device, the cmos information >> which the bios depends on is not written. This patch generalizes >> the cmos hd data setting for the existing code path and adds the >> ability to call that code o

[Qemu-devel] Re: singlestep and sparc32

2010-04-19 Thread Blue Swirl
On 4/19/10, Artyom Tarasenko wrote: > is -single-step option supposed to work under qemu-system-sparc? Or is > it only for non-pipelined CPUs? I've never used it. > I get pretty strange results: some addresses seem to be executed > twice, and then qemu hangs on the last nop: One possibility

[Qemu-devel] About cpu_set, CPU hotplug and related subjects

2010-04-19 Thread Lucas Meneghel Rodrigues
Hi folks, I've implemented a functional test for the cpu_set feature some time ago. I was going through the patch queue and realized the patch needed some respin, so I did it. I decided to try and see what is the state of the feature, considering last time I tried it was not working (segfaulting)

Re: [Qemu-devel] [PATCH 05/21] tcg-i386: Tidy bswap operations.

2010-04-19 Thread Richard Henderson
On 04/19/2010 11:05 AM, malc wrote: > Apparently i'm not the only one who misinterpreted this bit of bswap > documentation. How about: > > diff --git a/tcg/README b/tcg/README > index 68d27ff..5b39a38 100644 > --- a/tcg/README > +++ b/tcg/README > @@ -269,7 +269,7 @@ ext32u_i64 t0, t1 > * bswap16

[Qemu-devel] QEMU-KVM and video performance

2010-04-19 Thread Gerhard Wiesinger
Hello, Finally I got QEMU-KVM to work but video performance under DOS is very low (QEMU 0.12.3 stable and QEMU GIT master branch is fast, QEMU KVM is slow) I'm measuring 2 performance critical video performance parameters: 1.) INT 10h, function AX=4F05h (set same window/set window/get window)

[Qemu-devel] [PATCH 1/1] hw: better i440 emulation

2010-04-19 Thread Bernhard M. Wiedemann
attached is a tested 0.12.3-version of an old patch http://xenon.stanford.edu/~eswierk/misc/qemu-linuxbios/qemu-piix-ram-size.patch that together with http://www.mail-archive.com/linuxb...@linuxbios.org/msg02390.html (which is already in coreboot trunk) allows coreboot BIOS to autodetect the amoun

Re: [Qemu-devel] Problem with DOS application and 286 DOS Extender application

2010-04-19 Thread Gerhard Wiesinger
On Wed, 14 Apr 2010, Gerhard Wiesinger wrote: On Wed, 14 Apr 2010, Jamie Lokier wrote: Gerhard Wiesinger wrote: It is a non public, proprietary application which uses the Ergo Computing 286 DOS Extender. I guess some other application which use the same DOS extender have the same problem. So

[Qemu-devel] [PATCH] Return contorl to host on usb_del monitor command

2010-04-19 Thread Shahar Havivi
When removing usb on guest via usb_del monitor command, qemu does not return the control to the host, the only solution user have is to unplug/plug the device again in order to get the device back to the host Signed-off-by: Shahar Havivi --- hw/usb-bus.c |4 hw/usb.h |1 + usb-l

Re: [Qemu-devel] Problem with QEMU on KVM

2010-04-19 Thread Gerhard Wiesinger
On Sat, 10 Apr 2010, Gerhard Wiesinger wrote: Hello, Booting DOS 6.22 with NT4 Bootloader works fine. With enabled KVM it boots, but hangs at counting down the boot loader selection menu (30s, 29s, hang). Booting Knoppix 6.2 from CD wwith KVM orks well. Versions (0.12.3): x86_64-softmmu: OK

Re: [Qemu-devel] [PATCH, resend] [STABLE] Sync OSS_GETVERSION handling with head

2010-04-19 Thread Juergen Lock
On Sun, Apr 18, 2010 at 11:52:16PM +0200, Juergen Lock wrote: > On Sun, Apr 18, 2010 at 11:38:34PM +0200, Aurelien Jarno wrote: > > On Sun, Apr 18, 2010 at 11:16:46PM +0200, Juergen Lock wrote: > > > On Sun, Apr 18, 2010 at 10:52:22PM +0200, Aurelien Jarno wrote: > > > > On Sun, Apr 11, 2010 at 06:

[Qemu-devel] Unusual physical address when using 64-bit BAR

2010-04-19 Thread Cam Macdonell
Hi, I'm trying to use a 64-bit BAR for my shared memory device. In simply changing the memory type in pci_register_bar() to PCI_BASE_ADDRESS_MEM_TYPE_64 I get an unusual physical address for that BAR (and my driver crashes in pci_ioremap). from lspci: 00:04.0 RAM memory: Qumranet, Inc. Device 1

[Qemu-devel] Re: singlestep and sparc32

2010-04-19 Thread Stefan Weil
Artyom Tarasenko schrieb: > is -single-step option supposed to work under qemu-system-sparc? Or is > it only for non-pipelined CPUs? > > I get pretty strange results: some addresses seem to be executed > twice, and then qemu hangs on the last nop: > > -- > IN: > 0x: b 0xb788 > -

Re: [Qemu-devel] wrong behaviour of caps lock

2010-04-19 Thread Stefan Weil
Kevin Wolf schrieb: > Am 19.04.2010 03:23, schrieb Jamie Lokier: >> Benjamin Drung wrote: >>> - /* SDL does not send the key up event, so we generate it */ >> Was the original comment just plain wrong? >> >>> - kbd_put_keycode(keycode); >>> - kbd_put_keycode(keycode | 0x80); >>> + if (ev->type == S

Re: [Qemu-devel] singlestep and sparc32

2010-04-19 Thread malc
On Mon, 19 Apr 2010, Artyom Tarasenko wrote: > is -single-step option supposed to work under qemu-system-sparc? Or is > it only for non-pipelined CPUs? Eh? Perhaps you meant that it's only for CPUs without delay slots? > > I get pretty strange results: some addresses seem to be executed > twice

Re: [Qemu-devel] [PATCH 05/21] tcg-i386: Tidy bswap operations.

2010-04-19 Thread malc
On Mon, 19 Apr 2010, Richard Henderson wrote: > On 04/18/2010 05:13 PM, Aurelien Jarno wrote: > > On Tue, Apr 13, 2010 at 04:33:59PM -0700, Richard Henderson wrote: > >> Define OPC_BSWAP. Factor opcode emission to separate functions. > >> Use bswap+shift to implement 16-bit swap instead of a rolw

[Qemu-devel] [PATCH v2] block: Cache total_sectors to reduce bdrv_getlength calls

2010-04-19 Thread Stefan Hajnoczi
The BlockDriver bdrv_getlength function is called from the I/O code path when checking that the request falls within the device. Unfortunately this involves an lseek system call in the raw protocol; every read or write request will incur this lseek cost. Jan Kiszka identified this issue and its

[Qemu-devel] singlestep and sparc32

2010-04-19 Thread Artyom Tarasenko
is -single-step option supposed to work under qemu-system-sparc? Or is it only for non-pipelined CPUs? I get pretty strange results: some addresses seem to be executed twice, and then qemu hangs on the last nop: -- IN: 0x: b 0xb788 -- IN: 0x0004: rd %psr, %

Re: [Qemu-devel] Re: [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Yoshiaki Tamura
2010/4/19 Avi Kivity : > On 04/19/2010 02:52 PM, Yoshiaki Tamura wrote: >> >> Avi Kivity wrote: >>> >>> On 04/19/2010 02:31 PM, Yoshiaki Tamura wrote: >>> typedef struct RAMBlock { >>> @@ -2825,10 +2825,16 @@ ram_addr_t qemu_ram_alloc(ram_addr_t size) >>> new_block->next = ram_bloc

Re: [Qemu-devel] Re: [PATCH 2/2] block: Cache total_sectors to reduce bdrv_getlength calls

2010-04-19 Thread Kevin Wolf
Am 19.04.2010 16:26, schrieb Stefan Hajnoczi: > On Mon, Apr 19, 2010 at 3:10 PM, Kevin Wolf wrote: >>> @@ -416,9 +417,7 @@ static int bdrv_open_common(BlockDriverState *bs, const >>> char *filename, >>> } >>> >>> bs->keep_read_only = bs->read_only = !(open_flags & BDRV_O_RDWR); >>> -

Re: [Qemu-devel] Re: [PATCH 2/2] block: Cache total_sectors to reduce bdrv_getlength calls

2010-04-19 Thread Stefan Hajnoczi
On Mon, Apr 19, 2010 at 3:10 PM, Kevin Wolf wrote: >> @@ -416,9 +417,7 @@ static int bdrv_open_common(BlockDriverState *bs, const >> char *filename, >>      } >> >>      bs->keep_read_only = bs->read_only = !(open_flags & BDRV_O_RDWR); >> -    if (drv->bdrv_getlength) { >> -        bs->total_sect

Re: [Qemu-devel] [PATCH, resend] [STABLE] Sync OSS_GETVERSION handling with head

2010-04-19 Thread Aurelien Jarno
malc a écrit : > On Sun, 18 Apr 2010, Aurelien Jarno wrote: > >> On Sun, Apr 11, 2010 at 06:17:32PM +0200, Juergen Lock wrote: >>> As suggested by Andreas F?rber, here is a cumulative patch that syncs >>> OSS_GETVERSION handling with head by merging the following commits: >>> >>> 1. oss: issue OSS

[Qemu-devel] Re: [PATCH 2/2] block: Cache total_sectors to reduce bdrv_getlength calls

2010-04-19 Thread Kevin Wolf
Am 19.04.2010 14:34, schrieb Stefan Hajnoczi: > The BlockDriver bdrv_getlength function is called from the I/O code path > when checking that the request falls within the device. Unfortunately > this involves an lseek system call in the raw protocol; every read or > write request will incur this l

Re: [Qemu-devel] [PATCH 05/21] tcg-i386: Tidy bswap operations.

2010-04-19 Thread Richard Henderson
On 04/18/2010 05:13 PM, Aurelien Jarno wrote: > On Tue, Apr 13, 2010 at 04:33:59PM -0700, Richard Henderson wrote: >> Define OPC_BSWAP. Factor opcode emission to separate functions. >> Use bswap+shift to implement 16-bit swap instead of a rolw; this >> gets the proper zero-extension required by IN

Re: [Qemu-devel] [PATCH v2 2/3] vmdk: Clean up backing file handling

2010-04-19 Thread Stefan Hajnoczi
Looks good. Stefan

[Qemu-devel] [PATCH v2] qcow2: Fix creation of large images

2010-04-19 Thread Kevin Wolf
qcow_create2 assumes that the new image will only need one cluster for its refcount table initially. Obviously that's not true any more when the image is big enough (exact value depends on the cluster size). This patch calculates the refcount table size dynamically. Signed-off-by: Kevin Wolf ---

Re: [Qemu-devel] Inserting Memory Watch points

2010-04-19 Thread Nathan Froyd
On Mon, Apr 19, 2010 at 12:11:46PM +0600, Taimoor Mirza wrote: > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1208740160 (LWP 1912)] > gdb_set_stop_cpu (env=0x9ef36a0) at > /usr/QEMU_Learning/QEMU_Src/qemu-0.12.3/gdbstub.c:2114 > 2114gdbserver_state->c_cpu =

Re: [Qemu-devel] [PATCH 00/21][PULL]: QMP/Monitor queue

2010-04-19 Thread Luiz Capitulino
On Sun, 18 Apr 2010 23:58:43 +0200 Aurelien Jarno wrote: > On Mon, Apr 05, 2010 at 05:33:41PM -0300, Luiz Capitulino wrote: > > Hi Anthony, > > > > I was going to nag you to apply patches from the list, but as I'm > > maintaining > > a QMP/Monitor queue to test them, I thought it would be a g

[Qemu-devel] [PATCH v2 2/3] vmdk: Clean up backing file handling

2010-04-19 Thread Kevin Wolf
VMDK is doing interesting things when it needs to open a backing file. This patch changes that part to look more like in other drivers. The nice side effect is that the file name isn't needed any more in the open function. Signed-off-by: Kevin Wolf --- v2: - Removed vmdk_parent_close() block/vm

[Qemu-devel] [PATCH 2/2] block: Cache total_sectors to reduce bdrv_getlength calls

2010-04-19 Thread Stefan Hajnoczi
The BlockDriver bdrv_getlength function is called from the I/O code path when checking that the request falls within the device. Unfortunately this involves an lseek system call in the raw protocol; every read or write request will incur this lseek cost. Jan Kiszka identified this issue and its

[Qemu-devel] [PATCH 1/2] raw-posix: Use pread/pwrite instead of lseek+read/write

2010-04-19 Thread Stefan Hajnoczi
This patch combines the lseek+read/write calls to use pread/pwrite instead. This will result in fewer system calls and is already used by AIO. Thanks to Jan Kiszka for identifying excessive lseek and Christoph Hellwig for confirming that this approach should work. Signed-off-by: Stefan Hajnocz

Re: [Qemu-devel] [PATCH][qemu-iotests] explicitly use bash interpreter

2010-04-19 Thread Jamie Lokier
Stefan Hajnoczi wrote: > From: Stefan Hajnoczi > > The tests use bash language features including 'local' and 'let' which > aren't supported by /bin/sh on systems that use a conservative shell > like dash. This patch changes the interpreter to /bin/bash. Minor nit: Dash does support 'local'. -

Re: [Qemu-devel] Re: [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Avi Kivity
On 04/19/2010 02:52 PM, Yoshiaki Tamura wrote: Avi Kivity wrote: On 04/19/2010 02:31 PM, Yoshiaki Tamura wrote: typedef struct RAMBlock { @@ -2825,10 +2825,16 @@ ram_addr_t qemu_ram_alloc(ram_addr_t size) new_block->next = ram_blocks; ram_blocks = new_block; - phys_ram_dirty = qemu_realloc(p

Re: [Qemu-devel] Re: [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Yoshiaki Tamura
Avi Kivity wrote: On 04/19/2010 02:31 PM, Yoshiaki Tamura wrote: typedef struct RAMBlock { @@ -2825,10 +2825,16 @@ ram_addr_t qemu_ram_alloc(ram_addr_t size) new_block->next = ram_blocks; ram_blocks = new_block; - phys_ram_dirty = qemu_realloc(phys_ram_dirty, - (last_ram_offset + size)>> TARG

Re: [Qemu-devel] Re: [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Avi Kivity
On 04/19/2010 02:31 PM, Yoshiaki Tamura wrote: typedef struct RAMBlock { @@ -2825,10 +2825,16 @@ ram_addr_t qemu_ram_alloc(ram_addr_t size) new_block->next = ram_blocks; ram_blocks = new_block; - phys_ram_dirty = qemu_realloc(phys_ram_dirty, - (last_ram_offset + size)>> TARGET_PAGE_BITS); - m

Re: [Qemu-devel] Re: [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Yoshiaki Tamura
2010/4/19 Yoshiaki Tamura : > Avi Kivity wrote: >> >> On 04/19/2010 12:43 PM, Yoshiaki Tamura wrote: >>> >>> Replaces byte-based phys_ram_dirty bitmap with four bit-based >>> phys_ram_dirty >>> bitmap. On allocation, it sets all bits in the bitmap. >>> >>> Signed-off-by: Yoshiaki Tamura >>> --- >>>

[Qemu-devel] [PATCH][qemu-iotests] explicitly use bash interpreter

2010-04-19 Thread Stefan Hajnoczi
From: Stefan Hajnoczi The tests use bash language features including 'local' and 'let' which aren't supported by /bin/sh on systems that use a conservative shell like dash. This patch changes the interpreter to /bin/bash. Signed-off-by: Stefan Hajnoczi --- 001|2 +- 002

[Qemu-devel] Re: Problem with QEMU on KVM

2010-04-19 Thread Jan Kiszka
Gerhard Wiesinger wrote: > On Tue, 13 Apr 2010, Jan Kiszka wrote: > >> Mulyadi Santosa wrote: >>> Hi Jamie... >>> >>> On Mon, Apr 12, 2010 at 19:07, Jamie Lokier wrote: There are various -no-kvm-XXX options to try: -no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC -no-k

[Qemu-devel] Re: [PATCH v3 0/6] Introduce bit-based phys_ram_dirty, and bit-based dirty page checker.

2010-04-19 Thread Yoshiaki Tamura
Avi Kivity wrote: On 04/19/2010 12:43 PM, Yoshiaki Tamura wrote: The dirty and non-dirty pages are checked one by one. When most of the memory is not dirty, checking the dirty and non-dirty pages by multiple page size should be much faster than checking them one by one. We introduced bit-based p

[Qemu-devel] Re: [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Yoshiaki Tamura
Avi Kivity wrote: On 04/19/2010 12:43 PM, Yoshiaki Tamura wrote: Replaces byte-based phys_ram_dirty bitmap with four bit-based phys_ram_dirty bitmap. On allocation, it sets all bits in the bitmap. Signed-off-by: Yoshiaki Tamura --- exec.c | 16 +++- qemu-common.h | 3 +++ 2 files chan

[Qemu-devel] Re: [PATCH v3 1/6] Modify DIRTY_FLAG value and DIRTY_IDX introduce to use as indexes of bit-based phys_ram_dirty.

2010-04-19 Thread Yoshiaki Tamura
Avi Kivity wrote: On 04/19/2010 12:43 PM, Yoshiaki Tamura wrote: It uses ffs() to convert DIRTY_FLAG to DIRTY_IDX. Signed-off-by: Yoshiaki Tamura --- cpu-all.h | 30 ++ 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index f8bfa66

[Qemu-devel] Re: [PATCH v3 0/6] Introduce bit-based phys_ram_dirty, and bit-based dirty page checker.

2010-04-19 Thread Avi Kivity
On 04/19/2010 12:43 PM, Yoshiaki Tamura wrote: The dirty and non-dirty pages are checked one by one. When most of the memory is not dirty, checking the dirty and non-dirty pages by multiple page size should be much faster than checking them one by one. We introduced bit-based phys_ram_dirty for

[Qemu-devel] Re: [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Avi Kivity
On 04/19/2010 12:43 PM, Yoshiaki Tamura wrote: Replaces byte-based phys_ram_dirty bitmap with four bit-based phys_ram_dirty bitmap. On allocation, it sets all bits in the bitmap. Signed-off-by: Yoshiaki Tamura --- exec.c| 16 +++- qemu-common.h |3 +++ 2 files chan

[Qemu-devel] Re: [PATCH v3 1/6] Modify DIRTY_FLAG value and DIRTY_IDX introduce to use as indexes of bit-based phys_ram_dirty.

2010-04-19 Thread Avi Kivity
On 04/19/2010 12:43 PM, Yoshiaki Tamura wrote: It uses ffs() to convert DIRTY_FLAG to DIRTY_IDX. Signed-off-by: Yoshiaki Tamura --- cpu-all.h | 30 ++ 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index f8bfa66..8c2d678 100

[Qemu-devel] [PATCH v3 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-19 Thread Yoshiaki Tamura
Replaces byte-based phys_ram_dirty bitmap with four bit-based phys_ram_dirty bitmap. On allocation, it sets all bits in the bitmap. Signed-off-by: Yoshiaki Tamura --- exec.c| 16 +++- qemu-common.h |3 +++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a

[Qemu-devel] [PATCH v3 5/6] Use cpu_physical_memory_set_dirty_range() to update phys_ram_dirty.

2010-04-19 Thread Yoshiaki Tamura
Modifies kvm_physical_sync_dirty_bitmap to use cpu_physical_memory_set_dirty_range() to update the row of the bit-based phys_ram_dirty bitmap at once. Signed-off-by: OHMURA Kei Signed-off-by: Yoshiaki Tamura --- bswap.h |2 ++ kvm-all.c | 33 +++-- 2 files ch

[Qemu-devel] [PATCH v3 4/6] Introduce cpu_physical_memory_get_dirty_range().

2010-04-19 Thread Yoshiaki Tamura
It checks the first row and puts dirty addr in the array. If the first row is empty, it skips to the first non-dirty row or the end addr, and put the length in the first entry of the array. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- cpu-all.h |4 +++ exec.c| 67

[Qemu-devel] [PATCH v3 1/6] Modify DIRTY_FLAG value and DIRTY_IDX introduce to use as indexes of bit-based phys_ram_dirty.

2010-04-19 Thread Yoshiaki Tamura
It uses ffs() to convert DIRTY_FLAG to DIRTY_IDX. Signed-off-by: Yoshiaki Tamura --- cpu-all.h | 30 ++ 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index f8bfa66..8c2d678 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -37,6 +37,9

[Qemu-devel] [PATCH v3 3/6] Modifies wrapper functions for byte-based phys_ram_dirty bitmap to bit-based phys_ram_dirty bitmap.

2010-04-19 Thread Yoshiaki Tamura
MASTER works as a buffer, and upon get_diry() or get_dirty_flags(), it calls cpu_physical_memory_sync_master() to update VGA and MIGRATION. Signed-off-by: Yoshiaki Tamura --- cpu-all.h | 96 +++- 1 files changed, 81 insertions(+), 15 dele

[Qemu-devel] [PATCH v3 6/6] Use cpu_physical_memory_get_dirty_range() to check multiple dirty pages.

2010-04-19 Thread Yoshiaki Tamura
Modifies ram_save_block() and ram_save_remaining() to use cpu_physical_memory_get_dirty_range() to check multiple dirty and non-dirty pages at once. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- arch_init.c | 54 +- 1 files ch

[Qemu-devel] [PATCH v3 0/6] Introduce bit-based phys_ram_dirty, and bit-based dirty page checker.

2010-04-19 Thread Yoshiaki Tamura
The dirty and non-dirty pages are checked one by one. When most of the memory is not dirty, checking the dirty and non-dirty pages by multiple page size should be much faster than checking them one by one. We introduced bit-based phys_ram_dirty for VGA, CODE, MIGRATION, MASTER, and cpu_physical_m

[Qemu-devel] Re: [PATCH 1/2] block: Set backing_hd to NULL after deleting it

2010-04-19 Thread Kevin Wolf
Am 17.04.2010 11:49, schrieb Stefan Hajnoczi: > It is safer to set backing_hd to NULL after deleting it so that any use > after deletion is obvious during development. Happy segfaulting! > > This patch should be applied after Kevin Wolf's "vmdk: Convert to > bdrv_open" so that vmdk does not segfa

Re: [Qemu-devel] wrong behaviour of caps lock

2010-04-19 Thread Kevin Wolf
Am 19.04.2010 03:23, schrieb Jamie Lokier: > Benjamin Drung wrote: >> -/* SDL does not send the key up event, so we generate it */ > > Was the original comment just plain wrong? > >> -kbd_put_keycode(keycode); >> -kbd_put_keycode(keycode | 0x80); >> +if (ev->type =

Re: [Qemu-devel] [PATCH, resend] [STABLE] Sync OSS_GETVERSION handling with head

2010-04-19 Thread malc
On Mon, 19 Apr 2010, Aurelien Jarno wrote: > malc a ?crit : > > On Sun, 18 Apr 2010, Aurelien Jarno wrote: > > > >> On Sun, Apr 11, 2010 at 06:17:32PM +0200, Juergen Lock wrote: > >>> As suggested by Andreas F?rber, here is a cumulative patch that syncs > >>> OSS_GETVERSION handling with head by

Re: [Qemu-devel] [PATCH 3/3] vmdk: Convert to bdrv_open

2010-04-19 Thread Kevin Wolf
Am 17.04.2010 11:39, schrieb Stefan Hajnoczi: > On Fri, Apr 16, 2010 at 8:59 PM, Kevin Wolf wrote: >> diff --git a/block/vmdk.c b/block/vmdk.c >> index 781518a..27b6360 100644 >> --- a/block/vmdk.c >> +++ b/block/vmdk.c >> @@ -835,14 +828,12 @@ static void vmdk_close(BlockDriverState *bs) >> q

Re: [Qemu-devel] [PATCH, resend] [STABLE] Sync OSS_GETVERSION handling with head

2010-04-19 Thread malc
On Sun, 18 Apr 2010, Aurelien Jarno wrote: > On Sun, Apr 11, 2010 at 06:17:32PM +0200, Juergen Lock wrote: > > As suggested by Andreas F?rber, here is a cumulative patch that syncs > > OSS_GETVERSION handling with head by merging the following commits: > > > > 1. oss: issue OSS_GETVERSION ioctl o