Re: [Qemu-devel] SPARC not booting SMP Linux kernel

2010-06-22 Thread Artyom Tarasenko
2010/4/28 陈宇飞 : > I've tested the latest git HEAD version. But still has the problem. > > Investigating Linux kernel execution shows that the function which will clear > the interrupt is not executed. > > Here's the relevant kernel code. > > maybe_smp4m_msg: >GET_PROCESSOR4M_ID(o3) >

[Qemu-devel] KVM call agenda for June 22

2010-06-22 Thread Chris Wright
Please send in any agenda items you are interested in covering. If we have a lack of agenda items I'll cancel the week's call. thanks, -chris

[Qemu-devel] Öka din synlighet i mediebruset

2010-06-22 Thread DokuMera Nyhetsbrev
Om du har problem med att läsa detta e-postmeddelande, klicka här (http://www.anp.se/newsletterweb/753296/444059437941455D4B7142445C43) för en webb-version. Vårt nyhetsbrev skickas automatiskt till våra kunder och intressenter. Vill du inte ha detta nyhetsbrev framöver, klicka här för att avpre

[Qemu-devel] [PATCH STABLE-0.12] block/vvfat.c: fix warnings with _FORTIFY_SOURCE

2010-06-22 Thread Amit Shah
From: Kirill A. Shutemov CCblock/vvfat.o cc1: warnings being treated as errors block/vvfat.c: In function 'commit_one_file': block/vvfat.c:2259: error: ignoring return value of 'ftruncate', declared with attribute warn_unused_result make: *** [block/vvfat.o] Error 1 CCblock/vvfat.o In

Re: [Qemu-devel] Re: [PATCH] fix smp with tcg mode and --enable-io-thread

2010-06-22 Thread Jan Kiszka
Alexander Graf wrote: > On 22.06.2010, at 00:13, Jan Kiszka wrote: > >> Jan Kiszka wrote: >>> And there is some race that cause a lock up in qemu_mutex_lock_iothread >>> after a while (the cpu_unlink_tb seems to race with the linking - just a >>> guess so far). >> This seems to fix a long-standing

[Qemu-devel] Re: [PATCH] fix smp with tcg mode and --enable-io-thread

2010-06-22 Thread Jan Kiszka
Marcelo Tosatti wrote: > On Mon, Jun 21, 2010 at 10:58:32PM +0200, Jan Kiszka wrote: >> Jan Kiszka wrote: >>> Marcelo Tosatti wrote: Clear exit_request when iothread grabs the global lock. Signed-off-by: Marcelo Tosatti diff --git a/cpu-exec.c b/cpu-exec.c index 0269

Re: [Qemu-devel] SPARC not booting SMP Linux kernel

2010-06-22 Thread 陈宇飞
On 2010-6-22, at 下午1:46, Artyom Tarasenko wrote: > 2010/4/28 陈宇飞 : >> I've tested the latest git HEAD version. But still has the problem. >> >> Investigating Linux kernel execution shows that the function which will >> clear the interrupt is not executed. >> >> Here's the relevant kernel code

[Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Kevin Wolf
Am 21.06.2010 17:34, schrieb Anthony Liguori: > On 06/21/2010 09:01 AM, Kevin Wolf wrote: >> >> No, what I'm saying is that even in your model >> >>-blockdev format=qcow2,file=image.qcow2,id=blk1 >> >> becomes qcow2 -> file automatically, whereas >> >>-blockdev format=vvfat,file=/tmp/dir/,

[Qemu-devel] Re: [PATCH STABLE-0.12] block/vvfat.c: fix warnings with _FORTIFY_SOURCE

2010-06-22 Thread Juan Quintela
Amit Shah wrote: > From: Kirill A. Shutemov > > CCblock/vvfat.o > cc1: warnings being treated as errors > block/vvfat.c: In function 'commit_one_file': > block/vvfat.c:2259: error: ignoring return value of 'ftruncate', declared > with attribute warn_unused_result > make: *** [block/vvfat.o]

[Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Kevin Wolf
Am 21.06.2010 17:56, schrieb Markus Armbruster: > Kevin Wolf writes: > >> Am 21.06.2010 15:37, schrieb Anthony Liguori: >>> On 06/21/2010 08:30 AM, Kevin Wolf wrote: Am 21.06.2010 15:09, schrieb Anthony Liguori: > On 06/21/2010 03:19 AM, Kevin Wolf wrote: > >> Am 2

Re: [Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Kevin Wolf
Am 21.06.2010 18:21, schrieb Markus Armbruster: > Christoph Hellwig writes: > >> On Mon, Jun 21, 2010 at 09:51:23AM -0500, Anthony Liguori wrote: >>> I can appreciate the desire to keep protocols and formats as an internal >>> distinction but as a user visible concept, I think your two examples

[Qemu-devel] [PATCH v2 5/8] seabios: pciinit: factor out bar offset calculation.

2010-06-22 Thread Isaku Yamahata
This patch factors out bar offset calculation. Later the calculation logic will be enhanced. Signed-off-by: Isaku Yamahata --- src/pciinit.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c index a65c58d..9109739 100644 -

[Qemu-devel] [PATCH v2 3/8] seabios: pciinit: make pci memory space assignment 64bit aware.

2010-06-22 Thread Isaku Yamahata
make pci memory space assignment 64bit aware. If 64bit memory space is found while assigning pci memory space, clear higher bit and skip to next bar. This patch is preparation for q35 chipset initialization which has 64bit bar. Signed-off-by: Isaku Yamahata --- src/pciinit.c | 19

[Qemu-devel] [PATCH v2 6/8] seabios: pciinit: make bar offset calculation pci bridge aware.

2010-06-22 Thread Isaku Yamahata
This patch makes pci bar offset calculation pci bridge aware. The offset of pci bridge rom is different from normal device. Signed-off-by: Isaku Yamahata --- src/pciinit.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c index 9109739..2

[Qemu-devel] [PATCH v2 8/8] seabios: pciinit: initialize pci bridge filtering registers.

2010-06-22 Thread Isaku Yamahata
initialize pci bridge filtering registers. Signed-off-by: Isaku Yamahata --- chages v1 -> v2. - use c99 initialization. --- src/pciinit.c | 106 +++-- 1 files changed, 103 insertions(+), 3 deletions(-) diff --git a/src/pciinit.c b/src/pciini

[Qemu-devel] [PATCH v2 1/8] seabios: pci: introduce foreachpci_in_bus() helper macro.

2010-06-22 Thread Isaku Yamahata
This patch introduces foreachpci_in_bus() helper macro for depth first recursion. foreachpci() is for width first recursion. The macro will be used later to initialize pci bridge that requires depth first recursion. Signed-off-by: Isaku Yamahata --- changes v1 -> v2: - simplified according to Ke

[Qemu-devel] [PATCH v2 7/8] seabios: pciinit: pci bridge bus initialization.

2010-06-22 Thread Isaku Yamahata
pci bridge bus initialization. Signed-off-by: Isaku Yamahata --- src/pciinit.c | 70 + 1 files changed, 70 insertions(+), 0 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c index 23b79bc..d22ee10 100644 --- a/src/pciinit.c +++ b/s

[Qemu-devel] [PATCH v2 4/8] seabios: pciinit: make pci bar assigner preferchable memory aware.

2010-06-22 Thread Isaku Yamahata
Make pci bar assigner preferchable memory aware. This is needed for PCI bridge support because memory space and prefetchable memory space is filtered independently based on memory base/limit and prefetchable memory base/limit of pci bridge. On bus 0, such a distinction isn't necessary so keep exist

[Qemu-devel] [PATCH v2 2/8] seabios: pciinit: factor out pci bar region allocation logic.

2010-06-22 Thread Isaku Yamahata
factor out pci bar region allocation logic. Signed-off-by: Isaku Yamahata --- src/pciinit.c | 84 - 1 files changed, 47 insertions(+), 37 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c index 0556ee2..488c77b 100644 --- a/src/pci

Re: [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips'

2010-06-22 Thread Rtp
KAWAKATSU Noritaka writes: > Hi, Hi, > > I have built u-boot binary for 'qemu-system-mips -M mips'. > It is fine to run ths u-boot binary. > But the same u-boot binary does not run on 'qemu-system-mips64 -M mips'. > > I do not understand what happends on the qemu-mips64 execution. > Is this a b

Re: [Qemu-devel] Re: [PATCH v2] QMP: Introduce the documentation for query-netdev and info netdev

2010-06-22 Thread Jan Kiszka
Markus Armbruster wrote: > Jan Kiszka writes: > >> Luiz Capitulino wrote: >>> On Fri, 18 Jun 2010 13:26:27 -0300 >>> Miguel Di Ciurcio Filho wrote: >>> These commands show the information about active backend network devices. Signed-off-by: Miguel Di Ciurcio Filho ---

[Qemu-devel] [PATCH v2 0/8] seabios: pci: multi pci bus support

2010-06-22 Thread Isaku Yamahata
Changes v1 -> v2: - simplified foreachpci_in_bus() - add overlap check during pci bar assignemnt. - use c99 initialization. Patch description: This patch set allows seabios to initialize multi pci bus and 64bit BAR. Currently seabios is able to initialize only pci root bus. However multi pci bus

[Qemu-devel] [PATCH v2] seabios: acpi: allow qemu to load dsdt as external acpi table.

2010-06-22 Thread Isaku Yamahata
allow qemu to load dsdt as external acpi table. Signed-off-by: Isaku Yamahata --- changes v1 -> v2. - load qemu table first and they try default dsdt table if qemu doesn't supply dsdt. Thus unnecessary malloc_high()/free() is avoided. --- src/acpi.c | 49 ++

Re: [Qemu-devel] [PATCH] qemu-option: Reject anti-social IDs

2010-06-22 Thread Avi Kivity
On 06/08/2010 02:54 PM, Markus Armbruster wrote: Restrict IDs to letters, digits, '-', '.', '_', starting with a letter. This takes care of '/' in qdev IDs breaking qbus_find(). Broke autotest (used leading numeric char). Patch posted. -- error compiling committee.c: too many arguments

Re: [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips'

2010-06-22 Thread KAWAKATSU Noritaka
Thank you for your reply. > so EPC is set to bfc0ee94 which is : > movn s1,v1,v0 > >> From what I understand when reading the mips IV manual, the movn ins is > only for mips IV / 32bit and not 64bit. Looks like the qemu code has > been written following this. (This also explains why

[Qemu-devel] [PATCH 0/2] qcow2: qemu-img check fixes

2010-06-22 Thread Kevin Wolf
Kevin Wolf (2): qcow2: Fix qemu-img check segfault on corrupted images qcow2: Don't try to check tables that couldn't be loaded block/qcow2-refcount.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-)

[Qemu-devel] [PATCH 1/2] qcow2: Fix qemu-img check segfault on corrupted images

2010-06-22 Thread Kevin Wolf
With corrupted images, we can easily get an cluster index that exceeds the array size of the temporary refcount table. Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-

[Qemu-devel] [PATCH 2/2] qcow2: Don't try to check tables that couldn't be loaded

2010-06-22 Thread Kevin Wolf
Trying to check them leads to a second error message which is more confusing than helpful: Can't get refcount for cluster 0: Invalid argument ERROR cluster 0 refcount=-22 reference=1 Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c |1 + 1 files changed, 1 insertions(+), 0 delet

[Qemu-devel] [PATCH V5 0/2] Threadlets: A generic task offloading framework

2010-06-22 Thread Gautham R Shenoy
Hi, This is the v5 of the patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu. V4 can be found here: http://lists.gnu.org/archive/html/qemu-devel/2010-06/msg02152.html Changes from V4: =

[Qemu-devel] [PATCH V5 1/2] qemu: Generic task offloading framework: threadlets

2010-06-22 Thread Gautham R Shenoy
From: Aneesh Kumar K.V This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The core idea has been borrowed from the threading framework that is being used by paio. The reason for creating this generic infrastructure is so that other subsystems, such as virt

[Qemu-devel] [PATCH V5 2/2] qemu: Convert AIO code to use threadlets.

2010-06-22 Thread Gautham R Shenoy
This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy --- posix-aio-compat.c | 152 ---

[Qemu-devel] Re: [PATCH v2 3/3] pci hotplug: make pci hotplug return value to caller.

2010-06-22 Thread Michael S. Tsirkin
On Tue, Jun 22, 2010 at 11:55:35AM +0900, Isaku Yamahata wrote: > make pci hotplug callback return value to caller. > And when returning error, allocated resources are freed. > > Signed-off-by: Isaku Yamahata > --- > hw/pci.c | 15 +++ > 1 files changed, 11 insertions(+), 4 deletio

Re: [Qemu-devel] Re: [PATCH v2] QMP: Introduce the documentation for query-netdev and info netdev

2010-06-22 Thread Markus Armbruster
Jan Kiszka writes: > Markus Armbruster wrote: >> Jan Kiszka writes: >> >>> Luiz Capitulino wrote: On Fri, 18 Jun 2010 13:26:27 -0300 Miguel Di Ciurcio Filho wrote: > These commands show the information about active backend network devices. > > Signed-off-by: Miguel D

[Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Juan Quintela
Chris Wright wrote: > Please send in any agenda items you are interested in covering. > > If we have a lack of agenda items I'll cancel the week's call. As we have no agenda. This week call gets cancelled. Thanks, Juan. > thanks, > -chris

Re: [Qemu-devel] [PATCH] stop cpus before forking.

2010-06-22 Thread Avi Kivity
On 06/16/2010 07:58 PM, Glauber Costa wrote: It is, and the fix would be to create the APIC memory slot as sharable across forks (should be easy to fix in the kernel). Kernel pages are already shared across fork, no? What are kernel pages in this context? The APIC access page is a

[Qemu-devel] Re: [PATCH v2 0/3] pci: fix resource leak in pci qdev and hot plug.

2010-06-22 Thread Michael S. Tsirkin
On Tue, Jun 22, 2010 at 11:55:32AM +0900, Isaku Yamahata wrote: > pci qdev exit code patch(pci_unregister_device) doesn't release > all the resource allocated by pci qdev initialization.(pci_qdev_init) > This patch series sorts it out and make pci::hotplug error code to the caller. > > Isaku Yamah

[Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Anthony Liguori
On 06/22/2010 03:10 AM, Kevin Wolf wrote: Am 21.06.2010 17:34, schrieb Anthony Liguori: On 06/21/2010 09:01 AM, Kevin Wolf wrote: No, what I'm saying is that even in your model -blockdev format=qcow2,file=image.qcow2,id=blk1 becomes qcow2 -> file automatically, whereas -b

[Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Anthony Liguori
On 06/22/2010 07:04 AM, Juan Quintela wrote: Chris Wright wrote: Please send in any agenda items you are interested in covering. If we have a lack of agenda items I'll cancel the week's call. As we have no agenda. This week call gets cancelled. Could we send the agenda note o

[Qemu-devel] [PATCH v4 0/7] Fix building qemu-kvm for non KVM target

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen Hi, This set of patches fixes building qemu-kvm for non KVM targets, as reported in http://sourceforge.net/tracker/?func=detail&atid=893831&aid=2984626&group_id=180599 One of the main problem is that we have a tendency to move things from Makefile.objs to Makefile.target in o

[Qemu-devel] [PATCH 3/7] time_drift_fix is x86 only, rather than !ia64

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen time_drift_fix is only present on x86, not just on !ia64. This allows the code to build for other archs, like MIPS. Signed-off-by: Jes Sorensen --- hw/i8259.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index a8ae069..e89

[Qemu-devel] [PATCH 1/7] Only call kvm_set_irqfd() if CONFIG_KVM is defined

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen This avoids breaking the build for non KVM targets where kvm_set_irqfd() is not defined. Signed-off-by: Jes Sorensen --- hw/virtio-pci.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index d497eae..938937e 10064

[Qemu-devel] [PATCH 4/7] Build certain drivers for MIPS as well.

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen pcspk.o i8254.o acpi.o acpi_piix4.o are all required for MIPS as well, add them to Makefile.target accordingly. Signed-off-by: Jes Sorensen --- Makefile.target |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.target index b

[Qemu-devel] Re: [PATCH V5 1/2] qemu: Generic task offloading framework: threadlets

2010-06-22 Thread Paolo Bonzini
On 06/22/2010 01:18 PM, Gautham R Shenoy wrote: From: Aneesh Kumar K.V This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The core idea has been borrowed from the threading framework that is being used by paio. The reason for creating this generic infrast

[Qemu-devel] [PATCH 7/7] Declare no_hpet variable for all targets

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen We need to declare 'int no_hpet' for all targets to avoid build failure on no x86 builds. Signed-off-by: Jes Sorensen --- vl.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 79f91d5..c2e99fc 100644 --- a/vl.c +++ b/vl.c @@ -207,9

[Qemu-devel] [PATCH 2/7] Remove duplicate kvm_init() stub from qemu-kvm.h

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen Avoid build conflicts and move prototype out of CONFIG_KVM to make the stub in kvm-stub.c visible. Signed-off-by: Jes Sorensen --- qemu-kvm.h | 29 - 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/qemu-kvm.h b/qemu-kvm.h index

[Qemu-devel] [PATCH 6/7] Only treat KVM specific cmdline options for KVM enabled builds

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen This fixes build breakage for target MIPS etc. Signed-off-by: Jes Sorensen --- vl.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 0ee963c..79f91d5 100644 --- a/vl.c +++ b/vl.c @@ -2459,6 +2459,7 @@ int main(int argc, char **argv,

[Qemu-devel] [PATCH 5/7] Only export phys_mem create functions for !CONFIG_USER_ONLY builds

2010-06-22 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-kvm.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.h b/qemu-kvm.h index c9b93dc..6dd3a01 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -835,6 +835,7 @@ void qemu_kvm_cpuid_on_env(CPUState *env); void kv

[Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Kevin Wolf
Am 22.06.2010 14:39, schrieb Anthony Liguori: > On 06/22/2010 03:10 AM, Kevin Wolf wrote: >> Am 21.06.2010 17:34, schrieb Anthony Liguori: >> >>> On 06/21/2010 09:01 AM, Kevin Wolf wrote: >>> No, what I'm saying is that even in your model -blockdev format=qcow2,file=ima

Re: [Qemu-devel] [patch 2/3] QEMU-C-F: Introducing qemu userspace tool qemu-core-filter.

2010-06-22 Thread Anthony Liguori
Hrm, the way you've sent this patch makes Thunderbird unhappy. It appears the whole thing is treated as an attachment. In the future, I'd suggest avoiding the Content-Disposition tag On 06/21/2010 11:01 PM, Mahesh Salgaonkar wrote: Qemu userspace tool to filter out guest OS memory from qemu

[Qemu-devel] Re: [PATCH v3] QMP: Introduce the documentation for query-netdev and info netdev

2010-06-22 Thread Luiz Capitulino
On Mon, 21 Jun 2010 17:31:28 -0300 Miguel Di Ciurcio Filho wrote: > These commands show the information about active backend network devices. > > Changes from v2 > --- > - Got rid of vlans, a separate command for them will be created if needed > - Removed socket as a type (it is used

[Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Anthony Liguori
On 06/22/2010 07:57 AM, Kevin Wolf wrote: and it will be turned into something sensible automagically (namely adding a file blockdev underneath and passing the file parameter to that one), but if you want to change an option, you need to specify both? -blockdev id=foo,format=qcow2,parent=foo

[Qemu-devel] Re: [PATCH v3] QMP: Introduce the documentation for query-netdev and info netdev

2010-06-22 Thread Miguel Di Ciurcio Filho
On Tue, Jun 22, 2010 at 10:06 AM, Luiz Capitulino wrote: > On Mon, 21 Jun 2010 17:31:28 -0300 > Miguel Di Ciurcio Filho wrote: > >> These commands show the information about active backend network devices. >> >> Changes from v2 >> --- >> - Got rid of vlans, a separate command for them

[Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Alex Williamson
On Tue, 2010-06-22 at 07:49 -0500, Anthony Liguori wrote: > On 06/22/2010 07:04 AM, Juan Quintela wrote: > > Chris Wright wrote: > > > >> Please send in any agenda items you are interested in covering. > >> > >> If we have a lack of agenda items I'll cancel the week's call. > >> > > As w

[Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Alexander Graf
Alex Williamson wrote: > On Tue, 2010-06-22 at 07:49 -0500, Anthony Liguori wrote: > >> On 06/22/2010 07:04 AM, Juan Quintela wrote: >> >>> Chris Wright wrote: >>> >>> Please send in any agenda items you are interested in covering. If we have a lack of agenda item

[Qemu-devel] [PATCH v5 1/6] MIPS: Initial support of bonito north bridge used by fulong mini pc

2010-06-22 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.target |1 + default-configs/mips64el-softmmu.mak |1 + hw/bonito.c | 809 ++ hw/mips.h|3 + 4 files changed, 814 insertions(+), 0 deletio

[Qemu-devel] [PATCH v5 4/6] MIPS: Initial support of VIA USB controller used by fulong mini pc

2010-06-22 Thread Huacai Chen
Signed-off-by: Huacai Chen --- hw/usb-uhci.c | 29 + hw/usb-uhci.h |1 + 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 624d55b..accfe2e 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -1149,6 +1149,25 @@ sta

[Qemu-devel] [PATCH v5 2/6] MIPS: Initial support of vt82686b south bridge used by fulong mini pc

2010-06-22 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.target |2 +- hw/pci_ids.h|8 + hw/vt82c686.c | 569 +++ hw/vt82c686.h | 11 + 4 files changed, 589 insertions(+), 1 deletions(-) create mode 100644 hw/vt82c686.c create mode 100644 hw

[Qemu-devel] [PATCH v5 3/6] MIPS: Initial support of VIA IDE controller used by fulong mini pc

2010-06-22 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.objs|1 + default-configs/mips64el-softmmu.mak |1 + hw/ide.h |1 + hw/ide/via.c | 191 ++ 4 files changed, 194 insertions(+), 0 deletio

[Qemu-devel] [PATCH v5 5/6] MIPS: Initial support of fulong mini pc (CPU definition)

2010-06-22 Thread Huacai Chen
Signed-off-by: Huacai Chen --- target-mips/mips-defs.h |4 target-mips/translate_init.c | 35 +++ 2 files changed, 39 insertions(+), 0 deletions(-) diff --git a/target-mips/mips-defs.h b/target-mips/mips-defs.h index a7f4697..bf094a3 100644 --- a/t

Re: [Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Jes Sorensen
On 06/22/10 15:23, Alexander Graf wrote: > Alex Williamson wrote: >>> Could we send the agenda note out a little bit earlier? >>> >>> The note arrived at 12:55am CST and we decided we had no agenda at >>> 7:04am CST. That's a pretty short window and I imagine a lot of people >>> in the US

[Qemu-devel] [PATCH v5 6/6] MIPS: Initial support of fulong mini pc (machine construction)

2010-06-22 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.target|2 +- hw/mips_fulong2e.c | 416 2 files changed, 417 insertions(+), 1 deletions(-) create mode 100644 hw/mips_fulong2e.c diff --git a/Makefile.target b/Makefile.target index 4b23e6d..a4c

[Qemu-devel] [PATCH v5 0/6] MIPS: Initial support for fulong (Loongson-2E based) mini pc.

2010-06-22 Thread chen huacai
Changes from V4: Doesn't include the PMON binary to avoid license issues. -- Huacai Chen

[Qemu-devel] [PATCH 01/14] scsi-bus: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup

2010-06-22 Thread Kevin Wolf
From: Nicholas Bellinger This patch updates hw/scsi-bus.c to add the PERSISTENT_RESERVE_OUT cdb case in scsi_req_xfer_mode() to set SCSI_XFER_TO_DEV for outgoing WRITE data. Signed-off-by: Nicholas A. Bellinger Acked-by: Gerd Hoffmann Signed-off-by: Kevin Wolf --- hw/scsi-bus.c |1 + 1 f

[Qemu-devel] [PATCH 05/14] block: Add bdrv_(p)write_sync

2010-06-22 Thread Kevin Wolf
Add new functions that write and flush the written data to disk immediately. This is what needs to be used for image format metadata to maintain integrity for cache=... modes that don't use O_DSYNC. (Actually, we only need barriers, and therefore the functions are defined as such, but flushes is wh

[Qemu-devel] [PATCH 02/14] scsi-bus: Add MAINTENANCE_IN and MAINTENANCE_OUT SCSIRequest xfer and mode assignments

2010-06-22 Thread Kevin Wolf
From: Nicholas Bellinger This patch updates hw/scsi-bus.c to add MAINTENANCE_IN and MAINTENANCE_OUT case in scsi_req_length() for TYPE_ROM with MMC commands. It also adds the MAINTENANCE_OUT case in scsi_req_xfer_mode() to set SCSI_XFER_TO_DEV for outgoing write data. Signed-off-by: Nicholas

[Qemu-devel] [PATCH 03/14] block: fix physical_block_size calculation

2010-06-22 Thread Kevin Wolf
From: Christoph Hellwig Both SCSI and virtio expect the physical block size relative to the logical block size. So get the factor first before calculating the log2. Reported-by: Mike Cao Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- block_int.h |4 +++- 1 files changed,

[Qemu-devel] [PATCH 13/14] qcow2: Fix qemu-img check segfault on corrupted images

2010-06-22 Thread Kevin Wolf
With corrupted images, we can easily get an cluster index that exceeds the array size of the temporary refcount table. Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-

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

2010-06-22 Thread Kevin Wolf
The following changes since commit cada87c432e3b9cd55869a24055baf2b7bc0b70c: Blue Swirl (1): Update OpenBIOS images are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Christoph Hellwig (1): block: fix physical_block_size calculation Eduardo Hab

[Qemu-devel] [PATCH 09/14] vmdk: Use bdrv_(p)write_sync for metadata writes

2010-06-22 Thread Kevin Wolf
Use bdrv_(p)write_sync to ensure metadata integrity in case of a crash. Signed-off-by: Kevin Wolf --- block/vmdk.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index e659908..2d4ba42 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@

[Qemu-devel] [PATCH 04/14] monitor: allow device to be ejected if no disk is inserted

2010-06-22 Thread Kevin Wolf
From: Eduardo Habkost This changes the monitor eject_device() function to not check for bdrv_is_inserted(). Example run where the bug manifests itself: (output of 'info block' is stripped to include only the CD-ROM device) (qemu) info block ide1-cd0: type=cdrom removable=1 locked=0 [not in

[Qemu-devel] [PATCH 12/14] virtio-blk: fix the list operation in virtio_blk_load().

2010-06-22 Thread Kevin Wolf
From: Yoshiaki Tamura Although it is really rare to get in to the while loop, the list operation in the loop is obviously wrong. Signed-off-by: Yoshiaki Tamura Signed-off-by: Kevin Wolf --- hw/virtio-blk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio-blk

[Qemu-devel] [PATCH 06/14] cow: Use bdrv_(p)write_sync for metadata writes

2010-06-22 Thread Kevin Wolf
Use bdrv_(p)write_sync to ensure metadata integrity in case of a crash. While at it, correct the wrong usage of errno. Signed-off-by: Kevin Wolf --- block/cow.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/block/cow.c b/block/cow.c index d146434..e

[Qemu-devel] [PATCH 07/14] qcow: Use bdrv_(p)write_sync for metadata writes

2010-06-22 Thread Kevin Wolf
Use bdrv_(p)write_sync to ensure metadata integrity in case of a crash. Signed-off-by: Kevin Wolf --- block/qcow.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 449858f..816103d 100644 --- a/block/qcow.c +++ b/block/q

[Qemu-devel] [PATCH 10/14] vpc: Use bdrv_(p)write_sync for metadata writes

2010-06-22 Thread Kevin Wolf
Use bdrv_(p)write_sync to ensure metadata integrity in case of a crash. Signed-off-by: Kevin Wolf --- block/vpc.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index f1f73e2..e50509e 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -261,7

[Qemu-devel] [PATCH 11/14] qemu-io: check registered fds in command_loop()

2010-06-22 Thread Kevin Wolf
From: MORITA Kazutaka Some block drivers use an aio handler and do I/O completion routines in it. However, the handler is not invoked if we only do aio_read/write, because registered fds are not checked at all. This patch registers an aio handler of STDIO to checks whether we can read a command

[Qemu-devel] [PATCH 14/14] qcow2: Don't try to check tables that couldn't be loaded

2010-06-22 Thread Kevin Wolf
Trying to check them leads to a second error message which is more confusing than helpful: Can't get refcount for cluster 0: Invalid argument ERROR cluster 0 refcount=-22 reference=1 Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c |1 + 1 files changed, 1 insertions(+), 0 delet

[Qemu-devel] [PATCH 08/14] qcow2: Use bdrv_(p)write_sync for metadata writes

2010-06-22 Thread Kevin Wolf
Use bdrv_(p)write_sync to ensure metadata integrity in case of a crash. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 24 block/qcow2-refcount.c | 24 block/qcow2-snapshot.c | 23 +++ block/qcow2.c |

[Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Juan Quintela
Alexander Graf wrote: > Alex Williamson wrote: >> On Tue, 2010-06-22 at 07:49 -0500, Anthony Liguori wrote: >> >>> On 06/22/2010 07:04 AM, Juan Quintela wrote: >>> Chris Wright wrote: > Please send in any agenda items you are interested in covering. > >>>

[Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Juan Quintela
Anthony Liguori wrote: > On 06/22/2010 09:10 AM, Juan Quintela wrote: > I think for the past month or so, whether the meeting gets cancelled > is based on a race condition between me finishing my first cup of > coffee and you sending out the cancellation note ;-) This is my 1st cancellation note

Re: [Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Markus Armbruster
Kevin Wolf writes: > Am 21.06.2010 18:21, schrieb Markus Armbruster: >> Christoph Hellwig writes: >> [...] >>> The user basically can specify two things: >>> >>> - a transport protocol. Normally this is just the filesystem >>>interface, but it can also be nbd, http or for really sick peop

[Qemu-devel] Re: RFC qdev path semantics

2010-06-22 Thread Anthony Liguori
On 06/16/2010 04:46 AM, Markus Armbruster wrote: A number of changes to qdev paths have been proposed in various threads. It's becoming harder to keep track of them, so let me sum them up in one place. Please correct me if I misrepresent your ideas. Honestly, I think we've gone off the dee

[Qemu-devel] Re: KVM call agenda for June 22

2010-06-22 Thread Anthony Liguori
On 06/22/2010 09:10 AM, Juan Quintela wrote: Alexander Graf wrote: Alex Williamson wrote: On Tue, 2010-06-22 at 07:49 -0500, Anthony Liguori wrote: On 06/22/2010 07:04 AM, Juan Quintela wrote: Chris Wright wrote: Please send in any agenda items

[Qemu-devel] [PATCH] qcow2: Fix error handling during metadata preallocation

2010-06-22 Thread Kevin Wolf
People were wondering why qemu-img check failed after they tried to preallocate a large qcow2 file and ran out of disk space. Signed-off-by: Kevin Wolf --- block/qcow2.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index d29

Re: [Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Jamie Lokier
Christoph Hellwig wrote: > On Mon, Jun 21, 2010 at 09:51:23AM -0500, Anthony Liguori wrote: > > I can appreciate the desire to keep protocols and formats as an internal > > distinction but as a user visible concept, I think your two examples > > highlight why exposing protocols as formats make se

Re: [Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Jamie Lokier
Kevin Wolf wrote: > > The "protocol" parlance breaks down when we move away from the simple > > stuff. For instance, qcow2 needs two children: the block driver > > providing the delta bits (in qcow2 format), and the block driver > > providing the base bits (whose configuration happens to be stored

Re: [Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Jamie Lokier
Markus Armbruster wrote: > A possible reason why we currently expose format and protocol at the > user interface is to avoid stacking there. Pragmatic solution?: A few generic flags in each stacking module ("format/protocol/transport"), which govern which other modules are allowed to stack on top

[Qemu-devel] [Bug 597351] Re: Slow UDP performance with virtio device

2010-06-22 Thread Andy Ross
** Attachment added: "udp-pong.c" http://launchpadlibrarian.net/50751155/udp-pong.c -- Slow UDP performance with virtio device https://bugs.launchpad.net/bugs/597351 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Ne

[Qemu-devel] [Bug 597351] [NEW] Slow UDP performance with virtio device

2010-06-22 Thread Andy Ross
Public bug reported: I'm working on an app that is very sensitive to round-trip latency between the guest and host, and qemu/kvm seems to be significantly slower than it needs to be. The attached program is a ping/pong over UDP. Call it with a single argument to start a listener/echo server on t

Re: [Qemu-devel] Re: block: format vs. protocol, and how they stack

2010-06-22 Thread Daniel P. Berrange
On Tue, Jun 22, 2010 at 05:40:02PM +0100, Jamie Lokier wrote: > Kevin Wolf wrote: > > > The "protocol" parlance breaks down when we move away from the simple > > > stuff. For instance, qcow2 needs two children: the block driver > > > providing the delta bits (in qcow2 format), and the block driver

[Qemu-devel] [Bug 597362] [NEW] qemu-system-sparc singlestep not work in gdbstub

2010-06-22 Thread Vitaliy
Public bug reported: Debugging with gdb-stub does not work with qemu-system-sparc target Qemu compiled from current git tree. execution string: qemu-system-sparc.exe -s -S -m 256 -L Bios -hda sparc.img -boot c connect with telnet localhost 1234 enter '$s#73' (without quotes, this is single step

[Qemu-devel] [PATCH 03/13] QDict: Introduce functions to retrieve QDictEntry values

2010-06-22 Thread Luiz Capitulino
Next commit will introduce a new QDict iteration API which returns QDictEntry entries, but we don't want users to directly access its members since QDictEntry should be private to QDict. In the near future this kind of data type will be turned into a forward reference. Signed-off-by: Luiz Capitul

[Qemu-devel] [PATCH v2 00/13]: QMP: Replace client argument checker

2010-06-22 Thread Luiz Capitulino
Current QMP's client argument checker code is more complex than it should be and has a flaw: it ignores unknown arguments. This series solves both problems by introducing a new, simple and ultra-poweful argument checker. This wasn't trivial to get right due to the number of errors combinations, so

[Qemu-devel] [PATCH 01/13] QDict: Rename 'err_value'

2010-06-22 Thread Luiz Capitulino
A missing key is not an error. Signed-off-by: Luiz Capitulino --- qdict.c |6 +++--- qdict.h |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qdict.c b/qdict.c index 175bc17..c974d6f 100644 --- a/qdict.c +++ b/qdict.c @@ -272,16 +272,16 @@ const char *qdict_get_str(c

[Qemu-devel] [PATCH 12/13] QMP: Introduce qmp_check_input_obj()

2010-06-22 Thread Luiz Capitulino
This is similar to qmp_check_client_args(), but it checks if the input object follows the specification (QMP/qmp-spec.txt section 2.3). As we're limited to three keys, the work here is quite simple: we iterate over the input object, checking each time if the current argument complies to the specif

[Qemu-devel] [PATCH 05/13] check-qdict: Introduce test for the new iteration API

2010-06-22 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- check-qdict.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/check-qdict.c b/check-qdict.c index 1b070f4..6afce5a 100644 --- a/check-qdict.c +++ b/check-qdict.c @@ -194,6 +194,36 @@ START_TEST(qobject_to_q

[Qemu-devel] [PATCH 02/13] QDict: Small terminology change

2010-06-22 Thread Luiz Capitulino
Let's call a 'hash' only what is returned by our hash function, anything else is a 'bucket'. This helps avoiding confusion with regard to how we traverse our table. Signed-off-by: Luiz Capitulino --- check-qdict.c |2 +- qdict.c | 24 qdict.h |4 ++

[Qemu-devel] [PATCH 11/13] QError: Introduce QERR_QMP_UNEXPECTED_INPUT_OBJECT_MEMBER

2010-06-22 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- qerror.c |4 qerror.h |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 44d0bf8..8a10557 100644 --- a/qerror.c +++ b/qerror.c @@ -177,6 +177,10 @@ static const QErrorStringTable qerror_table[] = {

[Qemu-devel] [PATCH 04/13] QDict: Introduce new iteration API

2010-06-22 Thread Luiz Capitulino
It's composed of functions qdict_first() and qdict_next(), plus functions to access QDictEntry values. This API was suggested by Markus Armbruster and it offers full control over the iteration process. The usage is simple, the following example prints all keys in 'qdict' (it's hopefully better t

[Qemu-devel] [PATCH 10/13] QMP: Drop old client argument checker

2010-06-22 Thread Luiz Capitulino
Previous two commits added qmp_check_client_args(), which fully replaces this code and is way better. It's important to note that the new checker doesn't support the '/' arg type. As we don't have any of those handlers converted to QMP, this is just dead code. Signed-off-by: Luiz Capitulino ---

[Qemu-devel] [PATCH 09/13] QMP: New argument checker (second part)

2010-06-22 Thread Luiz Capitulino
This commit introduces the second (and last) part of QMP's new argument checker. The job is done by check_client_args_type(), it iterates over the client's argument qdict and for for each argument it checks if it exists and if its type is valid. It's important to observe the following changes fro

  1   2   >