Re: [Qemu-devel] Boot order problem

2011-07-23 Thread Gleb Natapov
On Fri, Jul 22, 2011 at 09:51:16AM +0900, Minoru Usui wrote: > Hi, everyone > > I'm in trouble about boot order of VM. > If anyone know cause of this problem, please let me know. > The cause of the "problem" is the design. booindex and -boot only modifies the order in which bios will search for b

Re: [Qemu-devel] [PATCH 2/3] slirp: fix warning on mingw32

2011-07-23 Thread Stefan Weil
Am 24.07.2011 00:23, schrieb Anthony Liguori: On 07/23/2011 04:25 PM, Blue Swirl wrote: Avoid this warning: CCslirp/ip_icmp.o /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive': /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror

Re: [Qemu-devel] QEMU 0.15.0-rc0, stable-0.15, and QEMU 1.0

2011-07-23 Thread Bruce Rogers
>>> On 7/23/2011 at 11:15 AM, Anthony Liguori wrote: > Hi, > > I've forked off the stable branch and tagged qemu-0.15.0-rc0 in the > master repository. Please begin explicitly marking patches meant for > stable as [STABLE] and CC Justin. > > The stable tree for this release is located at: >

Re: [Qemu-devel] [PATCH v4] hw/pc: Support system flash memory with -pflash parameter

2011-07-23 Thread Anthony Liguori
On 07/23/2011 07:18 PM, Jordan Justen wrote: In terms of other flash devices, I don't think it's that simple. Flash is tied to the mobo layout so I don't think index> 0 really makes sense unless you allow a specific mapping address. I doubt that's terribly useful. I think VM's have a differe

Re: [Qemu-devel] [PATCH v4] hw/pc: Support system flash memory with -pflash parameter

2011-07-23 Thread Jordan Justen
On Sat, Jul 23, 2011 at 15:26, Anthony Liguori wrote: > On 07/23/2011 05:06 PM, Jordan Justen wrote: >> >> On Sat, Jul 23, 2011 at 14:25, Anthony Liguori >>  wrote: >>> >>> On 07/23/2011 03:19 PM, Jordan Justen wrote: On Sat, Jul 23, 2011 at 08:51, Anthony Liguori  wrote: >

[Qemu-devel] [PATCH] guest agent: add --enable-guest-agent config option

2011-07-23 Thread Michael Roth
QAPI will require glib/python, but for now the guest agent is the only user. For now, make these dependencies an explicit guest agent one, and gives users the option to disable it if need be. Once QAPI is adopted in core QEMU code, we would basically revert this patch. Signed-off-by: Michael Roth

[Qemu-devel] [PATCH] qapi: check for python, allow path to be specified

2011-07-23 Thread Michael Roth
QAPI requires python to generate code. Check for python during configuration and allow python to be specified manually. Signed-off-by: Michael Roth --- Makefile | 12 ++-- configure | 13 + 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefi

Re: [Qemu-devel] [PATCH 2/2] guest-agent: only enable FSFREEZE when it's supported by the kernel

2011-07-23 Thread Michael Roth
On 07/23/2011 04:26 PM, Anthony Liguori wrote: Signed-off-by: Anthony Liguori --- qga/guest-agent-commands.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c index 624972e..30c4068 100644 --- a/qga/guest

Re: [Qemu-devel] [PATCH 1/2] qemu-ga: remove dependency on gio and gthread

2011-07-23 Thread Michael Roth
On 07/23/2011 04:26 PM, Anthony Liguori wrote: As far as I can tell, there isn't a dependency on gthread. Also, the only use of gio was to enable GSocket to accept a unix domain socket. Since GSocket isn't available on OpenSuSE 11.1, let's just remove that dependency. Signed-off-by: Anthony Li

[Qemu-devel] [PATCH] qemu-ga: remove dependency on gio and gthread

2011-07-23 Thread Michael Roth
From: Anthony Liguori As far as I can tell, there isn't a dependency on gthread. Also, the only use of gio was to enable GSocket to accept a unix domain socket. Since GSocket isn't available on OpenSuSE 11.1, let's just remove that dependency. Signed-off-by: Anthony Liguori --- configure |

Re: [Qemu-devel] [PATCH v4] hw/pc: Support system flash memory with -pflash parameter

2011-07-23 Thread Anthony Liguori
On 07/23/2011 05:06 PM, Jordan Justen wrote: On Sat, Jul 23, 2011 at 14:25, Anthony Liguori wrote: On 07/23/2011 03:19 PM, Jordan Justen wrote: On Sat, Jul 23, 2011 at 08:51, Anthony Liguori wrote: On 07/08/2011 02:37 PM, Jordan Justen wrote: If -pflash is specified and -bios is specifi

Re: [Qemu-devel] [PATCH 2/3] slirp: fix warning on mingw32

2011-07-23 Thread Anthony Liguori
On 07/23/2011 04:25 PM, Blue Swirl wrote: Avoid this warning: CCslirp/ip_icmp.o /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive': /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror] /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../

Re: [Qemu-devel] [PATCH v4] hw/pc: Support system flash memory with -pflash parameter

2011-07-23 Thread Jordan Justen
On Sat, Jul 23, 2011 at 14:25, Anthony Liguori wrote: > On 07/23/2011 03:19 PM, Jordan Justen wrote: >> >> On Sat, Jul 23, 2011 at 08:51, Anthony Liguori >>  wrote: >>> >>> On 07/08/2011 02:37 PM, Jordan Justen wrote: If -pflash is specified and -bios is specified then pflash will b

[Qemu-devel] [PATCH 2/2] guest-agent: only enable FSFREEZE when it's supported by the kernel

2011-07-23 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- qga/guest-agent-commands.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c index 624972e..30c4068 100644 --- a/qga/guest-agent-commands.c +++ b/qga/guest-agent-commands.c

[Qemu-devel] [PATCH 3/3] simpletrace: suppress a warning from unused variable

2011-07-23 Thread Blue Swirl
Avoid this warning: CCsimpletrace.o /src/qemu/simpletrace.c: In function 'writeout_thread': /src/qemu/simpletrace.c:122:12: error: variable 'unused' set but not used [-Werror=unused-but-set-variable] by adding GCC attribute unused to the variable. Signed-off-by: Blue Swirl --- simpletrace.

[Qemu-devel] [PATCH 1/2] qemu-ga: remove dependency on gio and gthread

2011-07-23 Thread Anthony Liguori
As far as I can tell, there isn't a dependency on gthread. Also, the only use of gio was to enable GSocket to accept a unix domain socket. Since GSocket isn't available on OpenSuSE 11.1, let's just remove that dependency. Signed-off-by: Anthony Liguori --- configure |6 +++--- qemu-ga.c |

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Alexander Graf
On 23.07.2011, at 23:12, Anthony Liguori wrote: > On 07/23/2011 02:22 PM, Alexander Graf wrote: >> >>> We default off'd the I/O thread even after years we still don't have it >>> enabled. >>> >>> With respect to 0.15, this bit of code is totally isolated from everything >>> else. Worst case

[Qemu-devel] [PATCH 2/3] slirp: fix warning on mingw32

2011-07-23 Thread Blue Swirl
Avoid this warning: CCslirp/ip_icmp.o /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive': /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror] /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:

Re: [Qemu-devel] [PATCH v4] hw/pc: Support system flash memory with -pflash parameter

2011-07-23 Thread Anthony Liguori
On 07/23/2011 03:19 PM, Jordan Justen wrote: On Sat, Jul 23, 2011 at 08:51, Anthony Liguori wrote: On 07/08/2011 02:37 PM, Jordan Justen wrote: If -pflash is specified and -bios is specified then pflash will be mapped just below the system rom using hw/pflash_cfi01.c. If -pflash is specified

[Qemu-devel] [PATCH 1/3] Fix chrdev return value conversion

2011-07-23 Thread Blue Swirl
6e1db57b2ac9025c2443c665a0d9e78748637b26 didn't convert brlapi or win32 chrdevs, breaking build for those. Fix by converting the chrdevs. Signed-off-by: Blue Swirl --- hw/baum.h |2 +- qemu-char.c |7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/baum.h b/h

[Qemu-devel] [PATCH 0/3] build/warning fixes

2011-07-23 Thread Blue Swirl
Blue Swirl (3): Fix chrdev return value conversion slirp: fix warning on mingw32 simpletrace: suppress a warning from unused variable hw/baum.h |2 +- qemu-char.c |7 --- simpletrace.c |2 +- slirp/ip_icmp.c |2 +- 4 files changed, 7 insertions(+), 6 deletion

[Qemu-devel] [PATCH 2/4] xen: Fix xen_enabled().

2011-07-23 Thread Alexander Graf
From: Anthony PERARD Use the "host" CONFIG_ define instead of the "target" one. Signed-off-by: Anthony PERARD Acked-by: Paolo Bonzini Signed-off-by: Alexander Graf --- hw/xen.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xen.h b/hw/xen.h index e432705..43b95d

[Qemu-devel] [PATCH 3/4] xen: remove CONFIG_XEN_MAPCACHE

2011-07-23 Thread Alexander Graf
We were still exporting CONFIG_XEN_MAPCACHE, even though it's completely unused by now. Remove it. Signed-off-by: Alexander Graf --- configure |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 6911c3b..90fe09f 100755 --- a/configure +++ b/conf

[Qemu-devel] [PATCH 1/4] exec.c: Use ram_addr_t in cpu_physical_memory_rw(...).

2011-07-23 Thread Alexander Graf
From: Anthony PERARD As the variable pd and addr1 inside the function cpu_physical_memory_rw are mean to handle a RAM address, they should be of the ram_addr_t type instead of unsigned long. Signed-off-by: Anthony PERARD Acked-by: Paolo Bonzini Signed-off-by: Alexander Graf --- exec.c |4

[Qemu-devel] [PATCH 4/4] xen: make xen_enabled even more clever

2011-07-23 Thread Alexander Graf
When using xen_enabled() we're currently only checking if xen is enabled at all during the build. But what if you want to build multiple targets out of which only one can potentially run xen code? That means that for generic code we'll still have to fall back to the variable and potentially slow t

[Qemu-devel] [PULL 0.15 0/4] xen-stable patch queue 2011-07-22

2011-07-23 Thread Alexander Graf
Hi Anthony, This is my current patch queue for xen on 0.15. Please pull. Alex The following changes since commit b8095f24f24e50a7d4be33d8a79474aff3324295: Anthony Liguori (1): Bump version to reflect v0.15.0-rc0 are available in the git repository at: git://repo.or.cz/qemu/agraf.g

[Qemu-devel] [PATCH] guest-agent: only enable FSFREEZE when it's supported by the kernel

2011-07-23 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- qga/guest-agent-commands.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c index 624972e..30c4068 100644 --- a/qga/guest-agent-commands.c +++ b/qga/guest-agent-commands.c

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Anthony Liguori
On 07/23/2011 02:22 PM, Alexander Graf wrote: We default off'd the I/O thread even after years we still don't have it enabled. With respect to 0.15, this bit of code is totally isolated from everything else. Worst case scenario, we just disable it on platforms where it doesn't work. It pre

[Qemu-devel] [PATCH] qemu-ga: remove dependency on gio and gthread

2011-07-23 Thread Anthony Liguori
As far as I can tell, there isn't a dependency on gthread. Also, the only use of gio was to enable GSocket to accept a unix domain socket. Since GSocket isn't available on OpenSuSE 11.1, let's just remove that dependency. Signed-off-by: Anthony Liguori --- configure |6 +++--- qemu-ga.c |

[Qemu-devel] [PATCH 5/5] xen: make xen_enabled even more clever

2011-07-23 Thread Alexander Graf
When using xen_enabled() we're currently only checking if xen is enabled at all during the build. But what if you want to build multiple targets out of which only one can potentially run xen code? That means that for generic code we'll still have to fall back to the variable and potentially slow t

[Qemu-devel] [PATCH 2/5] xen: Fix xen_enabled().

2011-07-23 Thread Alexander Graf
From: Anthony PERARD Use the "host" CONFIG_ define instead of the "target" one. Signed-off-by: Anthony PERARD Acked-by: Paolo Bonzini Signed-off-by: Alexander Graf --- hw/xen.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xen.h b/hw/xen.h index e432705..43b95d

[Qemu-devel] [PATCH 1/5] xen: introduce xen_change_state_handler

2011-07-23 Thread Alexander Graf
From: Anthony PERARD Remove the call to xenstore_record_dm_state from xen_main_loop_prepare that is HVM specific. Add a new vm_change_state_handler shared between xen_pv and xen_hvm machines to record the VM state to xenstore. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Sig

[Qemu-devel] [PATCH 4/5] xen: remove CONFIG_XEN_MAPCACHE

2011-07-23 Thread Alexander Graf
We were still exporting CONFIG_XEN_MAPCACHE, even though it's completely unused by now. Remove it. Signed-off-by: Alexander Graf --- configure |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 6911c3b..90fe09f 100755 --- a/configure +++ b/conf

[Qemu-devel] [PULL 0/5] Xen patch queue 2011-07-23

2011-07-23 Thread Alexander Graf
Hi Anthony, This is a rebase of the last xen-next pull request, this time without the xen-mapcache build breakage fix, as that's been fixed meanwhile. Please pull. Alex The following changes since commit 1167bfd63d983eaa4816ee0edb185f98ff070d6d: Anthony Liguori (1): Open 1.0 developme

[Qemu-devel] [PATCH 3/5] exec.c: Use ram_addr_t in cpu_physical_memory_rw(...).

2011-07-23 Thread Alexander Graf
From: Anthony PERARD As the variable pd and addr1 inside the function cpu_physical_memory_rw are mean to handle a RAM address, they should be of the ram_addr_t type instead of unsigned long. Signed-off-by: Anthony PERARD Acked-by: Paolo Bonzini Signed-off-by: Alexander Graf --- exec.c |4

Re: [Qemu-devel] [PATCH v4] hw/pc: Support system flash memory with -pflash parameter

2011-07-23 Thread Jordan Justen
On Sat, Jul 23, 2011 at 08:51, Anthony Liguori wrote: > On 07/08/2011 02:37 PM, Jordan Justen wrote: >> >> If -pflash is specified and -bios is specified then pflash will >> be mapped just below the system rom using hw/pflash_cfi01.c. >> >> If -pflash is specified on the command line, but -bios is

[Qemu-devel] [PATCH 5/7] target-alpha: Implement WAIT IPR.

2011-07-23 Thread Richard Henderson
--- target-alpha/translate.c | 31 +-- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index c61906a..fddaff8 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -1617,9 +1617,10

[Qemu-devel] [PULL 0/7] Alpha system emulation, v7

2011-07-23 Thread Richard Henderson
Changes v6->v7 * Rebase against master, which now includes 2 patches from v6. The tree is available at git://repo.or.cz/qemu/rth.git axp-system-5 Please pull, review, or something. r~ Richard Henderson (7): Export the unassigned_mem read/write functions. pci: Export pci_to_cpu_add

[Qemu-devel] [PATCH 6/7] target-alpha: Implement HALT IPR.

2011-07-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.h|1 + target-alpha/op_helper.c | 10 ++ target-alpha/translate.c |5 + 3 files changed, 16 insertions(+), 0 deletions(-) diff --git a/target-alpha/helper.h b/target-alpha/helper.h index 2dec57e..c352c24 100644 --

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Alexander Graf
On 23.07.2011, at 21:23, Jes Sorensen wrote: > On 07/23/11 18:10, Anthony Liguori wrote: >> qga/guest-agent-commands.c: In function ‘qmp_guest_fsfreeze_freeze’: qga/guest-agent-commands.c:443: error: ‘FIFREEZE’ undeclared (first use in this function) qga/guest-agent-commands.

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Jes Sorensen
On 07/23/11 18:10, Anthony Liguori wrote: > >>> qga/guest-agent-commands.c: In function ‘qmp_guest_fsfreeze_freeze’: >>> qga/guest-agent-commands.c:443: error: ‘FIFREEZE’ undeclared (first >>> use in this function) >>> qga/guest-agent-commands.c:443: error: (Each undeclared identifier is >>> repor

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Alexander Graf
On 23.07.2011, at 21:14, Anthony Liguori wrote: > On 07/23/2011 01:34 PM, Alexander Graf wrote: >> >> On 23.07.2011, at 18:43, Michael Roth wrote: >> >>> On 07/23/2011 11:10 AM, Anthony Liguori wrote: On 07/23/2011 11:06 AM, Michael Roth wrote: > On 07/23/2011 05:07 AM, Alexander Graf

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Alexander Graf
On 23.07.2011, at 21:12, Anthony Liguori wrote: > On 07/23/2011 01:35 PM, Alexander Graf wrote: >> >> On 23.07.2011, at 18:49, Anthony Liguori wrote: >> >>> On 07/23/2011 11:43 AM, Michael Roth wrote: On 07/23/2011 11:10 AM, Anthony Liguori wrote: > On 07/23/2011 11:06 AM, Michael Roth

[Qemu-devel] [PATCH 4/7] target-alpha: Add CLIPPER emulation.

2011-07-23 Thread Richard Henderson
This is a DP264 variant, SMP capable, no unusual hardware present. The emulation does not currently include any PCI IOMMU code. Hopefully the generic support for that can be merged to HEAD soon. Signed-off-by: Richard Henderson --- Makefile.target |1 + default-configs/alp

[Qemu-devel] [PATCH 7/7] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-07-23 Thread Richard Henderson
The alarm is a fully general one-shot time comparator, which will be usable under Linux as a hrtimer source. It's much more flexible than the RTC source available on real hardware. The wall clock allows the guest access to the host timekeeping. Much like the KVM wall clock source for other guest

[Qemu-devel] [PATCH 3/7] target-alpha: Add custom PALcode image for CLIPPER emulation.

2011-07-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- .gitmodules |3 +++ Makefile|3 ++- configure |8 +++- pc-bios/README |3 +++ pc-bios/palcode-clipper | Bin 0 -> 185703 bytes roms/qemu-palcode |1 + 6 files changed, 16 inserti

[Qemu-devel] [PATCH 1/7] Export the unassigned_mem read/write functions.

2011-07-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- cpu-common.h |7 +++ exec.c | 12 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index 44b04b3..78e1bad 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -56,6 +56,13 @@ static inline void

[Qemu-devel] [PATCH 2/7] pci: Export pci_to_cpu_addr.

2011-07-23 Thread Richard Henderson
This is, more or less, the read accessor to pci_bus_set_mem_base as a write accessor. It will be needed for implementing sparse memory spaces for Alpha. Signed-off-by: Richard Henderson --- hw/pci.c |3 +-- hw/pci.h |1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Anthony Liguori
On 07/23/2011 01:34 PM, Alexander Graf wrote: On 23.07.2011, at 18:43, Michael Roth wrote: On 07/23/2011 11:10 AM, Anthony Liguori wrote: On 07/23/2011 11:06 AM, Michael Roth wrote: On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011, at 22:19, Michael Roth wrote: This is the act

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Anthony Liguori
On 07/23/2011 01:35 PM, Alexander Graf wrote: On 23.07.2011, at 18:49, Anthony Liguori wrote: On 07/23/2011 11:43 AM, Michael Roth wrote: On 07/23/2011 11:10 AM, Anthony Liguori wrote: On 07/23/2011 11:06 AM, Michael Roth wrote: On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011,

Re: [Qemu-devel] [PATCH V2] Add "tee" option to qemu char device

2011-07-23 Thread Anthony Liguori
On 07/23/2011 01:31 PM, Alexander Graf wrote: On 23.07.2011, at 17:23, Anthony Liguori wrote: On 07/14/2011 03:58 AM, Chunyan Liu wrote: Add "tee" backend to char device. It could be used as follows: -serial tee:filepath,pty -chardev tee,tee_fpath=path,tee_backend=pty,,path=path,,[m

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Alexander Graf
On 23.07.2011, at 18:49, Anthony Liguori wrote: > On 07/23/2011 11:43 AM, Michael Roth wrote: >> On 07/23/2011 11:10 AM, Anthony Liguori wrote: >>> On 07/23/2011 11:06 AM, Michael Roth wrote: On 07/23/2011 05:07 AM, Alexander Graf wrote: > > On 20.07.2011, at 22:19, Michael Roth wro

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Alexander Graf
On 23.07.2011, at 18:43, Michael Roth wrote: > On 07/23/2011 11:10 AM, Anthony Liguori wrote: >> On 07/23/2011 11:06 AM, Michael Roth wrote: >>> On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011, at 22:19, Michael Roth wrote: > This is the actual guest daemon, it li

Re: [Qemu-devel] [PATCH V2] Add "tee" option to qemu char device

2011-07-23 Thread Alexander Graf
On 23.07.2011, at 17:23, Anthony Liguori wrote: > On 07/14/2011 03:58 AM, Chunyan Liu wrote: >> Add "tee" backend to char device. It could be used as follows: >> -serial tee:filepath,pty >> -chardev tee,tee_fpath=path,tee_backend=pty,,path=path,,[mux=on|off] >> With "tee" option, "pty" ou

[Qemu-devel] QEMU 0.15.0-rc0, stable-0.15, and QEMU 1.0

2011-07-23 Thread Anthony Liguori
Hi, I've forked off the stable branch and tagged qemu-0.15.0-rc0 in the master repository. Please begin explicitly marking patches meant for stable as [STABLE] and CC Justin. The stable tree for this release is located at: git://git.qemu.org/qemu-stable-0.15.git That means the tree is now

[Qemu-devel] Question about debugging binary translator (TCG beckend) in system mode

2011-07-23 Thread Lyu Mitnick
Hello all, I have written my own TCG code generator (translate TCG to i386). It works well in user mode (pass every benchmark). However, there is something error in system mode: Host - x86-64, Configuration - --target-list=i386-softmmu --enable-debug --disable-kvm -

Re: [Qemu-devel] [PATCH resend] vl.c: Don't limit node count by smp count

2011-07-23 Thread Anthony Liguori
On 06/29/2011 10:29 PM, Sasha Levin wrote: [I've sent this patch couple of months ago and noticed it didn't make it's way in - so I'm sending it again] It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. Tested-by: Michael Roth Signed-off-by: Sash

Re: [Qemu-devel] [PATCH 0/4] A few cleanups of qdev users

2011-07-23 Thread Anthony Liguori
On 05/19/2011 06:37 AM, Markus Armbruster wrote: Markus Armbruster (4): usb-ccid: Drop unused CCIDCardInfo callback print() virtio-serial: Clean up virtser_bus_dev_print() output virtio-serial: Turn props any virtio-serial-bus device must have into bus props ide: Turn properties

Re: [Qemu-devel] [PATCH 0/2] iothread improvements for Mac OS X

2011-07-23 Thread Anthony Liguori
On 06/09/2011 06:10 AM, Paolo Bonzini wrote: These are two old patches that I never submitted because I didn't really think they were useful except as cleanups. Recently, however, Alex Graf mentioned some problems that Mac OS X has with iothread, and they sounded to me like they were related to

Re: [Qemu-devel] [PATCH] Correct spelling of licensed

2011-07-23 Thread Anthony Liguori
On 06/25/2011 09:21 PM, Matthew Fernandez wrote: Correct typos of "licenced" to "licensed". Signed-off-by: Matthew Fernandez Applied. Thanks. Regards, Anthony Liguori ... On 24 June 2011 00:42, Stefan Weil wrote: Am 23.06.2011 10:08, schrieb Matthew Fernandez: would you mind sendi

Re: [Qemu-devel] [PATCH v2 0/3] Let RTC follow backward jumps of host clock immediately

2011-07-23 Thread Anthony Liguori
On 06/20/2011 07:06 AM, Jan Kiszka wrote: Just noticed that this issue is still unfixed because my series was somehow forgotten. So I've rebased it over current master, refactored it to use the generic Notifier infrastructure and renamed it to "clock reset notifier" to avoid confusion with icount

Re: [Qemu-devel] [PATCH 1/3] Store VNC auth scheme per-client as well as per-server

2011-07-23 Thread Anthony Liguori
On 06/23/2011 07:31 AM, Daniel P. Berrange wrote: A future patch will introduce a situation where different clients may have different authentication schemes set. When a new client arrives, copy the 'auth' and 'subauth' fields from VncDisplay into the client's VncState, and use the latter in all

Re: [Qemu-devel] [PATCH] qemu-char: Print strerror message on failure

2011-07-23 Thread Anthony Liguori
On 06/01/2011 06:29 AM, Kevin Wolf wrote: The only way for chardev drivers to communicate an error was to return a NULL pointer, which resulted in an error message that said _that_ something went wrong, but not _why_. This patch changes the interface to return 0/-errno and updates qemu_chr_open_

Re: [Qemu-devel] [PATCH v2] Register Linux dyntick timer as per-thread signal

2011-07-23 Thread Anthony Liguori
On 06/17/2011 04:25 AM, Jan Kiszka wrote: Derived from kvm-tool patch http://thread.gmane.org/gmane.comp.emulators.kvm.devel/74309 Ingo Molnar pointed out that sending the timer signal to the whole process, just blocking it everywhere, is suboptimal with an increasing number of threads. QEMU is

Re: [Qemu-devel] [PATCH] do not reset no_shutdown after we shutdown the vm

2011-07-23 Thread Anthony Liguori
On 06/16/2011 09:25 PM, Wen Congyang wrote: Daniel P. Berrange sent a libvirt's patch to support reboots with the QEMU driver. He implements it in json model like this: 1. add -no-shutdown in the qemu's option: qemu -no-shutdown 2. shutdown the vm by monitor command system_powerdown 3. w

Re: [Qemu-devel] [PATCH, v2] vga: Fix type of lfb/map_addr/end.

2011-07-23 Thread Anthony Liguori
On 06/14/2011 02:53 PM, Richard Henderson wrote: These addresses have been passed through pci_to_cpu_addr, and thus need to be full target_phys_addr_t. Signed-off-by: Richard Henderson Cc: Jan Kiszka Applied. Thanks. Regards, Anthony Liguori --- V1->V2: lfb_addr/end also widene

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Anthony Liguori
On 07/23/2011 11:43 AM, Michael Roth wrote: On 07/23/2011 11:10 AM, Anthony Liguori wrote: On 07/23/2011 11:06 AM, Michael Roth wrote: On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011, at 22:19, Michael Roth wrote: This is the actual guest daemon, it listens for requests over a v

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Michael Roth
On 07/23/2011 11:10 AM, Anthony Liguori wrote: On 07/23/2011 11:06 AM, Michael Roth wrote: On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011, at 22:19, Michael Roth wrote: This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel a

Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory

2011-07-23 Thread Anthony Liguori
On 06/17/2011 05:11 AM, Christoph Egger wrote: Use mmap to allocate executable memory on NetBSD as well. From: Tobias Nygren Signed-off-by: Christoph Egger diff --git a/exec.c b/exec.c index 09928a3..1954a1c 100644 --- a/exec.c +++ b/exec.c @@ -520,7 +520,8 @@ static void code_gen_alloc(unsi

Re: [Qemu-devel] [PATCH] fix network interface tap backend

2011-07-23 Thread Anthony Liguori
On 06/17/2011 03:56 AM, Christoph Egger wrote: Fix network interface tap backend work on NetBSD. It uses an ioctl to get the tap name. From Manuel Bouyer Signed-off-by: Christoph Egger diff --git a/net/tap-bsd.c b/net/tap-bsd.c index 2f3efde..577aafe 100644 --- a/net/tap-bsd.c +++ b/net/tap

Re: [Qemu-devel] [PATCH] report serial devices created with -device in the PIIX4 config space

2011-07-23 Thread Anthony Liguori
On 07/15/2011 10:10 AM, Paolo Bonzini wrote: Serial and parallel devices created with -device are not reported in the PIIX4 configuration space, and are hence not picked up by the DSDT. This upsets Windows, which hides them altogether from the guest. To avoid this, check at the end of machine in

Re: [Qemu-devel] [PATCH] multiboot: Support commas in module parameters

2011-07-23 Thread Anthony Liguori
On 07/06/2011 03:03 AM, Adam Lackorzynski wrote: Support commas in the parameter list of multiboot modules as well as for the kernel command line, by using double commas (via get_opt_value()). Signed-off-by: Adam Lackorzynski Reviewed-by: Kevin Wolf Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Anthony Liguori
On 07/23/2011 11:06 AM, Michael Roth wrote: On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011, at 22:19, Michael Roth wrote: This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel and routes them through to dispatch routines, and

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Anthony Liguori
On 07/23/2011 11:06 AM, Michael Roth wrote: On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011, at 22:19, Michael Roth wrote: This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel and routes them through to dispatch routines, and

Re: [Qemu-devel] [PATCH] guest agent: qemu-ga daemon

2011-07-23 Thread Michael Roth
On 07/23/2011 05:07 AM, Alexander Graf wrote: On 20.07.2011, at 22:19, Michael Roth wrote: This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel and routes them through to dispatch routines, and writes the results back to the channel in a

Re: [Qemu-devel] [PATCH v4] hw/pc: Support system flash memory with -pflash parameter

2011-07-23 Thread Anthony Liguori
On 07/08/2011 02:37 PM, Jordan Justen wrote: If -pflash is specified and -bios is specified then pflash will be mapped just below the system rom using hw/pflash_cfi01.c. If -pflash is specified on the command line, but -bios is not specified, then 'bios.bin' will NOT be loaded, and instead the -

Re: [Qemu-devel] [PATCH] report serial devices created with -device in the PIIX4 config space

2011-07-23 Thread Anthony Liguori
On 07/15/2011 04:00 PM, Andreas Färber wrote: Am 15.07.2011 um 17:10 schrieb Paolo Bonzini: Serial and parallel devices created with -device are not reported in the PIIX4 configuration space, and are hence not picked up by the DSDT. This upsets Windows, which hides them altogether from the gues

Re: [Qemu-devel] [PATCH v6] showing a splash picture when start

2011-07-23 Thread Anthony Liguori
On 07/10/2011 05:09 AM, Wayne Xia wrote: Added options to let qemu transfer two configuration files to bios: "bootsplash.bmp" and "etc/boot-menu-wait", which could be specified by command -boot splash=P,splash-time=T P is jpg/bmp file name or an absolute path, T have a max value of 0xff

Re: [Qemu-devel] [PATCH 00/10] [RESEND] Various net and slirp fixes & enhancements

2011-07-23 Thread Anthony Liguori
On 07/20/2011 05:20 AM, Jan Kiszka wrote: Almost just a reposting of the previously sent series. No patch modified, but a nifty (IMO) new one: ping forwarding for slirp using the unprivileged ICMP sockets of Linux 3.0. See commit log for a simple how-to. CC: Gleb Natapov CC: Markus Armbruster CC

Re: [Qemu-devel] [PATCH] guest agent: use QERR_UNSUPPORTED for disabled RPCs

2011-07-23 Thread Anthony Liguori
On 07/22/2011 04:42 PM, Michael Roth wrote: Applied. Thanks. Regards, Anthony Liguori --- qga/guest-agent-commands.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c index e215bd3..624972e 100644 --- a/qg

Re: [Qemu-devel] [PATCH] .gitignore: ignore qemu-ga and qapi-generated

2011-07-23 Thread Anthony Liguori
On 07/23/2011 12:41 AM, Alexandre Raymond wrote: Add a new binary and generation directory to the gitignore file Signed-off-by: Alexandre Raymond Applied. Thanks. Regards, Anthony Liguori --- .gitignore |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignor

Re: [Qemu-devel] [RESEND][PATCH v3] Generalize -machine command line option

2011-07-23 Thread Anthony Liguori
On 07/23/2011 05:38 AM, Jan Kiszka wrote: From: Jan Kiszka -machine somehow suggests that it selects the machine, but it doesn't. Fix that before this command is set in stone. Actually, -machine should supersede -M and allow to introduce arbitrary per-machine options to the command line. That w

Re: [Qemu-devel] [PATCH V2] Add "tee" option to qemu char device

2011-07-23 Thread Anthony Liguori
On 07/14/2011 03:58 AM, Chunyan Liu wrote: Add "tee" backend to char device. It could be used as follows: -serial tee:filepath,pty -chardev tee,tee_fpath=path,tee_backend=pty,,path=path,,[mux=on|off] With "tee" option, "pty" output would be duplicated to filepath. Related thread: http:/

[Qemu-devel] [PATCH 05/28] PPC: Set MPIC IDE for IPI to 0

2011-07-23 Thread Alexander Graf
We use the IDE register with IPIs as a mask to keep track which processors have already acknowledged the respective interrupt. So we need to initialize it to 0 to make sure that it doesn't accidently fire an IPI on CPU0 when the first IPI is triggered. Reported-by: Elie Richa Signed-off-by: Alexa

[Qemu-devel] [PATCH 18/28] PPC: KVM: Add stubs for kvm helper functions

2011-07-23 Thread Alexander Graf
We have a bunch of helper functions that don't have any stubs for them in case we don't have CONFIG_KVM enabled. That didn't bite us so far, because gcc can optimize them out pretty well, but we should really provide them. Signed-off-by: Alexander Graf --- v1 -> v2: - use uint64_t for clock

[Qemu-devel] [PATCH 15/28] PPC: E500: Remove mpc8544_copy_soc_cell

2011-07-23 Thread Alexander Graf
We don't need mpc8544_copy_soc_cell anymore, since we're explicitly reading host values and writing guest values respectively. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 24 1 files changed, 0 insertions(+), 24 deletions(-) diff --git a/hw/ppce500_mpc8

[Qemu-devel] [PATCH 21/28] PPC: E500: Add PV spinning code

2011-07-23 Thread Alexander Graf
CPUs that are not the boot CPU need to run in spinning code to check if they should run off to execute and if so where to jump to. This usually happens by leaving secondary CPUs looping and checking if some variable in memory changed. In an environment like Qemu however we can be more clever. We c

[Qemu-devel] [PATCH 03/28] PPC: Extend MPIC MMIO range

2011-07-23 Thread Alexander Graf
The MPIC exports a page for each CPU that it controls. To support more than one CPU, we need to also reserve the MMIO space according to the amount of CPUs we want to support. Signed-off-by: Alexander Graf --- hw/openpic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

[Qemu-devel] [PATCH 24/28] device tree: dont fail operations

2011-07-23 Thread Alexander Graf
When we screw up and issue an FDT command that doesn't work, we really need to know immediately and usually can't continue to create the machine. To make sure we don't need to add error checking in all device tree modification code users, we can just add the fail checks to the qemu abstract functio

[Qemu-devel] [PATCH 10/28] PPC: E500: Generate IRQ lines for many CPUs

2011-07-23 Thread Alexander Graf
Now that we can generate multiple envs for all our virtual CPUs, we also need to tell the MPIC that we have multiple CPUs connected and connect them all to the respective virtual interrupt lines. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 17 - 1 files changed,

[Qemu-devel] [PATCH 23/28] device tree: add add_subnode command

2011-07-23 Thread Alexander Graf
We want to be able to create subnodes in our device tree, so export it through the qemu device tree abstraction framework. Signed-off-by: Alexander Graf --- device_tree.c | 24 device_tree.h |1 + 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/devi

[Qemu-devel] [PATCH 14/28] PPC: E500: Use generic kvm function for freq

2011-07-23 Thread Alexander Graf
Now that we have generic KVM functions to read out the host tb and clock frequencies, let's use them in the e500 code! Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 44 +--- 1 files changed, 9 insertions(+), 35 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH 28/28] PPC: E500: Bump CPU count to 15

2011-07-23 Thread Alexander Graf
Now that we have everything in place, make the machine description aware of the fact that we can now handle 15 virtual CPUs! Signed-off-by: Alexander Graf --- v1 -> v2: - Max cpus is 15 because of MPIC --- hw/ppce500_mpc8544ds.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) di

[Qemu-devel] [PATCH 06/28] PPC: MPIC: Remove read functionality for WO registers

2011-07-23 Thread Alexander Graf
The IPI dispatch registers are write only according to every MPIC spec I have found. So instead of pretending you could read back something from them, better not handle them at all. Reported-by: Elie Richa Signed-off-by: Alexander Graf --- hw/openpic.c |7 --- 1 files changed, 0 inserti

[Qemu-devel] [PATCH 19/28] PPC: E500: Update freqs for all CPUs

2011-07-23 Thread Alexander Graf
Now that we can so nicely find out the host's frequencies, we should also make sure that we get them into all virtual CPUs' device tree nodes. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/ppce500_mpc

[Qemu-devel] [PATCH 01/28] PPC: Move openpic to target specific code compilation

2011-07-23 Thread Alexander Graf
The MPIC has some funny feature where it maps different registers to an MMIO region depending which CPU accesses them. To be able to reflect that, we need to make OpenPIC be compiled in the target code, so it can access cpu_single_env. Signed-off-by: Alexander Graf --- Makefile.objs |1 -

[Qemu-devel] [PATCH 26/28] MPC8544DS: Remove CPU nodes

2011-07-23 Thread Alexander Graf
We want to generate the CPU nodes in machine init code, so remove them from the device tree definition that we precompile. Signed-off-by: Alexander Graf --- pc-bios/mpc8544ds.dtb | Bin 2277 -> 2028 bytes pc-bios/mpc8544ds.dts | 12 2 files changed, 0 insertions(+), 12 deletions(

[Qemu-devel] [PATCH 08/28] PPC: Bump MPIC up to 32 supported CPUs

2011-07-23 Thread Alexander Graf
The MPIC emulation is now capable of handling up to 32 CPUs. Reflect that in the code exporting the numbers out and fix an integer overflow while at it. Signed-off-by: Alexander Graf --- v1 -> v2: - Max cpus is 15 due to cINT routing - Report nb_cpus not MAX_CPUS in MPIC capabilities ---

[Qemu-devel] [PATCH 12/28] PPC: bamboo: Move host fdt copy to target

2011-07-23 Thread Alexander Graf
We have some code in generic kvm_ppc.c that is only used by 440. Move to the 440 specific device code. Signed-off-by: Alexander Graf --- hw/ppc440_bamboo.c | 37 +++-- target-ppc/kvm_ppc.c | 30 -- target-ppc/kvm_ppc.h |1 - 3

[Qemu-devel] [PATCH 04/28] PPC: Fix IPI support in MPIC

2011-07-23 Thread Alexander Graf
The current IPI support in the MPIC code is incomplete and doesn't work. This code adds proper support for IPIs in MPIC by using the IDE register to remember which CPUs IPIs are still outstanding to. New triggers through the IPI trigger register only add to the list of CPUs we want to IPI. Signed-

  1   2   >