[Qemu-devel] [PATCH] configure: fix libcacard check

2012-07-22 Thread Alon Levy
SRC_PATH is undefined during configure run time, it is only defined in makefiles generated by it. Replace with source_path which is defined. Signed-off-by: Alon Levy --- configure |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 5fcd315..227c7d4

Re: [Qemu-devel] [PATCH] configure: fix libcacard check

2012-07-22 Thread Peter Maydell
On 22 July 2012 12:00, Alon Levy wrote: > SRC_PATH is undefined during configure run time, it is only defined in > makefiles generated by it. Replace with source_path which is defined. There's a (slightly different) patch to address this issue in my configure series I posted earlier this week: ht

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/21/2012 10:44 AM, Wen Congyang wrote: > We can know the guest is panicked when the guest runs on xen. > But we do not have such feature on kvm. > > Another purpose of this feature is: management app(for example: > libvirt) can do auto dump when the guest is panicked. If management > app does

Re: [Qemu-devel] [PATCH] configure: fix libcacard check

2012-07-22 Thread Alon Levy
On Sun, Jul 22, 2012 at 12:30:27PM +0100, Peter Maydell wrote: > On 22 July 2012 12:00, Alon Levy wrote: > > SRC_PATH is undefined during configure run time, it is only defined in > > makefiles generated by it. Replace with source_path which is defined. > > There's a (slightly different) patch to

Re: [Qemu-devel] [RFC PATCH 0/2] GlusterFS support in QEMU - v2

2012-07-22 Thread Stefan Hajnoczi
On Sat, Jul 21, 2012 at 9:29 AM, Bharata B Rao wrote: > -drive file=gluster:server@port:volname:image > > - Here 'gluster' is the protocol. > - 'server@port' specifies the server where the volume file specification for > the given volume resides. 'port' is the port number on which gluster > ma

Re: [Qemu-devel] question about qemu migrate.

2012-07-22 Thread Sheldon
On 07/22/2012 12:49 PM, Amos Kong wrote: On Sun, Jul 22, 2012 at 12:30 PM, Sheldon > wrote: I find there are four kinds of uri for qmp_migrate "tcp:", "exec:", "unix:", and "fd:" now I want to migrate the vm to a local file with "exec:" uri by

Re: [Qemu-devel] [RFC PATCH 2/2] block: gluster as block backend

2012-07-22 Thread Stefan Hajnoczi
On Sat, Jul 21, 2012 at 9:31 AM, Bharata B Rao wrote: > +typedef struct GlusterAIOCB { > +BlockDriverAIOCB common; > +QEMUIOVector *qiov; The qiov field is unused. > +char *bounce; Unused. > +struct BDRVGlusterState *s; You can get this through common.bs->opaque, but if you li

Re: [Qemu-devel] Qemu-devel Digest, Vol 112, Issue 513

2012-07-22 Thread Paulo Arcinas
9:43 +0800 > From: Sheldon > To: Amos Kong > Cc: qemu-devel@nongnu.org, Stefan Hajnoczi > > Subject: Re: [Qemu-devel] question about qemu migrate. > Message-ID: <500c155f.3020...@linux.vnet.ibm.com> > Content-Type: text/plain; charset="iso-8859-1"; Format="

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/21/2012 10:44 AM, Wen Congyang wrote: >> We can know the guest is panicked when the guest runs on xen. >> But we do not have such feature on kvm. >> >> Another purpose of this feature is: management app(for example: >> libvirt) can do auto dump when the guest is panic

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/21/2012 09:12 AM, Wen Congyang wrote: >> +#define KVM_PV_PORT (0x505UL) >> + >> #ifdef __KERNEL__ >> #include >> >> @@ -221,6 +223,11 @@ static inline void kvm_disable_steal_time(void) >> } >> #endif >> >> +static inline unsigned int kvm_arch_pv_features(void)

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/22/2012 09:14 PM, Anthony Liguori wrote: > Sasha Levin writes: > >> On 07/21/2012 10:44 AM, Wen Congyang wrote: >>> We can know the guest is panicked when the guest runs on xen. >>> But we do not have such feature on kvm. >>> >>> Another purpose of this feature is: management app(for exampl

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/22/2012 09:22 PM, Anthony Liguori wrote: > Sasha Levin writes: > >> On 07/21/2012 09:12 AM, Wen Congyang wrote: >>> +#define KVM_PV_PORT(0x505UL) >>> + >>> #ifdef __KERNEL__ >>> #include >>> >>> @@ -221,6 +223,11 @@ static inline void kvm_disable_steal_time(void) >>> } >>> #e

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/22/2012 10:19 PM, Sasha Levin wrote: > On 07/22/2012 09:22 PM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include @@ -221,6 +223,11 @@ static inl

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/22/2012 09:22 PM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include @@ -221,6 +223,11 @@ static inline void kvm_disable

Re: [Qemu-devel] question about qemu migrate.

2012-07-22 Thread Amos Kong
On Sun, Jul 22, 2012 at 10:59 PM, Sheldon wrote: > > > (qemu) migrate -d exec:cat>/tmp/vm.out > -incoming fd: > thank you. it can work now. > there are still some questions. > 1. the migration file vm.out is a QEMU suspend to disk image. > How can I reboot vm.out by QEMU? Load the suspend v

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/22/2012 10:19 PM, Sasha Levin wrote: >> On 07/22/2012 09:22 PM, Anthony Liguori wrote: >>> Sasha Levin writes: >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: > +#define KVM_PV_PORT (0x505UL) > + > #ifdef __KERNEL__ > #include >

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Anthony Liguori
Sasha Levin writes: > On 07/22/2012 09:14 PM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/21/2012 10:44 AM, Wen Congyang wrote: We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this featur

[Qemu-devel] Closing an opened telnet monitor?

2012-07-22 Thread Erik Rull
Hi all, how can I close an open telnet session to my qemu monitor? I didn't find any possiblity beside killing my telnet client on my remote connected system. Is there a "nicer" way of doing that? "quit" is definitively the wrong command :-) Thanks. Best regards, Erik

Re: [Qemu-devel] Disabling Console Switch using Ctrl + Alt + 2

2012-07-22 Thread Erik Rull
Paolo Bonzini wrote: Il 16/07/2012 08:47, Erik Rull ha scritto: how can I disable a switch to the "parallel0" console when accidentially pressing Ctrl + Alt + 2? I don't need such a feature and it confuses some users of the running guest system (some language layouts have the @ placed on the

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/23/2012 12:29 AM, Anthony Liguori wrote: > Sasha Levin writes: > >> On 07/22/2012 10:19 PM, Sasha Levin wrote: >>> On 07/22/2012 09:22 PM, Anthony Liguori wrote: Sasha Levin writes: > On 07/21/2012 09:12 AM, Wen Congyang wrote: >> +#define KVM_PV_PORT (0x505UL) >>

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/23/2012 12:36 AM, Anthony Liguori wrote: > Sasha Levin writes: > >> On 07/22/2012 09:14 PM, Anthony Liguori wrote: >>> Sasha Levin writes: >>> On 07/21/2012 10:44 AM, Wen Congyang wrote: > We can know the guest is panicked when the guest runs on xen. > But we do not have such

Re: [Qemu-devel] [PATCH 2/2] vexpress: Add NOR1 Flash support

2012-07-22 Thread Peter Crosthwaite
On Sat, Jul 21, 2012 at 12:56 AM, jagan <402ja...@gmail.com> wrote: > Thanks for your info, In fact I was thinking about to use > drive_get(IF_PFLASH, 0, 0) for first and drive_get(IF_PFLASH, 0, 1) also. > > But the point I was still uncover is even I was using drive_get(IF_PFLASH, > 0, 0) on b

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Wen Congyang
At 07/22/2012 07:39 PM, Sasha Levin Wrote: > On 07/21/2012 10:44 AM, Wen Congyang wrote: >> We can know the guest is panicked when the guest runs on xen. >> But we do not have such feature on kvm. >> >> Another purpose of this feature is: management app(for example: >> libvirt) can do auto dump whe

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Wen Congyang
At 07/23/2012 07:50 AM, Sasha Levin Wrote: > On 07/23/2012 12:36 AM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/22/2012 09:14 PM, Anthony Liguori wrote: Sasha Levin writes: > On 07/21/2012 10:44 AM, Wen Congyang wrote: >> We can know the guest is panicked when th

[Qemu-devel] [PULL] UniCore32 PUV3 machine support

2012-07-22 Thread gxt
are available in the git repository at: git://github.com/gxt/QEMU.git unicore32 Andreas Färber (1): target-unicore32: Drop UC32_CPUID macros Guan Xuetao (13): unicore32-softmmu: Add unicore32-softmmu build support unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) inst

Re: [Qemu-devel] [PATCH 7/7] RTC: Allow to migrate from old QEMU

2012-07-22 Thread Juan Quintela
Paolo Bonzini wrote: > From: "Zhang, Yang Z" > > The new logic is compatible with old, and it should not block migration > from old QEMU. However, the new version cannot migrate to the old one. > > Cc: Juan Quintela I guess that you removed the tm structs. This are the current fields. .f

Re: [Qemu-devel] [PATCH 4/7] RTC: Update the RTC clock only when reading it

2012-07-22 Thread Juan Quintela
Paolo Bonzini wrote: > From: "Zhang, Yang Z" > > Calculate guest RTC based on the time of the last update, instead of > using timers. The formula is > > (base_rtc + guest_time_now - guest_time_last_update + offset) > > Base_rtc is the RTC value when the RTC was last updated. > Guest_time_now

[Qemu-devel] [PATCH 0/3] vfio-pci: reworking end-of-interrupt

2012-07-22 Thread Alexey Kardashevskiy
Here is a small patchset just to keep moving. The main problem here is how we implement add_eoi_notifier() which is supposed to be a callback of a global interrupt controller which does not exists on QEMUMachine level. Alexey Kardashevskiy (3): xics: added end-of-interrupt (EOI) handlers ioap

[Qemu-devel] [PATCH 1/3] xics: added end-of-interrupt (EOI) handlers

2012-07-22 Thread Alexey Kardashevskiy
The patch adds EOI handler to process h_eoi RTAS call correctly for PCI legacy interrupts. This functionality is going to be used in VFIO later. Signed-off-by: Alexey Kardashevskiy --- hw/xics.c | 13 + hw/xics.h |4 2 files changed, 17 insertions(+) diff --git a/hw/xics

[Qemu-devel] [PATCH 2/3] ioapic: removed obsolete ioapic_remove_gsi_eoi_notifier

2012-07-22 Thread Alexey Kardashevskiy
As the Notifier struct contains everything it needs to get removed from the notifiers list, there is no need in ioapic_remove_gsi_eoi_notifier(). This patch removes it. Signed-off-by: Alexey Kardashevskiy --- hw/ioapic.c | 19 ++- hw/ioapic.h |1 - 2 files changed, 2 insert

[Qemu-devel] [PATCH 3/3] vfio-pci: rework of EOI

2012-07-22 Thread Alexey Kardashevskiy
Originally VFIO is coded to support IOAPIC only (i.e. x86). The patch adds XICS (POWERPC interrupt controller) and replaces ioapic_add_gsi_eoi_notifier with unified macro to have as little #ifdef TARGET_PPC64 as possible. Still needs some rework to get rid of #ifdef TARGET_PPC64. Signed-off-by: A

Re: [Qemu-devel] Closing an opened telnet monitor?

2012-07-22 Thread Michael Tokarev
On 23.07.2012 02:37, Erik Rull wrote: > Hi all, > > how can I close an open telnet session to my qemu monitor? I didn't find any > possiblity beside killing my telnet client on my remote connected system. > > Is there a "nicer" way of doing that? "quit" is definitively the wrong > command :-)

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Wen Congyang
At 07/23/2012 04:19 AM, Sasha Levin Wrote: > On 07/22/2012 09:22 PM, Anthony Liguori wrote: >> Sasha Levin writes: >> >>> On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include @@ -221,6 +223,11 @@ static inl

Re: [Qemu-devel] [PATCH v2 4/4] ARM: exynos4210_pmu: Add software reset support

2012-07-22 Thread Maksim Kozlov
20.07.2012 18:32, Peter Maydell пишет: On 12 July 2012 17:54, Maksim Kozlov wrote: Signed-off-by: Maksim Kozlov --- hw/exynos4210_pmu.c | 40 +--- 1 files changed, 33 insertions(+), 7 deletions(-) diff --git a/hw/exynos4210_pmu.c b/hw/exynos4210_pmu.c i

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] spapr: Add support for -vga option

2012-07-22 Thread Benjamin Herrenschmidt
On Wed, 2012-06-27 at 17:25 -0500, Anthony Liguori wrote: > If a user asks for something and we can't make it work, we should fail. Note that QEMU's cirrus works fine with the new kernel cirrusdrmfb, so I say we should allow it (needs to be able to the powerpc device .mak as well tho. It shouldn