Re: [Qemu-devel] [PATCH 2/6] Redesign of pciinit.c (take 2)

2012-03-19 Thread Alexey Korolev
On 16/03/12 13:55, Kevin O'Connor wrote: > On Thu, Mar 15, 2012 at 04:29:30PM +1300, Alexey Korolev wrote: >> On 14/03/12 13:48, Kevin O'Connor wrote: >>> On Tue, Mar 13, 2012 at 05:45:19PM +1300, Alexey Korolev wrote: Added pci_region_entry structure and list operations to pciinit.c List

[Qemu-devel] [Bug 959852] [NEW] Build fails: osx 10.7, deprecated CoreAudio APIs

2012-03-19 Thread Hans Simer
Public bug reported: Virtual audio driver for darwin is using deprecated APIs. ○ → ./configure --cc=/usr/bin/gcc --disable-darwin-user --disable-bsd- user --disable-guest-agent ○ → make . . . CCaudio/noaudio.o CCaudio/wavaudio.o CCaudio/mixeng.o CCaudio/coreaudio.o audi

[Qemu-devel] [PATCH] virtio-spec: clarify ro/rw bits and updating rule of virtio-net status field

2012-03-19 Thread Jason Wang
This patch clarifies VIRTIO_NET_S_LINK_UP as a read-only bit and VIRTIO_NET_S_ANNOUNCE as a read-writable bit. Also introduce the write 1 to clear semantics for all read-writable bits of config status field. This could help to reduce the config status field updating race between host and guest and

[Qemu-devel] [PATCH 03/11 v10] implement cpu_get_memory_mapping()

2012-03-19 Thread Wen Congyang
Walk cpu's page table and collect all virtual address and physical address mapping. Then, add these mapping into memory mapping list. If the guest does not use paging, it will do nothing. Note: the I/O memory will be skipped. Signed-off-by: Wen Congyang --- Makefile.target |

[Qemu-devel] [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory

2012-03-19 Thread Wen Congyang
The command's usage: dump [-p] protocol [begin] [length] The supported protocol can be file or fd: 1. file: the protocol starts with "file:", and the following string is the file's path. 2. fd: the protocol starts with "fd:", and the following string is the fd's name. Note: 1. If you wa

[Qemu-devel] [PATCH 10/11 v10] make gdb_id() generally avialable

2012-03-19 Thread Wen Congyang
The following patch also needs this API, so make it generally avialable Signed-off-by: Wen Congyang --- gdbstub.c |9 - gdbstub.h |9 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index f4e97f7..7f8ac2f 100644 --- a/gdbstub.c +++ b

[Qemu-devel] [PATCH 09/11 v10] target-i386: add API to get dump info

2012-03-19 Thread Wen Congyang
Dump info contains: endian, class and architecture. The next patch will use these information to create vmcore. Note: on x86 box, the class is ELFCLASS64 if the memory is larger than 4G. Signed-off-by: Wen Congyang --- cpu-all.h |7 +++ dump.h | 23 +

[Qemu-devel] [PATCH 08/11 v10] target-i386: Add API to write cpu status to core file

2012-03-19 Thread Wen Congyang
The core file has register's value. But it does not include all registers value. Store the cpu status into QEMU note, and the user can get more information from vmcore. If you change QEMUCPUState, please count up QEMUCPUSTATE_VERSION. Signed-off-by: Wen Congyang --- cpu-all.h | 2

[Qemu-devel] [PATCH 07/11 v10] target-i386: Add API to write elf notes to core file

2012-03-19 Thread Wen Congyang
The core file contains register's value. These APIs write registers to core file, and them will be called in the following patch. Signed-off-by: Wen Congyang --- Makefile.target |1 + configure |4 + cpu-all.h | 23 + target-i386/arch_dump.c | 2

[Qemu-devel] [PATCH 06/11 v10] Add API to get memory mapping without do paging

2012-03-19 Thread Wen Congyang
crash does not need the virtual address and physical address mapping, and the mapping does not include the memory that is not referenced by the page table. crash does not use the virtual address, so we can create the mapping for all physical memory(virtual address is always 0). This patch provides

[Qemu-devel] [PATCH 05/11 v10] Add API to get memory mapping

2012-03-19 Thread Wen Congyang
Add API to get all virtual address and physical address mapping. If the guest doesn't use paging, the virtual address is equal to the phyical address. The virtual address and physical address mapping is for gdb's user, and it does not include the memory that is not referenced by the page table. So

[Qemu-devel] [PATCH 01/11 v10] Add API to create memory mapping list

2012-03-19 Thread Wen Congyang
The memory mapping list stores virtual address and physical address mapping. The virtual address and physical address are contiguous in the mapping. The folloing patch will use this information to create PT_LOAD in the vmcore. Signed-off-by: Wen Congyang --- Makefile.target |1 + memory_map

[Qemu-devel] [PATCH 02/11 v10] Add API to check whether a physical address is I/O address

2012-03-19 Thread Wen Congyang
This API will be used in the following patch. Signed-off-by: Wen Congyang --- cpu-common.h |2 ++ exec.c |9 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index dca5175..fcd50dc 100644 --- a/cpu-common.h +++ b/cpu-common.h @@

[Qemu-devel] [PATCH 04/11 v10] Add API to check whether paging mode is enabled

2012-03-19 Thread Wen Congyang
This API will be used in the following patch. Signed-off-by: Wen Congyang --- cpu-all.h |6 ++ target-i386/arch_memory_mapping.c |7 ++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 390b55b..24c7f77 100644 ---

[Qemu-devel] [PATCH 00/11 v10] introducing a new, dedicated guest memory dump mechanism

2012-03-19 Thread Wen Congyang
Hi, all 'virsh dump' can not work when host pci device is used by guest. We have discussed this issue here: http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html The last version is here: http://lists.nongnu.org/archive/html/qemu-devel/2012-03/msg02536.html We have determined to

[Qemu-devel] How many floppy can a computer install ? Thank you very much!

2012-03-19 Thread Zhi Hui Li

Re: [Qemu-devel] Boot failure with MS-Dos 6.22 (due to bad BIOS build?)

2012-03-19 Thread Kevin O'Connor
On Mon, Mar 19, 2012 at 09:03:09PM +0100, Jan Kiszka wrote: > On 2012-03-19 01:29, Kevin O'Connor wrote: > > On Mon, Feb 27, 2012 at 04:25:09PM +0100, Jan Kiszka wrote: > >>> EAX= EBX= ECX=c934 EDX=0068 > >>> ESI=6801 EDI= EBP=002b ESP=fff5 > > > > I tra

[Qemu-devel] [Bug 938431] Re: Reproducible crash in slirp_remque (qemu 1.0.1)

2012-03-19 Thread Craig Ringer
This issue appears to be resolved in the *real* current git master, so this bug can be closed. Now it's just a matter of getting rid of or updating that mirror. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.ne

Re: [Qemu-devel] [PATCH] Remove PCI class code from virtio balloon device

2012-03-19 Thread David Gibson
On Mon, Mar 19, 2012 at 11:33:10AM +, Stefan Hajnoczi wrote: > On Mon, Mar 19, 2012 at 03:59:23PM +1100, David Gibson wrote: > > Currently the virtio balloon device, when using the virtio-pci interface > > advertises itself with PCI class code MEMORY_RAM. This is wrong; the > > balloon is vagu

Re: [Qemu-devel] [PATCH] kvm: Fix dirty tracking with large kernel page size

2012-03-19 Thread David Gibson
On Mon, Mar 19, 2012 at 11:52:49AM +0100, Andreas Färber wrote: > Am 19.03.2012 05:57, schrieb David Gibson: > > If the kernel page size is larger than TARGET_PAGE_SIZE, which > > happens for example on ppc64 with kernels compiled for 64K pages, > > the dirty tracking doesn't work. > > > > Cc: Avi

[Qemu-devel] [Bug 938431] Re: Reproducible crash in slirp_remque (qemu 1.0.1)

2012-03-19 Thread Craig Ringer
Is the GitHub mirror (http://wiki.qemu.org/Download) no long being updated? It looks like it might not be given the last commit, so it should really be fixed or removed from that download page and the mirror deleted. I used the GitHub mirror because when I tried to clone git://git.qemu.org/qemu.gi

Re: [Qemu-devel] Breakage

2012-03-19 Thread Roy Tam
2012/3/19 Avi Kivity : > On 03/19/2012 06:34 AM, Roy Tam wrote: >> But I get "*** stack smashing detected ***:  terminated" and crash >> when booting BeOS 5. >> > > Is that a regression?  From what commit? It seems to be a regression from 0.15.1. 1.0 (mingw) build fails to boot also (a fresh compi

Re: [Qemu-devel] [PATCH] PNG screendump alternative

2012-03-19 Thread Rafael da Veiga Cabral
On 03/19/2012 06:10 PM, Anthony Liguori wrote: On 03/17/2012 05:45 PM, Rafael wrote: Hi, I had already started to work on supporting PNG dump output on screendump when got to know there was another effort to do the same (see Add PNG screendump thread from Daniel P. Berrange). Anyway, I'd like

[Qemu-devel] [PATCH 01/36] vmstate: Simplify test for CPU_SAVE_VERSION

2012-03-19 Thread Juan Quintela
Some cpu's definitions define CPU_SAVE_VERSION, others not, but they have defined cpu_save/load. Signed-off-by: Juan Quintela --- exec.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 265e895..9389a61 100644 --- a/exec.c +++ b/exec.c @@ -657,7

[Qemu-devel] [PATCH 28/36] vmstate: rename machine.c to vmstate-cpu.c

2012-03-19 Thread Juan Quintela
They only contain vmstate cpu sections nowadays. Change name to reflect the case. Signed-off-by: Juan Quintela --- Makefile.target|3 ++- target-alpha/{machine.c => vmstate-cpu.c} |0 target-arm/{machine.c => vmstate-cpu.c}|0 target-cri

[Qemu-devel] [PATCH 20/36] mips: make tlb an embedded struct instead of a pointer

2012-03-19 Thread Juan Quintela
Adjust all callers. Signed-off-by: Juan Quintela --- hw/mips_timer.c |2 +- target-mips/cpu.h|2 +- target-mips/helper.c | 30 +- target-mips/machine.c| 56 +- target-mips/op_helper.c

[Qemu-devel] [PATCH 13/36] vmstate: port ppc cpu

2012-03-19 Thread Juan Quintela
Added sdr1_vmstate because storing the value requires calling ppc_store_sdr1(). The position when the function is called also changes (I think it is save). Signed-off-by: Juan Quintela --- target-ppc/cpu.h |5 +- target-ppc/machine.c | 245 ++-

Re: [Qemu-devel] [PATCH] PNG screendump alternative

2012-03-19 Thread Rafael da Veiga Cabral
On 03/19/2012 05:50 PM, Luiz Capitulino wrote: On Sat, 17 Mar 2012 19:45:56 -0300 Rafael wrote: Hi, I had already started to work on supporting PNG dump output on screendump when got to know there was another effort to do the same (see Add PNG screendump thread from Daniel P. Berrange). Anyw

[Qemu-devel] [PATCH 05/36] vmstate: use new style for lm32 cpus

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-lm32/cpu.h |2 -- target-lm32/machine.c | 14 ++ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/target-lm32/cpu.h b/target-lm32/cpu.h index a7d9546..136a911 100644 --- a/target-lm32/cpu.h +++ b/target-lm32/cpu.h @@ -20

Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside structs

2012-03-19 Thread Anthony Liguori
On 03/19/2012 06:45 PM, Michael Roth wrote: So IMO, returning arguments actually seems easier for both clients and the server, and is more resilient to downstream changes. It does require a more formal specification of the protocol though. Basically: "an option/field may not be supported in older

[Qemu-devel] [PATCH 21/36] mips: bump migration version to 4

2012-03-19 Thread Juan Quintela
bcond state was stored as int32, but it is target_ulong. Change migration state to reflect that. Signed-off-by: Juan Quintela --- target-mips/cpu.h |2 +- target-mips/machine.c | 10 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/target-mips/cpu.h b/target-m

[Qemu-devel] [PATCH 14/36] vmstate: introduce VMSTATE_VARRAY_MULTIPLY

2012-03-19 Thread Juan Quintela
This allows to sent a partial array where the size is another structure field multiplied by a constant. Signed-off-by: Juan Quintela --- savevm.c |6 ++ vmstate.h | 35 +++ 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/savevm.c b/save

[Qemu-devel] [PATCH 07/36] vmstate: port cris cpu to vmstate

2012-03-19 Thread Juan Quintela
Have to define TLBSet struct. Multidimensional arrays in C are a mess, just unroll them. Signed-off-by: Juan Quintela --- target-cris/cpu.h | 13 ++--- target-cris/machine.c | 138 +++-- 2 files changed, 60 insertions(+), 91 deletions(-) diff -

[Qemu-devel] [PATCH 29/36] vmstate: Add copyright info for alpha processor

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela Acked-by: Richard Henderson --- target-alpha/vmstate-cpu.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-alpha/vmstate-cpu.c b/target-alpha/vmstate-cpu.c index 22c70f3..b94b1e5 100644 --- a/target-alpha/vmstate-cpu.c +

[Qemu-devel] [PATCH 10/36] vmstate: introduce float64 arrays

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- savevm.c | 30 ++ vmstate.h |4 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index 09a2149..822f078 100644 --- a/savevm.c +++ b/savevm.c @@ -1112,6 +1112,36 @@ const VMStateInfo vmstate

Re: [Qemu-devel] [PATCH] qmp_output_visitor_cleanup(): fix double free

2012-03-19 Thread Michael Roth
On Fri, Mar 16, 2012 at 08:16:12PM +0100, Laszlo Ersek wrote: > Stack entries in QmpOutputVisitor are navigation links (weak references), > except the bottom (ie. least recently added) entry, which owns the root > QObject [1]. Make qmp_output_visitor_cleanup() drop the stack entries, > then release

Re: [Qemu-devel] [PATCH RFC] virtio-pci: add MMIO property

2012-03-19 Thread Anthony Liguori
On 03/19/2012 06:52 PM, Rusty Russell wrote: On Mon, 19 Mar 2012 17:13:06 -0500, Anthony Liguori wrote: Maybe just make this a hidden option like x-miio? x-violate-the-virtio-spec-to-trick-old-linux-drivers-into-working-on-power? "To configure the device, we use the first I/O region of the

[Qemu-devel] [PATCH 03/36] vmstate: unicore32 don't support cpu migration

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-unicore32/cpu.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/target-unicore32/cpu.h b/target-unicore32/cpu.h index a3f8589..be85250 100644 --- a/target-unicore32/cpu.h +++ b/target-unicore32/cpu.h @@ -134,8 +134,6 @@ int uc32_cp

[Qemu-devel] [PATCH 09/36] vmstate: introduce float32 arrays

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- savevm.c | 30 ++ vmstate.h |5 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index 12fb209..09a2149 100644 --- a/savevm.c +++ b/savevm.c @@ -1082,6 +1082,36 @@ const VMStateInfo vmstat

[Qemu-devel] [PATCH 31/36] vmstate: Add copyright info for cris processor

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela Acked-by: Edgar E. Iglesias --- target-cris/vmstate-cpu.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-cris/vmstate-cpu.c b/target-cris/vmstate-cpu.c index 1dbf8b5..47ac170 100644 --- a/target-cris/vmstate-cpu.c +++ b

[Qemu-devel] [PATCH 18/36] mips_fulong2e: cpu vmstate already registered in cpu_exec_init

2012-03-19 Thread Juan Quintela
This is the second place that register cpu migration code, it is done in general in cpu_exec_init(), just remove this call. Signed-off-by: Juan Quintela --- hw/mips_fulong2e.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 3

[Qemu-devel] [PATCH 27/36] vmstate: remove unneeded includes from target-*/machine.c

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-alpha/machine.c |1 - target-arm/machine.c |1 - target-cris/machine.c |1 - target-i386/machine.c |6 -- target-lm32/machine.c |1 - target-mips/machine.c |3 --- target-ppc/machine.c |2 -- target-sparc/machine.c |

[Qemu-devel] [PATCH 12/36] vmstate: Introduce VMSTATE_STRUCT_VARRAY_INT32_TEST

2012-03-19 Thread Juan Quintela
We have an array of structs whose size is an int32 in the same struct that depends on a test value to know if it is there or not. Signed-off-by: Juan Quintela --- vmstate.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/vmstate.h b/vmstate.h index 5c56f25..b8a

[Qemu-devel] [PATCH v4 00/36] VMState port of all cpus

2012-03-19 Thread Juan Quintela
This repository contains all the changes: git://repo.or.cz/qemu/quintela.git vmstate-cpus-v4 [v4] - rebase to top - adapt to vmstate.h change - adapt to CPUState -> CPU$archState rename - integrate arm changes in the meantime - add QEMU contributors to the copyright notice of ppc & sparc [v3

Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside structs

2012-03-19 Thread Michael Roth
On Mon, Mar 19, 2012 at 08:29:28PM +0100, Paolo Bonzini wrote: > I noticed that the QMP input visitor does not detect extra members inside > structs. The outermost arguments struct is handled by the QMP type > checker, but the nested ones go undetected. That could be a problem > for complex comma

[Qemu-devel] [PATCH 26/36] vmstate: fix vmstate formating for i386

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-i386/machine.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/target-i386/machine.c b/target-i386/machine.c index 127c44f..c2a8872 100644 --- a/target-i386/machine.c +++ b/target-i386/machine.c @@ -11,7 +11,7 @@ stat

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-19 Thread Rik van Riel
On 03/09/2012 01:27 PM, Liu, Jinsong wrote: As for 'tsc deadline' feature exposing, my patch (as attached) just obey qemu general cpuid exposing method, and also satisfied your target I think. One question. Why is TSC_DEADLINE not exposed in the cpuid allowed feature bits in do_cpuid_ent() i

[Qemu-devel] [PATCH 2/3] qapi: remove print statements from test-qmp-commands

2012-03-19 Thread Michael Roth
This is necessary for nicer make check integration. Signed-off-by: Michael Roth --- test-qmp-commands.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/test-qmp-commands.c b/test-qmp-commands.c index fa5a7bd..60cbf01 100644 --- a/test-qmp-commands.c +++ b/test-qmp-comm

[Qemu-devel] [PATCH 3/3] test: add test-qmp-commands to make check

2012-03-19 Thread Michael Roth
All the deps are here but the test was never added to the list of tests for make check Signed-off-by: Michael Roth --- tests/Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 354fdbb..94ea342 100644 --- a/tests/Makefile +++ b/

[Qemu-devel] [PATCH 1/3] test: remove qemu-ga reference

2012-03-19 Thread Michael Roth
This was added by mistake a while back. Signed-off-by: Michael Roth --- tests/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index c78ade1..354fdbb 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -17,7 +17,7 @@ test-coroutin

[Qemu-devel] [PATCH 11/36] vmstate: introduce CPU_DoubleU arrays

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- savevm.c | 24 vmstate.h |4 2 files changed, 28 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index 822f078..4c42076 100644 --- a/savevm.c +++ b/savevm.c @@ -1142,6 +1142,30 @@ const VMStateInfo vmstate_info_

[Qemu-devel] [PATCH 15/36] vmstate: define vmstate_info_uinttls

2012-03-19 Thread Juan Quintela
We are going to define arrays of this type, so we need the integer type. Signed-off-by: Juan Quintela --- hw/hw.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index e5cb9bf..9dbac88 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -52,11 +52,13 @@ int qemu_boo

[Qemu-devel] [PATCH 06/36] vmstate: make microblaze cpus not migrateable

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-microblaze/cpu.h |2 -- target-microblaze/machine.c | 26 ++ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index 33b23c2..c7ea041 100644 --- a/target-micr

[Qemu-devel] [PATCH 23/36] arm: save always 32 fpu registers

2012-03-19 Thread Juan Quintela
This way, we fix a bug (we were overwritten the 16 first registers on load), and we don't need to check for ARM_FEATUR_VPF3, we always send the 32 registers. Signed-off-by: Juan Quintela --- target-arm/cpu.h |2 +- target-arm/machine.c | 22 ++ 2 files changed, 3 in

[Qemu-devel] [PATCH 02/36] vmstate: make all architectures export a way to migrate cpu's

2012-03-19 Thread Juan Quintela
This makes several changes: - exports VMStateDescription vmstate_cpu non-static. - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined - for the architecture that had nothing, it just register the cpu as unmigratable. - Depending on CPU_SAVE_VERSION we register old/new migration s

Re: [Qemu-devel] [PATCH RFC] virtio-pci: add MMIO property

2012-03-19 Thread Rusty Russell
On Mon, 19 Mar 2012 17:13:06 -0500, Anthony Liguori wrote: > > Maybe just make this a hidden option like x-miio? > > x-violate-the-virtio-spec-to-trick-old-linux-drivers-into-working-on-power? "To configure the device, we use the first I/O region of the PCI device." Meh, it does sound a little

[Qemu-devel] [PATCH 22/36] vmstate: port mips cpu

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-mips/cpu.h |5 +- target-mips/machine.c | 465 +++-- 2 files changed, 182 insertions(+), 288 deletions(-) diff --git a/target-mips/cpu.h b/target-mips/cpu.h index d2773d6..2475d32 100644 --- a/target-mip

[Qemu-devel] [PATCH 36/36] vmstate: Add copyright info for sparc processor

2012-03-19 Thread Juan Quintela
v2: Move license to BSD-like as in vl.c v3: Change copyright dates v4: add QEMU contributors Signed-off-by: Juan Quintela --- target-sparc/vmstate-cpu.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/target-sparc/vmstate-cpu.c b/target-spar

[Qemu-devel] [PATCH 19/36] mips: make mvp an embedded struct instead of a pointer

2012-03-19 Thread Juan Quintela
Adjust all callers. Signed-off-by: Juan Quintela --- hw/mips_malta.c |4 ++-- target-mips/cpu.h|4 ++-- target-mips/machine.c| 12 ++-- target-mips/op_helper.c | 30 +- target-mips/translate.c |6 +++--

[Qemu-devel] [PATCH 25/36] vmstate: all cpus converted

2012-03-19 Thread Juan Quintela
We don't have any more CPU_SAVEVM_VERSION users, neither cpu_save/load() ones. Signed-off-by: Juan Quintela --- exec.c|5 - qemu-common.h |4 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/exec.c b/exec.c index c0f9c2e..bb6474c 100644 --- a/exec.c +++ b/e

[Qemu-devel] [PATCH 33/36] vmstate: Add copyright info for i386 processor

2012-03-19 Thread Juan Quintela
v2: Move license to BSD-like as in vl.c Add Fabrice copyright from vl.c Signed-off-by: Juan Quintela --- target-i386/vmstate-cpu.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/target-i386/vmstate-cpu.c b/target-i386/vmstate-cpu.c index

Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside structs

2012-03-19 Thread Michael Roth
On Mon, Mar 19, 2012 at 05:38:54PM -0500, Anthony Liguori wrote: > On 03/19/2012 05:29 PM, Michael Roth wrote: > >On Mon, Mar 19, 2012 at 05:43:14PM -0300, Luiz Capitulino wrote: > >>On Mon, 19 Mar 2012 15:30:26 -0500 > >>Anthony Liguori wrote: > >> > >>>On 03/19/2012 03:22 PM, Eric Blake wrote: >

[Qemu-devel] [PATCH 16/36] vmstate: port sparc cpu

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/sun4u.c | 20 -- target-sparc/cpu.h |9 +- target-sparc/machine.c | 474 3 files changed, 283 insertions(+), 220 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 237e20c..c36861c 10

[Qemu-devel] [PATCH 08/36] vmstate: machine.c is only compiled for !CONFIG_USER_ONLY

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-ppc/machine.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/target-ppc/machine.c b/target-ppc/machine.c index 70e2582..d6c2ee4 100644 --- a/target-ppc/machine.c +++ b/target-ppc/machine.c @@ -32,7 +32,6 @@ void cpu_save(QEM

[Qemu-devel] [PATCH 24/36] vmstate: port arm cpu

2012-03-19 Thread Juan Quintela
Use one subsection for each feature. This means that we don't need to bump the version field each time that a new feature gets introduced. Introduce cpsr_vmstate field, as I am not sure if I can "use" uncached_cpsr for saving state. Signed-off-by: Juan Quintela --- target-arm/cpu.h |5

[Qemu-devel] [PATCH 35/36] vmstate: Add copyright info for ppc processor

2012-03-19 Thread Juan Quintela
v2: Move license to BSD-like as in vl.c v3: change copyright dates v4: add Fabrice & QEMU contributors Signed-off-by: Juan Quintela --- target-ppc/vmstate-cpu.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/target-ppc/vmstate-cpu.c b/targe

[Qemu-devel] [PATCH 34/36] vmstate: Add copyright info for mips processor

2012-03-19 Thread Juan Quintela
v2: Move license to BSD-like as in vl.c Signed-off-by: Juan Quintela --- target-mips/vmstate-cpu.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/target-mips/vmstate-cpu.c b/target-mips/vmstate-cpu.c index bbfa2a9..1e28b3f 100644 --- a/targe

Re: [Qemu-devel] [PATCH 2/2] ppc: Use uintptr_t for arguments of ppc_tb_set_jmp_target

2012-03-19 Thread malc
On Mon, 19 Mar 2012, Andreas F?rber wrote: > Am 19.03.2012 22:33, schrieb malc: > > On Mon, 19 Mar 2012, Stefan Weil wrote: > > > >> The previous commit changed function tb_set_jmp_target1 and is needed > >> for w64 hosts. > >> > >> This patch is not needed for w64, but it synchronizes tb_set_jmp

[Qemu-devel] [PATCH 17/36] vmstate: make incompatible change for sparc

2012-03-19 Thread Juan Quintela
With this change, we sent arrays as arrays, making state description much simpler. The change is incompatible, but as far as I know, sparc don't care about migration compatibility beteween versions. Signed-off-by: Juan Quintela --- target-sparc/machine.c | 172 +++--

[Qemu-devel] [PATCH 32/36] vmstate: Add copyright info for arm processor

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela Acked-by: Andrzej Zaborowski --- target-arm/vmstate-cpu.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-arm/vmstate-cpu.c b/target-arm/vmstate-cpu.c index f8ccdd7..65ed6eb 100644 --- a/target-arm/vmstate-cpu.c +++ b/ta

[Qemu-devel] [PATCH 30/36] vmstate: Add copyright info for lm32 processor

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela Acked-By: Michael Walle --- target-lm32/vmstate-cpu.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-lm32/vmstate-cpu.c b/target-lm32/vmstate-cpu.c index 132259d..3867189 100644 --- a/target-lm32/vmstate-cpu.c +++ b/tar

[Qemu-devel] [PATCH 04/36] vmstate: use new cpu style for x86

2012-03-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-i386/cpu.h |2 -- target-i386/machine.c | 12 +--- 2 files changed, 1 insertions(+), 13 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index a1ed3e7..b2eeb9b 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -964,

Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside structs

2012-03-19 Thread Anthony Liguori
On 03/19/2012 05:29 PM, Michael Roth wrote: On Mon, Mar 19, 2012 at 05:43:14PM -0300, Luiz Capitulino wrote: On Mon, 19 Mar 2012 15:30:26 -0500 Anthony Liguori wrote: On 03/19/2012 03:22 PM, Eric Blake wrote: On 03/19/2012 01:56 PM, Anthony Liguori wrote: For old clients that could be fine.

[Qemu-devel] help with helper functions

2012-03-19 Thread João Corrêa
Hi Guys, I'm trying to use some helper functions to instrument translated code, but I'm getting some segfaults while doing it. Here are some code I've placed: target-i386/helper.h DEF_HELPER_1(foo, void, tl) target-i386/op_helper.c #ifdef TARGET_X86_64 void foo(target_ulong t0){ } target-i386

Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside structs

2012-03-19 Thread Michael Roth
On Mon, Mar 19, 2012 at 05:43:14PM -0300, Luiz Capitulino wrote: > On Mon, 19 Mar 2012 15:30:26 -0500 > Anthony Liguori wrote: > > > On 03/19/2012 03:22 PM, Eric Blake wrote: > > > On 03/19/2012 01:56 PM, Anthony Liguori wrote: > > >>> For old clients that could be fine. But what about old serve

[Qemu-devel] [PATCH] Support utf8 chars in pod docs

2012-03-19 Thread Michael Tokarev
We've at least one UTF8 char in the qemu texi doc: $ grep Tibor qemu-doc.texi by Tibor "TS" Schütz. $ man ./qemu.1 | grep Tibor by Tibor "TS" SchA~Xtz. This patch allows utf8 in man/pod docs. Initially it was split into two parts and sent on 2012-02-02. Resending it again (3rd time) n

[Qemu-devel] [ANNOUNCE] kvm-kmod-3.3

2012-03-19 Thread Jan Kiszka
Kernel 3.3 is released, and so is kvm-kmod-3.3 now as well. The package is available from http://sourceforge.net/projects/kvm/files/kvm-kmod/3.3/kvm-kmod-3.3.tar.bz2/download See [1] for further details on kvm-kmod. KVM changes since kvm-kmod-3.2: - more MMU/MMIO speedup - CPU feature whitelis

[Qemu-devel] [PATCHv5 03/11] rewrite iov_* functions

2012-03-19 Thread Michael Tokarev
This changes implementations of all iov_* functions, completing the previous step. All iov_* functions now ensure that this offset argument is within the iovec (using assertion), but lets to specify `bytes' value larger than actual length of the iovec - in this case they stops at the actual end of

Re: [Qemu-devel] [PATCH 2/6] arm: move saturating arithmetic to helper.c

2012-03-19 Thread Peter Maydell
On 19 March 2012 21:56, Blue Swirl wrote: > +#define SIGNBIT (uint32_t)0x8000 > +#define SIGNBIT64 ((uint64_t)1 << 63) SIGNBIT64 isn't used, I think. -- PMM

Re: [Qemu-devel] [PATCH RFC] virtio-pci: add MMIO property

2012-03-19 Thread Anthony Liguori
On 03/19/2012 04:29 PM, Michael S. Tsirkin wrote: On Mon, Mar 19, 2012 at 04:07:45PM -0500, Anthony Liguori wrote: On 03/19/2012 03:49 PM, Michael S. Tsirkin wrote: On Mon, Mar 19, 2012 at 02:19:33PM -0500, Anthony Liguori wrote: On 03/19/2012 10:56 AM, Michael S. Tsirkin wrote: Currently vir

Re: [Qemu-devel] [PATCH 1/6] arm: move neon_tbl to neon_helper.c

2012-03-19 Thread Peter Maydell
On 19 March 2012 21:56, Blue Swirl wrote: > -DEF_HELPER_4(neon_tbl, i32, i32, i32, i32, i32) > +DEF_HELPER_5(neon_tbl, i32, env, i32, i32, i32, i32) > --- a/target-arm/translate.c > +++ b/target-arm/translate.c > @@ -6340,7 +6340,7 @@ static int disas_neon_data_insn(CPUARMState * > env, DisasCont

[Qemu-devel] [PATCHv5 09/11] export iov_send_recv() and use it in iov_send() and iov_recv()

2012-03-19 Thread Michael Tokarev
Rename do_sendv_recvv() to iov_send_recv(), change its last arg (do_send) from int to bool, export it in iov.h, and made the two callers of it (iov_send() and iov_recv()) to be trivial #defines just adding 5th arg. iov_send_recv() will be used later. Signed-off-by: Michael Tokarev --- cutils.c

[Qemu-devel] [PATCHv5 04/11] consolidate qemu_iovec_memset{, _skip}() into single function and use existing iov_memset()

2012-03-19 Thread Michael Tokarev
This patch combines two functions into one, and replaces the implementation with already existing iov_memset() from iov.c. The new prototype of qemu_iovec_memset(): size_t qemu_iovec_memset(qiov, size_t offset, int fillc, size_t bytes) It is different from former qemu_iovec_memset_skip(), and I

[Qemu-devel] [PATCHv5 07/11] change qemu_iovec_to_buf() to match other to, from_buf functions

2012-03-19 Thread Michael Tokarev
It now allows specifying offset within qiov to start from and amount of bytes to copy. Actual implementation is just a call to iov_to_buf(). Signed-off-by: Michael Tokarev --- block.c |2 +- block/iscsi.c |2 +- block/qcow.c |2 +- block/qcow2.c |2 +- block/rbd.c |

[Qemu-devel] [PATCH 6/6] arm: move load and store helpers, switch to AREG0 free mode

2012-03-19 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move load and store helpers to helper.c. Remove AREG0 swapping in tlb_fill(). Remove now empty op_helper.c. Switch to AREG0 free mode. Use cpu_ld{l,uw}_code in translation and interrupt handling. Signed-off-by: Blue Swirl ---

[Qemu-devel] [PATCH 3/6] arm: move other arithmetic to helper.c

2012-03-19 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move rest of the arithmetic to helper.c. Signed-off-by: Blue Swirl --- target-arm/helper.c| 146 target-arm/helper.h| 24 target-arm/op_helper.c | 140 -

[Qemu-devel] [PATCH 5/6] arm: move exception and wfi helpers to helper.c

2012-03-19 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move exception and wfi helpers to helper.c. Merge raise_exception() and helper_exception(). Signed-off-by: Blue Swirl --- target-arm/helper.c| 13 + target-arm/helper.h|4 ++-- target-arm/op_helper.c

[Qemu-devel] [PATCH 4/6] arm: move cpsr and banked register access to helper.c

2012-03-19 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move cpsr and banked register access to helper.c. Signed-off-by: Blue Swirl --- target-arm/helper.c| 42 ++ target-arm/helper.h|8 target-arm/op_helper.c | 42 --

[Qemu-devel] [PATCH 2/6] arm: move saturating arithmetic to helper.c

2012-03-19 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move saturating arithmetic to helper.c. Signed-off-by: Blue Swirl --- target-arm/helper.c| 133 +++ target-arm/helper.h| 20 target-arm/op_helper.c | 134 ---

Re: [Qemu-devel] [PATCH 2/2] ppc: Use uintptr_t for arguments of ppc_tb_set_jmp_target

2012-03-19 Thread Andreas Färber
Am 19.03.2012 22:33, schrieb malc: > On Mon, 19 Mar 2012, Stefan Weil wrote: > >> The previous commit changed function tb_set_jmp_target1 and is needed >> for w64 hosts. >> >> This patch is not needed for w64, but it synchronizes tb_set_jmp_target1 >> and ppc_tb_set_jmp_target so that both functio

[Qemu-devel] [PATCH 1/6] arm: move neon_tbl to neon_helper.c

2012-03-19 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move neon_tbl to neon_helper.c. Signed-off-by: Blue Swirl --- target-arm/helper.h |2 +- target-arm/neon_helper.c | 22 ++ target-arm/op_helper.c | 22 -- target-arm/trans

[Qemu-devel] [PATCH 0/6] ARM: AREG0 conversion

2012-03-19 Thread Blue Swirl
Convert ARM to AREG0 free operation. Survives simple tests. URL git://repo.or.cz/qemu/blueswirl.git http://repo.or.cz/r/qemu/blueswirl.git Blue Swirl (6): arm: move neon_tbl to neon_helper.c arm: move saturating arithmetic to helper.c arm: move other arithmetic to helper.c arm

Re: [Qemu-devel] QEMU was not selected for Google Summer of Code this year

2012-03-19 Thread François Revol
On 19/03/2012 18:28, Andreas Färber wrote: > Am 16.03.2012 23:11, schrieb François Revol: >> It should be possible to come up with a project involving QEMU on Haiku >> if anyone is interested. >> While there is an existing QEMU port, I'm not sure in what state it >> currently is. > > Haiku is miss

[Qemu-devel] [PATCHv5 00/11] cleanup/consolidate iovec functions

2012-03-19 Thread Michael Tokarev
This is my last attempt. It is pointless to bother so much people with so much trivial stuff again and again and again. This is cleanup/consolidation of iovec-related low-level routines in qemu. The plan is to make library functions more understandable, consistent and useful, and to drop numerou

[Qemu-devel] [PATCHv5 06/11] consolidate qemu_iovec_copy() and qemu_iovec_concat() and make them consistent

2012-03-19 Thread Michael Tokarev
qemu_iovec_concat() is currently a wrapper for qemu_iovec_copy(), use the former (with extra "0" arg) in a few places where it is used. Change skip argument of qemu_iovec_copy() from uint64_t to size_t, since size of qiov itself is size_t, so there's no way to skip larger sizes. Rename it to soff

Re: [Qemu-devel] [PATCH 2/2] ppc: Use uintptr_t for arguments of ppc_tb_set_jmp_target

2012-03-19 Thread malc
On Mon, 19 Mar 2012, Stefan Weil wrote: > The previous commit changed function tb_set_jmp_target1 and is needed > for w64 hosts. > > This patch is not needed for w64, but it synchronizes tb_set_jmp_target1 > and ppc_tb_set_jmp_target so that both functions have the same signature. > > Cc: malc

Re: [Qemu-devel] [PATCH RFC] virtio-pci: add MMIO property

2012-03-19 Thread Michael S. Tsirkin
On Mon, Mar 19, 2012 at 04:07:45PM -0500, Anthony Liguori wrote: > On 03/19/2012 03:49 PM, Michael S. Tsirkin wrote: > >On Mon, Mar 19, 2012 at 02:19:33PM -0500, Anthony Liguori wrote: > >>On 03/19/2012 10:56 AM, Michael S. Tsirkin wrote: > >>>Currently virtio-pci is specified so that configuration

[Qemu-devel] [PATCHv5 01/11] virtio-serial-bus: use correct lengths in control_out() message

2012-03-19 Thread Michael Tokarev
Original code has one thing to process (cur_len), requests to convert from iovec to buf another thing (len which is actually max_len), and processes something else (copied). Whole thing is very difficult to understand, even if it does a right thing. The iov_to_buf() conversion in this case will a

Re: [Qemu-devel] [PATCHv5 00/11] cleanup/consolidate iovec functions

2012-03-19 Thread Michael Tokarev
I pushed it all to git://git.corpit.ru/qemu.git mjt-iov Note there was a bug in last change of unit-test (in the last patch), -- again because I had to rewrite it so much times: --- b/test-iov.c +++ a/test-iov.c @@ -223 +223 @@ static void test_io(void) - iov_memset(iov, niov, 0, j

[Qemu-devel] [PATCHv5 11/11] rewrite iov_send_recv() and move it to iov.c

2012-03-19 Thread Michael Tokarev
Make it much more understandable, add a missing iov_cnt argument (number of iovs in the iov), and add comments to it. The new implementation has been extensively tested by splitting a large buffer into many small randomly-sized chunks, sending it over socket to another, slow process and verifying

  1   2   3   4   >