Re: [Qemu-devel] [PATCH v8 5/6] introduce a new qom device to deal with panicked event

2012-08-22 Thread Wen Congyang
At 08/09/2012 03:01 AM, Blue Swirl Wrote: > On Wed, Aug 8, 2012 at 2:47 AM, Wen Congyang wrote: >> If the target is x86/x86_64, the guest's kernel will write 0x01 to the >> port KVM_PV_EVENT_PORT when it is panciked. This patch introduces a new >> qom device kvm_pv_ioport to listen this I/O port,

Re: pci_get_subsys: GFP_KERNEL allocations with IRQs disabled

2012-08-22 Thread Feng Tang
Hi Fengguang, On Wed, 22 Aug 2012 10:50:08 +0800 Fengguang Wu wrote: > Feng, > > > I think it's pci_get_subsys() triggered this assert: > > > > /* > > * Oi! Can't be having __GFP_FS allocations with IRQs disabled. > > */ > > if (DEBUG_LOCKS_WARN_ON(irqs_disab

Re: [PATCH v9 0/2] kvm: level irqfd support

2012-08-22 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 07:28:15PM -0600, Alex Williamson wrote: > On Wed, 2012-08-22 at 03:31 +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 01:28:57PM -0600, Alex Williamson wrote: > > > Here's the much anticipated re-write of support for level irqfds. As > > > Michael suggested, I

Question: Timekeeping between Host and Guest with NTP

2012-08-22 Thread Aritoki TAKADA
Hello, I'm planning to configure timekeeping between KVM host and guest, but I'm confused by different suggestions. The point is whether NTP should be working on guest or not. Here are the suggestions I found. Red Hat document: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/h

Re: perf uncore & lkvm woes

2012-08-22 Thread Avi Kivity
On 08/21/2012 01:35 PM, Peter Zijlstra wrote: > On Tue, 2012-08-21 at 11:34 +0300, Avi Kivity wrote: >> On 08/21/2012 10:11 AM, Peter Zijlstra wrote: >> > On Sun, 2012-08-19 at 12:55 +0300, Avi Kivity wrote: >> >> > I think Avi prefers the method where KVM 'fakes' the MSRs and we have to >> >> > de

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Avi Kivity
On 08/21/2012 06:21 PM, Richard Davies wrote: > Avi Kivity wrote: >> Richard Davies wrote: >> > We're running host kernel 3.5.1 and qemu-kvm 1.1.1. >> > >> > I hadn't though about it, but I agree this is related to cpu overcommit. >> > The >> > slow boots are intermittent (and infrequent) with cpu

Re: [Qemu-devel] x86, nops settings result in kernel crash

2012-08-22 Thread Avi Kivity
On 08/21/2012 12:28 PM, Tomas Racek wrote: > > http://fi.muni.cz/~xracek/debian2.img.bz2 > > Other things are the same. > > The runtest.sh sets environment for xfstests and runs test 285 which I wrote > and and which should test if FS sends discard requests only on free sectors: > 285: > 1. Cre

[PATCH] x86, alternative: fix p6 nops on non-modular kernels

2012-08-22 Thread Avi Kivity
On 08/22/2012 12:54 PM, Avi Kivity wrote: > On 08/21/2012 12:28 PM, Tomas Racek wrote: >> >> http://fi.muni.cz/~xracek/debian2.img.bz2 >> >> Other things are the same. >> >> The runtest.sh sets environment for xfstests and runs test 285 which I wrote >> and and which should test if FS sends dis

Re: [PATCH v9 0/2] kvm: level irqfd support

2012-08-22 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 01:28:57PM -0600, Alex Williamson wrote: > Here's the much anticipated re-write of support for level irqfds. As > Michael suggested, I've rolled the eoi/ack notification fd into > KVM_IRQFD as a new mode. For lack of a better name, as there seems to > be objections to asso

Re: [PATCH] x86, alternative: fix p6 nops on non-modular kernels

2012-08-22 Thread Tomas Racek
- Original Message - > On 08/22/2012 12:54 PM, Avi Kivity wrote: > > On 08/21/2012 12:28 PM, Tomas Racek wrote: > >> > >> http://fi.muni.cz/~xracek/debian2.img.bz2 > >> > >> Other things are the same. > >> > >> The runtest.sh sets environment for xfstests and runs test 285 > >> which I w

Re: [PATCH v6 01/12] KVM: x86: fix possible infinite loop caused by reexecute_instruction

2012-08-22 Thread Avi Kivity
On 08/21/2012 05:57 AM, Xiao Guangrong wrote: > Currently, we reexecute all unhandleable instructions if they do not > access on the mmio, however, it can not work if host map the readonly > memory to guest. If the instruction try to write this kind of memory, > it will fault again when guest retry

Re: [PATCH v6 12/12] KVM: indicate readonly access fault

2012-08-22 Thread Avi Kivity
On 08/21/2012 06:03 AM, Xiao Guangrong wrote: > Introduce write_readonly_mem in mmio-exit-info to indicate this exit is > caused by write access on readonly memslot Please document this in chapter 5 of apic.txt. -- error compiling committee.c: too many arguments to function -- To unsubscribe fro

Re: [PATCH v6 00/12] KVM: introduce readonly memslot

2012-08-22 Thread Avi Kivity
On 08/21/2012 05:57 AM, Xiao Guangrong wrote: > Changelog: > - fix endless retrying for unhandleable instruction which accesses on readonly > host memory > - divide slot->flags by 16:16, the lower part is visible for userspace, the > reset is internally used in kvm, and document this in the cod

Re: [PATCH RESEND] kvm: Fix nonsense handling of compat ioctl

2012-08-22 Thread Avi Kivity
On 08/20/2012 05:43 PM, Alan Cox wrote: > From: Alan Cox > > KVM_SET_SIGNAL_MASK passed a NULL argument leaves the on stack signal > sets uninitialized. It then passes them through to > kvm_vcpu_ioctl_set_sigmask. > > We should be passing a NULL in this case not translated garbage. > > Signed-o

Re: [PATCH v2] KVM: MMU: Fix mmu_shrink() so that it can free mmu pages as intended

2012-08-22 Thread Avi Kivity
On 08/20/2012 12:35 PM, Takuya Yoshikawa wrote: > Although the possible race described in > > commit 85b7059169e128c57a3a8a3e588fb89cb2031da1 > KVM: MMU: fix shrinking page from the empty mmu > > was correct, the real cause of that issue was a more trivial bug of > mmu_shrink() introduced by

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Richard Davies
Avi Kivity wrote: > Richard Davies wrote: > > Below are two 'perf top' snapshots during a slow boot, which appear to > > me to support your idea of a spin-lock problem. ... > >PerfTop: 62249 irqs/sec kernel:96.9% exact: 0.0% [4000Hz cycles], > > (all, 16 CPUs) > > ---

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Avi Kivity
On 08/22/2012 03:40 PM, Richard Davies wrote: > > I can trigger the slow boots without KSM and they have the same profile, > with _raw_spin_lock_irqsave and isolate_freepages_block at the top. > > I reduced to 3x 20GB 8-core VMs on a 128GB host (rather than 3x 40GB 8-core > VMs), and haven't mana

Re: [PATCH v6 12/12] KVM: indicate readonly access fault

2012-08-22 Thread Xiao Guangrong
On 08/22/2012 08:06 PM, Avi Kivity wrote: > On 08/21/2012 06:03 AM, Xiao Guangrong wrote: >> Introduce write_readonly_mem in mmio-exit-info to indicate this exit is >> caused by write access on readonly memslot > > Please document this in chapter 5 of apic.txt. > Okay, please review this one. S

[PATCH 1/4] kvm tools: Embed init and init_stage2 into lkvm binary

2012-08-22 Thread Asias He
We generate guest init and init_stage2 on the fly and put them in ~/.lkvm/$guest/virt/init ~/.lkvm/$guest/virt/init_stage2 . This makes 'lkvm run' no longer depending on guest/{int, init_stage2}. Further, we can merge init and init_stage2 since there is no need to split the init function i

[PATCH 3/4] kvm tools: Merge guest init and init_stage2.c

2012-08-22 Thread Asias He
Two stages init process is introduced in commit eaf720b285947a6f4e29174d0eba1899de31d8ab kvm tools: Split custom rootfs init into two stages to address the outdated init binary issue. Currenly, init binary is embedded in lkvm binary and generated on the fly. So there is no need to split th

[PATCH 4/4] kvm tools: Make 'lkvm setup' work outside kernel/tools/kvm dir

2012-08-22 Thread Asias He
Generate ~/.lkvm/$guest/virt/etc/passwd ~/.lkvm/$guest/virt/init on the fly. Signed-off-by: Asias He --- tools/kvm/builtin-setup.c | 33 +++-- tools/kvm/guest/passwd| 1 - 2 files changed, 31 insertions(+), 3 deletions(-) delete mode 100644 tools/kvm/gue

[PATCH 2/4] kvm tools: Use LD instead using 'ld' directly

2012-08-22 Thread Asias He
Signed-off-by: Asias He --- tools/kvm/Makefile | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index 1099b76..2bb5713 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -20,6 +20,7 @@ include config/utilities.mak include

Re: [PATCH v6 01/12] KVM: x86: fix possible infinite loop caused by reexecute_instruction

2012-08-22 Thread Xiao Guangrong
On 08/22/2012 08:01 PM, Avi Kivity wrote: > On 08/21/2012 05:57 AM, Xiao Guangrong wrote: >> Currently, we reexecute all unhandleable instructions if they do not >> access on the mmio, however, it can not work if host map the readonly >> memory to guest. If the instruction try to write this kind of

Re: qemu-kvm-1.0.1 - unable to exit if vcpu is in infinite loop

2012-08-22 Thread Peter Lieven
On 08/21/12 10:23, Stefan Hajnoczi wrote: On Tue, Aug 21, 2012 at 8:21 AM, Jan Kiszka wrote: On 2012-08-19 11:42, Avi Kivity wrote: On 08/17/2012 06:04 PM, Jan Kiszka wrote: Can anyone imagine that such a barrier may actually be required? If it is currently possible that env->stop is evaluate

Re: pci_get_subsys: GFP_KERNEL allocations with IRQs disabled

2012-08-22 Thread Fengguang Wu
On Wed, Aug 22, 2012 at 03:49:08PM +0800, Tang, Feng wrote: > Hi Fengguang, > > > On Wed, 22 Aug 2012 10:50:08 +0800 > Fengguang Wu wrote: > > > Feng, > > > > > I think it's pci_get_subsys() triggered this assert: > > > > > > /* > > > * Oi! Can't be having __GFP_FS allocation

[PATCHv2] kvm: Fix nonsense handling of compat ioctl

2012-08-22 Thread Alan Cox
From: Alan Cox KVM_SET_SIGNAL_MASK passed a NULL argument leaves the on stack signal sets uninitialized. It then passes them through to kvm_vcpu_ioctl_set_sigmask. We should be passing a NULL in this case not translated garbage. Signed-off-by: Alan Cox --- virt/kvm/kvm_main.c |7 ---

Re: [PATCH] virt.kvm: Handle migrate errors using QMP monitor properly

2012-08-22 Thread Luiz Capitulino
On Tue, 21 Aug 2012 12:02:11 -0300 Lucas Meneghel Rodrigues wrote: > When using QMP monitor as the sole monitor on KVM autotest > (something that we sadly did not exercise on our test farms), > starting qemu with -S and then issuing 'cont' will cause > errors, since the error treatment with QMP m

[PATCH kvm-unit-tests] x86: add explicit ENTRY() declaration to linker scripts

2012-08-22 Thread Avi Kivity
It appears that some toolchain update caused the entry address in the elf image to be zero. Add explicit ENTRY() declarations as a workaround. Signed-off-by: Avi Kivity --- flat.lds | 1 + x86/realmode.lds | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flat.lds b/

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Richard Davies
Avi Kivity wrote: > Richard Davies wrote: > > I can trigger the slow boots without KSM and they have the same profile, > > with _raw_spin_lock_irqsave and isolate_freepages_block at the top. > > > > I reduced to 3x 20GB 8-core VMs on a 128GB host (rather than 3x 40GB 8-core > > VMs), and haven't ma

[PATCH] virt.kvm_monitor: Future proof migration handling on QMP monitor

2012-08-22 Thread Lucas Meneghel Rodrigues
With d46ad35c74, the exception handling for migrations happening when using a single QMP monitor relies on an exception class that's going to disappear in future versions of QEMU, being replaced by the GenericError class. So let's also handle this exception class. CC: Luiz Capitulino Signed-off-b

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Avi Kivity
On 08/22/2012 05:41 PM, Richard Davies wrote: > Avi Kivity wrote: >> Richard Davies wrote: >> > I can trigger the slow boots without KSM and they have the same profile, >> > with _raw_spin_lock_irqsave and isolate_freepages_block at the top. >> > >> > I reduced to 3x 20GB 8-core VMs on a 128GB host

[PATCH kvm-unit-tests] realmode: test that stack operations ignore the high word of %esp if ss.b is set

2012-08-22 Thread Avi Kivity
Signed-off-by: Avi Kivity --- x86/realmode.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/x86/realmode.c b/x86/realmode.c index 710a06b..82a66b3 100644 --- a/x86/realmode.c +++ b/x86/realmode.c @@ -554,6 +554,11 @@ void test_push_pop() "mov %fs, %eb

memtest 4.20+ does not work with -cpu host

2012-08-22 Thread Peter Lieven
Hi, has anyone ever tested to run memtest with -cpu host flag passed to qemu-kvm? For me it resets when probing the chipset. With -cpu qemu64 it works just fine. Maybe this is specific to memtest, but it might be sth that can happen in other applications to. Any thoughts? Thanks, Peter -

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Rik van Riel
On 08/22/2012 10:41 AM, Richard Davies wrote: Avi Kivity wrote: Richard Davies wrote: I can trigger the slow boots without KSM and they have the same profile, with _raw_spin_lock_irqsave and isolate_freepages_block at the top. I reduced to 3x 20GB 8-core VMs on a 128GB host (rather than 3x 40G

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Richard Davies
Avi Kivity wrote: > Richard Davies wrote: > > Avi Kivity wrote: > > > Richard Davies wrote: > > > > I can trigger the slow boots without KSM and they have the same > > > > profile, with _raw_spin_lock_irqsave and isolate_freepages_block at > > > > the top. > > > > > > > > I reduced to 3x 20GB 8-cor

Re: Windows slow boot: contractor wanted

2012-08-22 Thread Richard Davies
Rik van Riel wrote: > Richard Davies wrote: > > I've now triggered a very slow boot at 3x 36GB 8-core VMs on a 128GB > > host (i.e. 108GB on a 128GB host). > > > > It has the same profile with _raw_spin_lock_irqsave and > > isolate_freepages_block at the top. > > That's the page compaction code. >

Re: [PATCH] virt.kvm_monitor: Future proof migration handling on QMP monitor

2012-08-22 Thread Luiz Capitulino
On Wed, 22 Aug 2012 11:43:38 -0300 Lucas Meneghel Rodrigues wrote: > With d46ad35c74, the exception handling for migrations > happening when using a single QMP monitor relies on > an exception class that's going to disappear in future > versions of QEMU, being replaced by the GenericError > class

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-22 Thread Andrea Arcangeli
On Wed, Aug 22, 2012 at 02:03:41PM +0800, Xiao Guangrong wrote: > On 08/21/2012 11:06 PM, Andrea Arcangeli wrote: > > CPU0CPU1 > > oldpage[1] == 0 (both guest & host) > > oldpage[0] = 1 > > trigger do_wp_page > > We always do ptep_clear_f

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-22 Thread Andrea Arcangeli
On Wed, Aug 22, 2012 at 11:51:17AM +0800, Xiao Guangrong wrote: > Hmm, in KSM code, i found this code in replace_page: > > set_pte_at_notify(mm, addr, ptep, mk_pte(kpage, vma->vm_page_prot)); > > It is possible to establish a writable pte, no? Hugh already answered this thanks. Further details o

Re: [Qemu-devel] Windows slow boot: contractor wanted

2012-08-22 Thread Troy Benjegerdes
> > I've now triggered a very slow boot at 3x 36GB 8-core VMs on a 128GB host > > (i.e. 108GB on a 128GB host). > > > > It has the same profile with _raw_spin_lock_irqsave and > > isolate_freepages_block at the top. > > Then it's still memory starved. > > Please provide /proc/zoneinfo while this

[PATCH] virt.netperf: Use ssh_key lib rather than off limits server lib

2012-08-22 Thread Lucas Meneghel Rodrigues
When running the kvm autotest tests on a given host through the autotest server, it's important to remember that only the autotest client is copied to machines, making anything that is not on the autotest.client namespace *off-limits*. So, replace usage of SSHHost server class (here used only to g

Re: pci_get_subsys: GFP_KERNEL allocations with IRQs disabled

2012-08-22 Thread Bjorn Helgaas
On Wed, Aug 22, 2012 at 12:49 AM, Feng Tang wrote: > Hi Fengguang, > > > On Wed, 22 Aug 2012 10:50:08 +0800 > Fengguang Wu wrote: > >> Feng, >> >> > I think it's pci_get_subsys() triggered this assert: >> > >> > /* >> > * Oi! Can't be having __GFP_FS allocations with IRQs disable

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-22 Thread Andrew Morton
On Wed, 22 Aug 2012 18:29:55 +0200 Andrea Arcangeli wrote: > On Wed, Aug 22, 2012 at 02:03:41PM +0800, Xiao Guangrong wrote: > > On 08/21/2012 11:06 PM, Andrea Arcangeli wrote: > > > CPU0 CPU1 > > > oldpage[1] == 0 (both guest & host) > > > o

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-22 Thread Andrea Arcangeli
Hi Andrew, On Wed, Aug 22, 2012 at 12:15:35PM -0700, Andrew Morton wrote: > On Wed, 22 Aug 2012 18:29:55 +0200 > Andrea Arcangeli wrote: > > > On Wed, Aug 22, 2012 at 02:03:41PM +0800, Xiao Guangrong wrote: > > > On 08/21/2012 11:06 PM, Andrea Arcangeli wrote: > > > > CPU0

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-22 Thread Andrew Morton
On Wed, 22 Aug 2012 21:50:43 +0200 Andrea Arcangeli wrote: > Hi Andrew, > > On Wed, Aug 22, 2012 at 12:15:35PM -0700, Andrew Morton wrote: > > On Wed, 22 Aug 2012 18:29:55 +0200 > > Andrea Arcangeli wrote: > > > > > On Wed, Aug 22, 2012 at 02:03:41PM +0800, Xiao Guangrong wrote: > > > > On 08/

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-22 Thread Andrea Arcangeli
On Wed, Aug 22, 2012 at 12:58:05PM -0700, Andrew Morton wrote: > If you can suggest some text I'll type it in right now. Ok ;), I tried below: This is safe to start by updating the secondary MMUs, because the relevant primary MMU pte invalidate must have already happened with a ptep_clear_flush b

[PATCH] KVM: PPC: set IN_GUEST_MODE before checking requests

2012-08-22 Thread Scott Wood
Avoid a race as described in the code comment. Also remove a related smp_wmb() from booke's kvmppc_prepare_to_enter(). I can't see any reason for it, and the book3s_pr version doesn't have it. Signed-off-by: Scott Wood --- arch/powerpc/kvm/booke.c |1 - arch/powerpc/kvm/powerpc.c | 14 +

[PATCH 1/2] KVM: PPC: e500: fix allocation size error on g2h_tlb1_map

2012-08-22 Thread Scott Wood
We were only allocating half the bytes we need, which was made more obvious by a recent fix to the memset in clear_tlb1_bitmap(). Signed-off-by: Scott Wood --- arch/powerpc/kvm/e500_tlb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/p

[PATCH 2/2] KVM: PPC: e500: MMU API: fix leak of shared_tlb_pages

2012-08-22 Thread Scott Wood
This was found by kmemleak. Signed-off-by: Scott Wood --- arch/powerpc/kvm/e500_tlb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index a27d134..641f978 100644 --- a/arch/powerpc/kvm/e500_tlb.c +++ b/arch/powerpc/kvm/e500_tlb

[PATCH 1/2] kvm tools: Respect guest tcp window size

2012-08-22 Thread Asias He
Respect guest tcp window size and stop sending tcp segments to guest if guest's receive window is closed. This fixes the TCP hang I'm seeing where guest and host are transferring big chuck of data. This problem was not triggered when guest and external host communicates, probably because guest to

[PATCH 2/2] kvm tools: Make tcp between guest/host virtual ip work in UIP mode

2012-08-22 Thread Asias He
This pach makes tcp between 'guest ip' and 'host virtual ip' work in UIP mode. (The defulat guest ip is 192.168.33.15, host virtual ip is 192.168.33.1) guest$ wget http://192.168.33.1/file guest$ ssh 192.168.33.1 Without this patch, user has to figure out the ip address of host's interface (e

[PATCH v9] kvm: notify host when the guest is panicked

2012-08-22 Thread Wen Congyang
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 not do auto dump, the guest's user can do dump by hand

[PATCH v9 1/6] start vm after reseting it

2012-08-22 Thread Wen Congyang
The guest should run after reseting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when reseting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED to RUN_STATE_RUNNING(no

[PATCH v9 2/6] kvm: Update kernel headers

2012-08-22 Thread Wen Congyang
Corresponding kvm.git hash: 35f2d16b with my patch for kvm --- linux-headers/asm-s390/kvm.h |2 +- linux-headers/asm-s390/kvm_para.h |2 +- linux-headers/asm-x86/kvm.h |1 + linux-headers/asm-x86/kvm_para.h |9 + linux-headers/linux/kvm.h |3 +++ lin

[PATCH v9 3/6] add a new runstate: RUN_STATE_GUEST_PANICKED

2012-08-22 Thread Wen Congyang
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang --- qapi-schema.json |6 +- qmp.c|3 ++- vl.c |7 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index bd8ad74..ed

[PATCH v9 4/6] add a new qevent: QEVENT_GUEST_PANICKED

2012-08-22 Thread Wen Congyang
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- monitor.c |1 + monitor.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 480f583..cd2adb7 100644 --- a/monitor.c +++ b/monitor.c @@ -455,6 +455,7 @@ sta

[PATCH v9 5/6] introduce a new qom device to deal with panicked event

2012-08-22 Thread Wen Congyang
If the target is x86/x86_64, the guest's kernel will write 0x01 to the port KVM_PV_EVENT_PORT when it is panciked. This patch introduces a new qom device kvm_pv_ioport to listen this I/O port, and deal with panicked event according to panicked_action's value. The possible actions are: 1. emit QEVEN

[PATCH v9 6/6] allower the user to disable pv event support

2012-08-22 Thread Wen Congyang
Signed-off-by: Wen Congyang --- hw/pc_piix.c|6 +- qemu-config.c |4 qemu-options.hx |3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index f73fb85..76d3de1 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -151,6 +151,8

registering ioeventfd in qemu/kvm

2012-08-22 Thread Shesha Sreenivasamurthy
Hi, I am trying to generate eventfd upon a IO write from the guest, say it is at offset IO_NOTIFY_REG (0x10). When the guest writes to this register, I get control to QEMU's to the write function associated in mypci_iomem_ops. However, instead of this I would like to register an eventfd. To achiev

Re: KVM-enabled Linux 3.2 won't boot in kvm

2012-08-22 Thread Neal Murphy
(Oops. Just noticed I didn't send this to the list) On Monday 20 August 2012 09:41:52 Wolfram wrote: > Neal Murphy writes: > >I've been using KVM for a few years now. I've had little trouble with it. > >But now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel > >to boot in qem

buildbot failure in kvm on next-ppc64

2012-08-22 Thread kvm
The Buildbot has detected a new failure on builder next-ppc64 while building kvm. Full details are available at: http://buildbot.b1-systems.de/kvm/builders/next-ppc64/builds/627 Buildbot URL: http://buildbot.b1-systems.de/kvm/ Buildslave for this Build: b1_kvm_1 Build Reason: The Nightly sched

Re: pci_get_subsys: GFP_KERNEL allocations with IRQs disabled

2012-08-22 Thread Feng Tang
Hi Bjorn, On Wed, 22 Aug 2012 11:02:52 -0700 Bjorn Helgaas wrote: > On Wed, Aug 22, 2012 at 12:49 AM, Feng Tang wrote: > > Hi Fengguang, > > > > > > On Wed, 22 Aug 2012 10:50:08 +0800 > > Fengguang Wu wrote: > > > >> Feng, > >> > >> > I think it's pci_get_subsys() triggered this assert: > >> >