Re: [Qemu-devel] QEMU TB Unlinking due to interrupt.

2011-12-13 Thread 陳韋任
> 1. some other tbs being invalidated. > 2. interrrupt pending Could you point out "interrrupt pending" means where? I'd like to take a look, thanks. :) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-278

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-13 Thread Peter Maydell
On 13 December 2011 06:19, Paul Brook wrote: >> > When compiling qemu statically with multilib on PPC, we hit the >> > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 >> > is fixing. Do the same here. >> >> How many of these ld files can we get rid of if we use -Ttext-segment >> in

Re: [Qemu-devel] [PATCH 1/2] error: Add an accessor for progname

2011-12-13 Thread Stefan Hajnoczi
On Tue, Dec 13, 2011 at 12:22:57PM +1100, mich...@ellerman.id.au wrote: > We'd like to get the progname for help output, so add an accessor. > > Signed-off-by: Michael Ellerman > --- > qemu-error.c |5 + > qemu-error.h |1 + > 2 files changed, 6 insertions(+), 0 deletions(-) Both pa

Re: [Qemu-devel] (no subject)

2011-12-13 Thread Stefan Hajnoczi
On Mon, Dec 12, 2011 at 08:50:39PM -0600, Erik Lotspeich wrote: > Hi, > > I posted this on qemu-discuss and didn't receive any replies; sorry > for posting it twice. > > I have OpenSUSE 12.1 and I have a 64-bit Windows 7 VM that recognizes > the emulated ICH6 sound (HDA audio device). Although W

Re: [Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-13 Thread Alon Levy
On Mon, Dec 12, 2011 at 11:53:28AM -0600, Anthony Liguori wrote: > On 12/12/2011 11:22 AM, Alon Levy wrote: > >On Mon, Dec 12, 2011 at 10:24:53AM -0600, Anthony Liguori wrote: > >>On 12/12/2011 10:00 AM, Alon Levy wrote: > >>>On Mon, Dec 12, 2011 at 03:23:35PM +, Stefan Hajnoczi wrote: > On

Re: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is used by guest

2011-12-13 Thread Wen Congyang
At 12/13/2011 02:01 PM, HATAYAMA Daisuke Write: > From: Wen Congyang > Subject: Re: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci > device is used by guest > Date: Tue, 13 Dec 2011 11:35:53 +0800 > >> Hi, hatayama-san >> >> At 12/13/2011 11:12 AM, HATAYAMA Daisuke Write: >>> Hello W

Re: [Qemu-devel] [PATCH v2 15/18] rtc: add a dynamic property for retrieving the date

2011-12-13 Thread Kevin Wolf
Am 09.12.2011 15:25, schrieb Anthony Liguori: > On 12/09/2011 08:04 AM, Kevin Wolf wrote: >> Am 09.12.2011 14:08, schrieb Anthony Liguori: >>> On 12/09/2011 05:26 AM, Kevin Wolf wrote: Am 02.12.2011 21:20, schrieb Anthony Liguori: > This really shows the power of dynamic object properties

Re: [Qemu-devel] [PATCH v2 15/18] rtc: add a dynamic property for retrieving the date

2011-12-13 Thread Gerd Hoffmann
Hi, > Now I understand that for dynamically created properties (like on your > PCB) this is necessary and can't be avoided. For about 99% of the > devices static definition of properties would be enough, though. > > So basically what I'm asking for is getting the static structs back for > the 9

Re: [Qemu-devel] [PATCH 1/2] error: Add an accessor for progname

2011-12-13 Thread Andreas Färber
Am 13.12.2011 09:03, schrieb Stefan Hajnoczi: > On Tue, Dec 13, 2011 at 12:22:57PM +1100, mich...@ellerman.id.au wrote: >> We'd like to get the progname for help output, so add an accessor. >> >> Signed-off-by: Michael Ellerman >> --- >> qemu-error.c |5 + >> qemu-error.h |1 + >> 2 f

Re: [Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-13 Thread Gerd Hoffmann
Hi, > We aren't breaking an ABI here. libvirt can detect that this command is > gone and probe for the new command. Please stop this. There are libvirt versions in the wild which can't deal with this and thus will break, no matter how hard you try to wave it away. The question is not wheneve

Re: [Qemu-devel] [PATCH v3 00/14] ARM: Samsung Exynos4210-based boards support.

2011-12-13 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > This set of patches adds support for Samsung S5PC210-based boards NURI and > SMDKC210. > Tested on Linux kernel v3.x series. Usage of "-smp 2" option is reuired for > now. General question -- is there publicly available hardware documentation

Re: [Qemu-devel] [PATCH v3 00/14] ARM: Samsung Exynos4210-based boards support.

2011-12-13 Thread Dmitry Solodkiy
Dear Peter, Public Exynos4210 UM is available at http://www.samsung.com/global/system/business/semiconductor/product/2011/12/2/738994Pulbicmanual_Exynos4210_Ver1.pdf Thanks, Dmitry Solodkiy, Mobile SW PL, Advanced Software Group, Moscow R&D center, Samsung Electronics ---

Re: [Qemu-devel] [PATCH v3 06/14] ARM: exynos4210: PWM support.

2011-12-13 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > > Signed-off-by: Evgeny Voevodin > --- >  Makefile.target     |    2 +- >  hw/exynos4210.c     |   12 ++ >  hw/exynos4210_pwm.c |  433 > +++ >  3 files changed, 446 insertions(+), 1 deletions(-) >

[Qemu-devel] [PATCH] phys_page_find_alloc: Use correct initial region_offset.

2011-12-13 Thread Alex_Rozenman
From: Alex Rozenman This fixes a common bug with initial region_offset value. Usually, the pages are re-assigned afterwards, so the bug has a very small effect on regular QEMU use flows. Signed-off-by: Alex Rozenman --- exec.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

Re: [Qemu-devel] [PATCH v3 00/14] ARM: Samsung Exynos4210-based boards support.

2011-12-13 Thread Peter Maydell
On 13 December 2011 10:37, Dmitry Solodkiy wrote: > Dear Peter, > >  Public Exynos4210 UM is available at   > http://www.samsung.com/global/system/business/semiconductor/product/2011/12/2/738994Pulbicmanual_Exynos4210_Ver1.pdf Thanks. It seems to be missing some info though -- for example you

Re: [Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-13 Thread Avi Kivity
On 12/12/2011 06:26 PM, Anthony Liguori wrote: > > Nope, it has to be dropped. > > Commands using CMD_ASYNC may fail in arbitrary ways because of the way > error reporting is done. This is an unfixable problem until we > eliminate all uses of qerror_report(). > Why don't we eliminate all uses for

Re: [Qemu-devel] [SeaBIOS] [BUG] [Seabios] PCI 64bit BARs on Win2008 - unable to start the device. (ACPI lacks the _DSM method)

2011-12-13 Thread Gerd Hoffmann
Hi, >> Two possible ideas: >> 1. Pass the value in from qemu > Do you mean to create the 64bit region dynamically? I've tried to obtain > RAM size somehow inside DSL code, but the ACPI spec doesn't tell how to > do that. There is a global variable IIRC. You could also check the e820 table pass

Re: [Qemu-devel] [PATCH v3 07/14] hw/arm_boot.c: Add new secondary CPU bootloader.

2011-12-13 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > Secondary CPU bootloader enables interrupt and issues wfi until start address > is written to system controller. The position where to find this start > address is hardcoded to 0x1030. This commit adds new bootloader for > secondary CPU which

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-13 Thread Stefan Hajnoczi
On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori wrote: > I choose the serial device to showcase what we'll eventually be able to do. >  The three relevant files are: > > https://github.com/aliguori/qemu/blob/qom-next/hw/isa-serial.c > > https://github.com/aliguori/qemu/blob/qom-next/hw/mm-serial.

[Qemu-devel] early_savevm (was: [PATCH V2 5/5] vga-cirrus: Workaround during restore when using Xen.)

2011-12-13 Thread Stefano Stabellini
On Mon, 12 Dec 2011, Stefano Stabellini wrote: > > Really, I think this is something inherently incompatible with the > > current memory API. If Xen has this unfixable special "requirement" > > (it's rather a design issue IMHO), adjust the API and adapt all devices. > > Hot-fixing only a single one

Re: [Qemu-devel] [PATCH v3 10/14] hw/lan9118: Add basic 16-bit mode support.

2011-12-13 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > > Signed-off-by: Evgeny Voevodin > --- >  hw/devices.h |    2 +- >  hw/lan9118.c |  115 > ++ >  2 files changed, 109 insertions(+), 8 deletions(-) > > diff --git a/hw/devices.h b/hw/device

Re: [Qemu-devel] [PATCH v3 11/14] hw/exynos4210.c: Add LAN support for SMDKC210.

2011-12-13 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to > be enough. > > Signed-off-by: Evgeny Voevodin > --- >  hw/exynos4210.c |   18 ++ >  1 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/hw/exynos421

Re: [Qemu-devel] [PATCH] build: Cleanup qga make output

2011-12-13 Thread Luiz Capitulino
On Mon, 12 Dec 2011 17:38:36 -0600 Michael Roth wrote: > On 12/12/2011 05:03 PM, Anthony Liguori wrote: > > On 12/07/2011 10:33 AM, Adam Litke wrote: > >> Currently the make variable qapi-dir refers to the qapi-generated > >> directory in > >> absolute terms. This causes the harmless but ugly mak

Re: [Qemu-devel] [PATCH] migration.h: remove incoming_expected declarations

2011-12-13 Thread Luiz Capitulino
On Tue, 13 Dec 2011 12:40:51 +0900 Isaku Yamahata wrote: > The variable is deleted by 1bcef683bf840a928d633755031ac572d5fdb851 > So remove its declaration. > > Cc: Luiz Capitulino > Signed-off-by: Isaku Yamahata Acked-by: Luiz Capitulino > --- > migration.h |2 -- > 1 files changed, 0 i

Re: [Qemu-devel] early_savevm

2011-12-13 Thread Jan Kiszka
On 2011-12-13 12:55, Stefano Stabellini wrote: > On Mon, 12 Dec 2011, Stefano Stabellini wrote: >>> Really, I think this is something inherently incompatible with the >>> current memory API. If Xen has this unfixable special "requirement" >>> (it's rather a design issue IMHO), adjust the API and ad

[Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-13 Thread Paolo Bonzini
Running with mismatched host and guest logical block sizes is going to become more important as 4k-sector disks become more widespread. This is because we need a 512 byte disk to boot from. Mismatched block sizes have two problems: 1) with cache=none or with non-raw protocols, you just cannot do

[Qemu-devel] [PATCH 01/17] block: do not rely on open_flags for bdrv_is_snapshot

2011-12-13 Thread Paolo Bonzini
The BDRV_O_SNAPSHOT flag is stored in open_flags but not passed to bdrv_open. This makes the usage of bs->open_flags wrong in bdrv_snapshot_goto. (Instead, bdrv_commit uses the backing file's open_flags and those flags never include any of BDRV_O_SNAPSHOT, BDRV_O_NO_BACKING or BDRV_O_RDWR). We w

[Qemu-devel] [PATCH 13/17] block: allow waiting at arbitrary granularity

2011-12-13 Thread Paolo Bonzini
When emulating small logical block sizes, the only overlaps that matter are at host block size granularity, not cluster. Make wait_for_overlapping_requests more flexible in this respect, too. Signed-off-by: Paolo Bonzini --- block.c | 43 --- 1 files cha

[Qemu-devel] [PATCH 14/17] block: protect against "torn reads" for guest_block_size > host_block_size

2011-12-13 Thread Paolo Bonzini
When the guest sees a higher alignment than the host, writes may be done in multiple steps. So, reads have to be serialized against overlapping writes, so that the writes look atomic to the guest. This is true even when O_DIRECT is not in use. Signed-off-by: Paolo Bonzini --- block.c | 22 +++

[Qemu-devel] [PATCH 15/17] block: align and serialize I/O when guest_block_size < host_block_size

2011-12-13 Thread Paolo Bonzini
When the guest sees a lower alignment than the host, and O_DIRECT is in place, I/O might not span an integer number of host sectors. If this is the case, add a few sectors at the beginning and the end. When reading, copy interesting data from there to the guest buffer. When writing, merge data fro

Re: [Qemu-devel] [PATCH V13 0/7] Qemu Trusted Platform Module (TPM) integration

2011-12-13 Thread Stefan Berger
On 12/13/2011 12:45 AM, Stefan Weil wrote: Am 12.12.2011 20:12, schrieb Stefan Berger: The following series of patches adds TPM (Trusted Platform Module) support to Qemu. An emulator for the TIS (TPM Interface Spec) interface is added that provides the basis for accessing a 'backend' implementi

[Qemu-devel] [PATCH] fix win32 build

2011-12-13 Thread Paolo Bonzini
On Windows, cpus.c needs access to the hThread. Add a Windows-specific function to grab it. This requires changing the CPU threads to joinable. There is no substantial change because the threads run in an infinite loop. Signed-off-by: Paolo Bonzini --- cpu-defs.h |9 + cp

Re: [Qemu-devel] [PATCH 0/4] tcg: Add debug facilities for TCGv

2011-12-13 Thread Andreas Färber
Am 12.12.2011 16:58, schrieb Paul Brook: >>> Trying to make a 32-bit target "64-bit safe" without actually >>> implementing the 64-bit target is a complete waste of time. >> >> That's where we disagree. I rather do things right from the start than >> leaving the cleanup work to someone else later o

Re: [Qemu-devel] [PATCH V13 6/7] Introduce --enable-tpm-passthrough configure option

2011-12-13 Thread Stefan Berger
On 12/12/2011 11:51 PM, Paul Brook wrote: +tpm_passthrough="no" Same as before, please probe for existence. We would be probing for /dev/tpm0. Is that really what we want that this driver only gets compiled if /dev/tpm0 is (currently) available? If what you say is true then this code should al

[Qemu-devel] [PATCH 10/17] raw: probe host_block_size

2011-12-13 Thread Paolo Bonzini
Use ioctls if possible, else see what alignment it takes for O_DIRECT to succeed. Signed-off-by: Paolo Bonzini --- block/raw-posix.c | 72 block/raw-win32.c | 42 +++ 2 files changed, 97 insertions(+), 17 deleti

Re: [Qemu-devel] (no subject)

2011-12-13 Thread Erik Lotspeich
On Tue, Dec 13, 2011 at 2:06 AM, Stefan Hajnoczi wrote: > Please post your QEMU command-line (you can find it with "ps aux | grep > qemu"). > > If you are running through libvirt/virsh/virt-manager there may be > permission requirements since the guest can be set to run as an > unprivileged user w

Re: [Qemu-devel] [RFC][PATCT 0/5 v2] dump memory when host pci device is used by guest

2011-12-13 Thread Jan Kiszka
On 2011-12-09 08:57, Wen Congyang wrote: > 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 > > We have determined to introduce a new command dump to dump memor

[Qemu-devel] [PATCH 02/17] block: store actual flags in bs->open_flags

2011-12-13 Thread Paolo Bonzini
The passed flags are changed slightly before passing them to bdrv_open. Store the same flags in bs->open_flags, so that they are used correctly in bdrv_snapshot_goto. In addition, this way we will be able to query them and get back consistent values. Signed-off-by: Paolo Bonzini --- block.c |

[Qemu-devel] [PATCH 11/17] iscsi: save host block size

2011-12-13 Thread Paolo Bonzini
The iSCSI backend already gets the block size from the READ CAPACITY command it sends. Save it so that the generic block layer gets it too. Signed-off-by: Paolo Bonzini --- block/iscsi.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index

Re: [Qemu-devel] [RFC][PATCH 1/5 v2] Add API to create memory mapping list

2011-12-13 Thread Jan Kiszka
On 2011-12-09 09:06, Wen Congyang wrote: > The memory mapping list stores virtual address and physical address mapping. > The folloing patch will use this information to create PT_LOAD in the vmcore. > > Signed-off-by: Wen Congyang > --- > Makefile.target |1 + > memory_mapping.c | 130 >

[Qemu-devel] [PATCH 09/17] block: add host_block_size

2011-12-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- block.c |4 +++- block_int.h |3 +++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index 9e8ffb8..91622db 100644 --- a/block.c +++ b/block.c @@ -588,6 +588,7 @@ static int bdrv_open_common(BlockDriverState *bs, const

[Qemu-devel] [PATCH 08/17] block: rename buffer_alignment to guest_block_size

2011-12-13 Thread Paolo Bonzini
The alignment field is now set to the value that is promised by the guest, rather than required by the host. The next patches will make QEMU aware of the host-provided values, so make this clear. Signed-off-by: Paolo Bonzini --- block.c | 10 +- block.h |2 +-

Re: [Qemu-devel] [PATCH 0/4] tcg: Add debug facilities for TCGv

2011-12-13 Thread Andreas Färber
Am 12.12.2011 16:58, schrieb Paul Brook: >> For me the most annoying issue was that tcg_gen_qemu_{ld,st}* needs TCGv. > > You mean the value transferred is always TCGv sized, so ld32u requires an > additional truncation before doing 32-bit arithmetic? Fixing that is > completely independent of

[Qemu-devel] [PATCH 04/17] block: non-raw protocols never cache

2011-12-13 Thread Paolo Bonzini
Non-raw protocols never cache their data. Make this visible by setting BDRV_O_NOCACHE in the open_flags. It will be used to handle block sizes smaller than the backend's block size. Signed-off-by: Paolo Bonzini --- block/curl.c |1 + block/iscsi.c|1 + block/nbd.c |1 +

[Qemu-devel] [PATCH 06/17] block: move flag bits together

2011-12-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- block_int.h | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/block_int.h b/block_int.h index f846f90..9324866 100644 --- a/block_int.h +++ b/block_int.h @@ -192,15 +192,18 @@ struct BlockDriver { struct BlockDriverState {

[Qemu-devel] [PATCH 17/17] qemu-io: add blocksize argument to open

2011-12-13 Thread Paolo Bonzini
Make it possible to test the alignment code using qemu-io. Signed-off-by: Paolo Bonzini --- qemu-io.c | 33 - 1 files changed, 28 insertions(+), 5 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index ffa62fb..f866eb3 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -

Re: [Qemu-devel] [RFC] Plan for moving forward with QOM

2011-12-13 Thread Anthony Liguori
On 12/12/2011 10:47 PM, Paul Brook wrote: The full set of devices names and properties used in this example are below: Type: I440FX Is-a: Device Implements: PciBus Name: i440fx Properties: piix3: Composition slot[1.0]: Backlink Type: PIIX3 Isa-a: PciDevice Implem

[Qemu-devel] [PATCH 03/17] block: pass protocol flags up to the format

2011-12-13 Thread Paolo Bonzini
In the next patches, the protocols will modify bs->open_flags to signify that they cannot support the exact requested feature set. Pass the modified flags to the format. Signed-off-by: Paolo Bonzini --- block.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/block.c b

[Qemu-devel] [PATCH 05/17] block: remove enable_write_cache

2011-12-13 Thread Paolo Bonzini
This duplicates a bit in open_flags, we do not need it. Signed-off-by: Paolo Bonzini --- block.c |3 +-- block_int.h |3 --- 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 6734e66..4cf441b 100644 --- a/block.c +++ b/block.c @@ -604,7 +604,6 @@

Re: [Qemu-devel] [PATCH v2 15/18] rtc: add a dynamic property for retrieving the date

2011-12-13 Thread Anthony Liguori
On 12/13/2011 03:27 AM, Kevin Wolf wrote: Am 09.12.2011 15:25, schrieb Anthony Liguori: On 12/09/2011 08:04 AM, Kevin Wolf wrote: Am 09.12.2011 14:08, schrieb Anthony Liguori: On 12/09/2011 05:26 AM, Kevin Wolf wrote: Am 02.12.2011 21:20, schrieb Anthony Liguori: This really shows the power

Re: [Qemu-devel] [PATCH v2 15/18] rtc: add a dynamic property for retrieving the date

2011-12-13 Thread Anthony Liguori
On 12/13/2011 03:48 AM, Gerd Hoffmann wrote: Hi, Now I understand that for dynamically created properties (like on your PCB) this is necessary and can't be avoided. For about 99% of the devices static definition of properties would be enough, though. So basically what I'm asking for is gett

[Qemu-devel] [PATCH 12/17] block: allow waiting only for overlapping writes

2011-12-13 Thread Paolo Bonzini
To implement mismatching block size, we will reuse the request tracking mechanism that is used for copy-on-read. However, waiting for overlapping reads is not needed to protect against "torn reads", so add a flag to wait_for_overlapping_requests. Signed-off-by: Paolo Bonzini --- block.c | 13

Re: [Qemu-devel] [PATCH V2] Fix parse of usb device description with multiple configurations

2011-12-13 Thread Gerd Hoffmann
On 12/13/11 02:22, m...@linux.vnet.ibm.com wrote: > When testing ipod on QEMU by He Jie Xu,qemu made a > assertion. > We found that the ipod with 2 configurations,and the usb-linux did not parse > the descriptor correctly. > The descr_len returned is the total length of the all configurations,not

Re: [Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-13 Thread Anthony Liguori
On 12/13/2011 03:03 AM, Alon Levy wrote: On Mon, Dec 12, 2011 at 11:53:28AM -0600, Anthony Liguori wrote: On 12/12/2011 11:22 AM, Alon Levy wrote: On Mon, Dec 12, 2011 at 10:24:53AM -0600, Anthony Liguori wrote: On 12/12/2011 10:00 AM, Alon Levy wrote: On Mon, Dec 12, 2011 at 03:23:35PM +

Re: [Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-13 Thread Anthony Liguori
On 12/13/2011 05:06 AM, Avi Kivity wrote: On 12/12/2011 06:26 PM, Anthony Liguori wrote: Nope, it has to be dropped. Commands using CMD_ASYNC may fail in arbitrary ways because of the way error reporting is done. This is an unfixable problem until we eliminate all uses of qerror_report().

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-13 Thread Anthony Liguori
On 12/13/2011 05:35 AM, Stefan Hajnoczi wrote: On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori wrote: I choose the serial device to showcase what we'll eventually be able to do. The three relevant files are: https://github.com/aliguori/qemu/blob/qom-next/hw/isa-serial.c https://github.com/

Re: [Qemu-devel] [PATCH v2 15/18] rtc: add a dynamic property for retrieving the date

2011-12-13 Thread Kevin Wolf
Am 13.12.2011 14:31, schrieb Anthony Liguori: > On 12/13/2011 03:27 AM, Kevin Wolf wrote: >> Am 09.12.2011 15:25, schrieb Anthony Liguori: >>> On 12/09/2011 08:04 AM, Kevin Wolf wrote: Am 09.12.2011 14:08, schrieb Anthony Liguori: > On 12/09/2011 05:26 AM, Kevin Wolf wrote: >> Am 02.12

[Qemu-devel] [PATCH 07/17] raw: remove the aligned_buf

2011-12-13 Thread Paolo Bonzini
This has been dead since the removal of synchronous I/O callbacks. Signed-off-by: Paolo Bonzini --- block/raw-posix.c | 25 +++-- 1 files changed, 3 insertions(+), 22 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index 2ee5d69..007d1d3 100644 --- a/block/

Re: [Qemu-devel] [PATCH V13 6/7] Introduce --enable-tpm-passthrough configure option

2011-12-13 Thread Michael S. Tsirkin
On Tue, Dec 13, 2011 at 07:51:17AM -0500, Stefan Berger wrote: > On 12/12/2011 11:51 PM, Paul Brook wrote: > +tpm_passthrough="no" > >>>Same as before, please probe for existence. > >>We would be probing for /dev/tpm0. Is that really what we want that this > >>driver only gets compiled if /dev/

[Qemu-devel] [PATCH 16/17] block: default physical block size to host block size

2011-12-13 Thread Paolo Bonzini
Hopefully, this will help operating systems and they will make less misaligned I/O operations. Or on Linux, at least fdisk will tell the user that they should try and align partitions. Signed-off-by: Paolo Bonzini --- block.c | 17 + block.h | 15 ++- 2 files cha

[Qemu-devel] [PATCH v3 0/9] block: generic image streaming

2011-12-13 Thread Stefan Hajnoczi
This series adds the 'block_stream' command which copies the contents of a backing file into the image file while the VM is running. The series builds on copy-on-read and zero detection features which I sent out recently and I suggest grabbing my git tree to try it out without merging these depend

[Qemu-devel] [PATCH v3 1/9] coroutine: add co_sleep_ns() coroutine sleep function

2011-12-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- Makefile.objs |2 +- qemu-coroutine-sleep.c | 38 ++ qemu-coroutine.h |6 ++ 3 files changed, 45 insertions(+), 1 deletions(-) create mode 100644 qemu-coroutine-sleep.c diff --git a/Makefile.objs

[Qemu-devel] [PATCH v3 8/9] qmp: add query-block-jobs

2011-12-13 Thread Stefan Hajnoczi
Add query-block-jobs, which shows the progress of ongoing block device operations. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 33 + hmp.c| 40 hmp.h|1 + monitor.c|7 ++

[Qemu-devel] [PATCH v3 6/9] qmp: add block_job_set_speed command

2011-12-13 Thread Stefan Hajnoczi
Add block_job_set_speed, which sets the maximum speed for a background block operation. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 25 + hmp-commands.hx | 14 ++ hmp.c| 14 ++ hmp.h|1 + qapi-schema.jso

[Qemu-devel] [PATCH v3 5/9] qmp: add block_stream command

2011-12-13 Thread Stefan Hajnoczi
Add the block_stream command, which starts copy backing file contents into the image file. Later patches add control over the background copy speed, cancelation, and querying running streaming operations. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 68 +++

[Qemu-devel] [PATCH v3 4/9] block: rate-limit streaming operations

2011-12-13 Thread Stefan Hajnoczi
This patch implements rate-limiting for image streaming. If we've exceeded the bandwidth quota for a 100 ms time slice we sleep the coroutine until the next slice begins. Signed-off-by: Stefan Hajnoczi --- block/stream.c | 65 ++- 1 files ch

[Qemu-devel] [PATCH v3 3/9] block: add image streaming block job

2011-12-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- Makefile.objs |1 + block/stream.c | 121 block_int.h|3 + trace-events |4 ++ 4 files changed, 129 insertions(+), 0 deletions(-) create mode 100644 block/stream.c diff --git a/Makefi

[Qemu-devel] [PATCH v3 2/9] block: add BlockJob interface for long-running operations

2011-12-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- block_int.h | 83 +++ 1 files changed, 83 insertions(+), 0 deletions(-) diff --git a/block_int.h b/block_int.h index 89a860c..bc397c4 100644 --- a/block_int.h +++ b/block_int.h @@ -69,6 +69,36 @@ typedef

[Qemu-devel] [PATCH v3 7/9] qmp: add block_job_cancel command

2011-12-13 Thread Stefan Hajnoczi
Add block_job_cancel, which stops an active block streaming operation. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 19 ++- hmp-commands.hx | 14 ++ hmp.c| 13 + hmp.h|1 + monitor.c|3 +++ monitor.h

Re: [Qemu-devel] early_savevm

2011-12-13 Thread Stefano Stabellini
On Tue, 13 Dec 2011, Jan Kiszka wrote: > On 2011-12-13 12:55, Stefano Stabellini wrote: > > On Mon, 12 Dec 2011, Stefano Stabellini wrote: > >>> Really, I think this is something inherently incompatible with the > >>> current memory API. If Xen has this unfixable special "requirement" > >>> (it's r

Re: [Qemu-devel] [PATCH v3 0/9] block: generic image streaming

2011-12-13 Thread Yibin Shen
hi stefan: all these patches looks good to me except one thing, when I run a "qemu-img commit" command, seems entire image(from start to end sector) will be write to the backing file, I think what we really need is to commit only dirty sectors. also maybe we can use a writeback mechanism alternaiv

[Qemu-devel] [PATCH v3 9/9] test: add image streaming test cases

2011-12-13 Thread Stefan Hajnoczi
python test-stream.py Signed-off-by: Stefan Hajnoczi --- test-stream.py | 208 1 files changed, 208 insertions(+), 0 deletions(-) create mode 100644 test-stream.py diff --git a/test-stream.py b/test-stream.py new file mode 100644 index

Re: [Qemu-devel] [PATCH v3 3/9] block: add image streaming block job

2011-12-13 Thread Marcelo Tosatti
On Tue, Dec 13, 2011 at 01:52:25PM +, Stefan Hajnoczi wrote: > Signed-off-by: Stefan Hajnoczi > --- > Makefile.objs |1 + > block/stream.c | 121 > > block_int.h|3 + > trace-events |4 ++ > 4 files changed, 129 ins

[Qemu-devel] [Bug 882997] Lspci.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "Lspci.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631363/+files/Lspci.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997 Title: 64-bi

[Qemu-devel] [Bug 882997] ProcEnviron.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "ProcEnviron.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631366/+files/ProcEnviron.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997 T

[Qemu-devel] [Bug 882997] UdevDb.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "UdevDb.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631370/+files/UdevDb.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997 Title: 64-

[Qemu-devel] [Bug 882997] RelatedPackageVersions.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "RelatedPackageVersions.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631369/+files/RelatedPackageVersions.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launch

[Qemu-devel] [Bug 882997] ProcModules.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "ProcModules.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631368/+files/ProcModules.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997 T

[Qemu-devel] [Bug 882997] ProcCpuinfo.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "ProcCpuinfo.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631365/+files/ProcCpuinfo.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997 T

[Qemu-devel] [Bug 882997] CurrentDmesg.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "CurrentDmesg.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631361/+files/CurrentDmesg.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997

[Qemu-devel] [PATCH 1/2] hw/9pfs: replace iovec manipulation with QEMUIOVector

2011-12-13 Thread Aneesh Kumar K.V
From: Stefan Hajnoczi The v9fs_read() and v9fs_write() functions rely on iovec[] manipulation code should be replaced with QEMUIOVector to avoid duplicating code. In the future it may be possible to make the code even more concise by using QEMUIOVector consistently across virtio and 9pfs. The "v

[Qemu-devel] [PATCH 2/2] hw/9pfs: Use the correct signed type for different variables

2011-12-13 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h |2 +- hw/9pfs/virtio-9p.c | 21 +++-- hw/9pfs/virtio-9p.h |2 +- trace-events|8 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/fsdev/file-op-9p.h b

[Qemu-devel] [Bug 882997] Dependencies.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "Dependencies.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631362/+files/Dependencies.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997

[Qemu-devel] [Bug 882997] ProcInterrupts.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "ProcInterrupts.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631367/+files/ProcInterrupts.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882

Re: [Qemu-devel] [PATCH] build: Cleanup qga make output

2011-12-13 Thread Adam Litke
On Tue, Dec 13, 2011 at 10:23:18AM -0200, Luiz Capitulino wrote: > On Mon, 12 Dec 2011 17:38:36 -0600 > Michael Roth wrote: > > > On 12/12/2011 05:03 PM, Anthony Liguori wrote: > > > On 12/07/2011 10:33 AM, Adam Litke wrote: > > >> Currently the make variable qapi-dir refers to the qapi-generated

Re: [Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-13 Thread Avi Kivity
On 12/13/2011 03:36 PM, Anthony Liguori wrote: > On 12/13/2011 05:06 AM, Avi Kivity wrote: >> On 12/12/2011 06:26 PM, Anthony Liguori wrote: >>> >>> Nope, it has to be dropped. >>> >>> Commands using CMD_ASYNC may fail in arbitrary ways because of the way >>> error reporting is done. This is an un

[Qemu-devel] [Bug 882997] UdevLog.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "UdevLog.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631371/+files/UdevLog.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997 Title: 6

Re: [Qemu-devel] (no subject)

2011-12-13 Thread Stefan Hajnoczi
On Tue, Dec 13, 2011 at 12:55 PM, Erik Lotspeich wrote: > On Tue, Dec 13, 2011 at 2:06 AM, Stefan Hajnoczi wrote: >> Please post your QEMU command-line (you can find it with "ps aux | grep >> qemu"). >> >> If you are running through libvirt/virsh/virt-manager there may be >> permission requiremen

Re: [Qemu-devel] [PATCH v3 13/14] ARM: exynos4210: added SD/MMC host controller

2011-12-13 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > --- /dev/null > +++ b/hw/exynos4210_sdhc.c > @@ -0,0 +1,1666 @@ > +/* > + * Samsung exynos4210 SD/MMC host controller > + * (SD host controller specification ver. 2.0 compliant) Is there anything in this implementation which is exynos specific,

[Qemu-devel] [Bug 882997] Re: 64-bit linux guests fail to start on oneiric running 3.0 kernel

2011-12-13 Thread Klaus Rennecke
apport information ** Description changed: Host: Ubuntu 11.10 kernel vmlinuz-3.0.0-12-generic or vmlinuz-3.0.0-12-server on AMD Athlon(tm) II P360 Dual-Core Guests: SLES 10 or 11, all 64 bit 32 bit windows guest starts fine. All 64 bit linux guests loop during boot, when GRUB is start

[Qemu-devel] [Bug 882997] Lsusb.txt

2011-12-13 Thread Klaus Rennecke
apport information ** Attachment added: "Lsusb.txt" https://bugs.launchpad.net/bugs/882997/+attachment/2631364/+files/Lsusb.txt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882997 Title: 64-bi

Re: [Qemu-devel] [RFC] QEMU Object Model status/merge plan

2011-12-13 Thread Kevin Wolf
Am 13.12.2011 14:43, schrieb Anthony Liguori: > On 12/13/2011 05:35 AM, Stefan Hajnoczi wrote: >> On Mon, Dec 12, 2011 at 7:36 PM, Anthony Liguori >> wrote: >>> I choose the serial device to showcase what we'll eventually be able to do. >>> The three relevant files are: >>> >>> https://github.c

Re: [Qemu-devel] [PATCH v3 12/14] hw/sd.c, hw/sd.h: add receive ready query routine to SD/MMC API

2011-12-13 Thread Peter Maydell
On 12 December 2011 06:43, Evgeny Voevodin wrote: > From: Mitsyanko Igor > > Data transfer direction between host controller and SD/MMC card is selected by > host controller configuration registers, but whether we actually need or need > not perform data transfer depends on type of last issued co

Re: [Qemu-devel] [PATCH v3 0/9] block: generic image streaming

2011-12-13 Thread Stefan Hajnoczi
On Tue, Dec 13, 2011 at 2:12 PM, Yibin Shen wrote: > all these patches looks good to me except one thing, > when I run a "qemu-img commit" command, > seems entire image(from start to end sector) will be write to the backing > file, > I think what we really need is to commit only dirty sectors. >

Re: [Qemu-devel] [PATCH v3 3/9] block: add image streaming block job

2011-12-13 Thread Stefan Hajnoczi
On Tue, Dec 13, 2011 at 2:14 PM, Marcelo Tosatti wrote: > On Tue, Dec 13, 2011 at 01:52:25PM +, Stefan Hajnoczi wrote: >> Signed-off-by: Stefan Hajnoczi >> --- >>  Makefile.objs  |    1 + >>  block/stream.c |  121 >> >>  block_int.h  

Re: [Qemu-devel] [PATCH 1/2] hw/9pfs: replace iovec manipulation with QEMUIOVector

2011-12-13 Thread Stefan Hajnoczi
On Tue, Dec 13, 2011 at 2:37 PM, Aneesh Kumar K.V wrote: > This change avoids a possible iovec[] buffer overflow when indirect > vrings are used since the number of vectors is now limited by the > underlying VirtQueueElement and cannot be out-of-bounds. Please consider both of these patches for s

Re: [Qemu-devel] (no subject)

2011-12-13 Thread Erik Lotspeich
Thank you - I overlooked the obvious. Regards, Erik On Tue, Dec 13, 2011 at 8:57 AM, Stefan Hajnoczi wrote: > On Tue, Dec 13, 2011 at 12:55 PM, Erik Lotspeich > wrote: >> On Tue, Dec 13, 2011 at 2:06 AM, Stefan Hajnoczi wrote: >>> Please post your QEMU command-line (you can find it with "ps a

Re: [Qemu-devel] [PATCH] build: Cleanup qga make output

2011-12-13 Thread Michael Roth
On 12/13/2011 08:33 AM, Adam Litke wrote: On Tue, Dec 13, 2011 at 10:23:18AM -0200, Luiz Capitulino wrote: On Mon, 12 Dec 2011 17:38:36 -0600 Michael Roth wrote: On 12/12/2011 05:03 PM, Anthony Liguori wrote: On 12/07/2011 10:33 AM, Adam Litke wrote: Currently the make variable qapi-dir ref

[Qemu-devel] KVM call minutes December 13th

2011-12-13 Thread Juan Quintela
Hi - monitor command async framework * how to merge async command? - merge all QAPI (will take until the end of the release) - let things as they are - use a new corroutine for each async command, so the error can be maintained on each corrutine. * currently only one async c

Re: [Qemu-devel] (no subject)

2011-12-13 Thread Paolo Bonzini
On 12/13/2011 04:22 PM, Erik Lotspeich wrote: Thank you - I overlooked the obvious. Actually it may be a distro bug, I suggest you report it there. Paolo

  1   2   >