Re: KVM emulation failure with recent kernel and QEMU Seabios

2015-03-17 Thread Gerd Hoffmann
On Mo, 2015-03-16 at 14:16 -0400, Bandan Das wrote: Jan Kiszka jan.kis...@siemens.com writes: Am 2015-03-12 um 09:11 schrieb Gerd Hoffmann: On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: Hi, apparently since the latest QEMU updates I'm getting this once in a while:

Re: KVM emulation failure with recent kernel and QEMU Seabios

2015-03-17 Thread Bandan Das
Gerd Hoffmann kra...@redhat.com writes: On Mo, 2015-03-16 at 14:16 -0400, Bandan Das wrote: Jan Kiszka jan.kis...@siemens.com writes: Am 2015-03-12 um 09:11 schrieb Gerd Hoffmann: On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: Hi, apparently since the latest QEMU updates I'm

Re: KVM emulation failure with recent kernel and QEMU Seabios

2015-03-16 Thread Bandan Das
Jan Kiszka jan.kis...@siemens.com writes: Am 2015-03-12 um 09:11 schrieb Gerd Hoffmann: On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: Hi, apparently since the latest QEMU updates I'm getting this once in a while: http://www.seabios.org/pipermail/seabios/2015-March/008897.html

Re: KVM emulation failure with recent kernel and QEMU Seabios

2015-03-12 Thread Gerd Hoffmann
On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: Hi, apparently since the latest QEMU updates I'm getting this once in a while: http://www.seabios.org/pipermail/seabios/2015-March/008897.html cheers, Gerd -- To unsubscribe from this list: send the line unsubscribe kvm in the body of

KVM emulation failure with recent kernel and QEMU Seabios

2015-03-12 Thread Jan Kiszka
Hi, apparently since the latest QEMU updates I'm getting this once in a while: KVM internal error. Suberror: 1 emulation failure EAX= EBX= ECX= EDX=000fd2bc ESI= EDI= EBP= ESP= EIP=000fd2c5 EFL=00010007 [-PC] CPL=0 II=0 A20=1 SMM=0 HLT

Re: KVM emulation failure with recent kernel and QEMU Seabios

2015-03-12 Thread Jan Kiszka
Am 2015-03-12 um 09:11 schrieb Gerd Hoffmann: On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: Hi, apparently since the latest QEMU updates I'm getting this once in a while: http://www.seabios.org/pipermail/seabios/2015-March/008897.html OK... So we are waiting on a stable release to

Re: [Qemu-devel] KVM emulation failure with recent kernel and QEMU Seabios

2015-03-12 Thread Gerd Hoffmann
On Do, 2015-03-12 at 09:14 +0100, Jan Kiszka wrote: Am 2015-03-12 um 09:11 schrieb Gerd Hoffmann: On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: Hi, apparently since the latest QEMU updates I'm getting this once in a while:

Re: Internal error, emulation failure when trying to boot Win7 install

2014-01-11 Thread Gleb Natapov
On Tue, Jan 07, 2014 at 09:37:07PM +0100, Guido Winkelmann wrote: Code=7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13 9f 83 c4 10 9e eb 14 9e is SAHF instruction. Its emulation was added in 3.13. -- Gleb. -- To unsubscribe from this list: send the line unsubscribe kvm in

Re: Internal error, emulation failure when trying to boot Win7 install

2014-01-09 Thread Guido Winkelmann
On Wednesday 08 January 2014 19:40:10 Marcelo Tosatti wrote: On Tue, Jan 07, 2014 at 07:48:41PM +0100, Guido Winkelmann wrote: Hi, When trying to boot a Windows 7 install from a local virtual disks, qemu stops with the messages: KVM internal error. Suberror: 1 emulation failure Can you

Re: Internal error, emulation failure when trying to boot Win7 install

2014-01-08 Thread Marcelo Tosatti
On Tue, Jan 07, 2014 at 07:48:41PM +0100, Guido Winkelmann wrote: Hi, When trying to boot a Windows 7 install from a local virtual disks, qemu stops with the messages: KVM internal error. Suberror: 1 emulation failure Can you please enable the following tracepoints via the # cd /sys

Internal error, emulation failure when trying to boot Win7 install

2014-01-07 Thread Guido Winkelmann
Hi, When trying to boot a Windows 7 install from a local virtual disks, qemu stops with the messages: KVM internal error. Suberror: 1 emulation failure I've started qemu with libvirt. This is the output from libvirt's logfile: 2014-01-07 18:22:10.988+: starting up LC_ALL=C PATH=/bin

Re: Internal error, emulation failure when trying to boot Win7 install

2014-01-07 Thread Guido Winkelmann
emulation failure I've started qemu with libvirt. This is the output from libvirt's logfile: 2014-01-07 18:22:10.988+: starting up LC_ALL=C PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/b in:/usr/local/sbin HOME=/ USER=root QEMU_AUDIO_DRV=spice /usr/bin/qemu-kvm -name

Re: Emulation failure

2013-08-20 Thread Paolo Bonzini
Il 20/08/2013 03:26, Duy Nguyen TN ha scritto: Vào T2, ngày 19, 08 năm 2013 lúc 11:27 +0200, Paolo Bonzini viết: The disassembled code is 0x1dd10:push %rbx 0x1dd11:mov$0x6e,%eax 0x1dd16:mov%rdi,%rbx 0x1dd19:sub$0x20,%rsp 0x1dd1d:test

Re: Emulation failure

2013-08-19 Thread Paolo Bonzini
internal error. Suberror: 1 emulation failure RAX=77ff9000 RBX=77e93608 RCX=75d4d81a RDX=0001 RSI=1000 RDI= RBP=69a07700 RSP=77e934b0 R8 =0008 R9 = R10=0002 R11

Re: Emulation failure

2013-08-19 Thread Duy Nguyen TN
Vào T2, ngày 19, 08 năm 2013 lúc 11:27 +0200, Paolo Bonzini viết: The disassembled code is 0x1dd10:push %rbx 0x1dd11:mov$0x6e,%eax 0x1dd16:mov%rdi,%rbx 0x1dd19:sub$0x20,%rsp 0x1dd1d:test %rdi,%rdi 0x1dd20:je 0xb1dd92

Emulation failure

2013-08-18 Thread Duy Nguyen TN
Hi, I got this error with qem-kvm-0.15.1 on kernel 3.1.0-1.2-desktop (OpenSUSE 12.1). I know I should rerun it with latest kernel/qemu but I hope maybe this rings a bell or something, because it'll take some time for me to prepare new kernel. KVM internal error. Suberror: 1 emulation failure RAX

Re: KVM internal error. Suberror: 1, emulation failure

2013-07-18 Thread Paolo Bonzini
Il 17/07/2013 18:16, Dave Hansen ha scritto: I'm causing qemu to spew these emulation failure messages until I kill it. The guest kernel being run has been hacked up pretty heavily and is probably either accessing bad physical addresses (above the address ranges in the e820 table) or trying

Re: KVM internal error. Suberror: 1, emulation failure

2013-07-18 Thread Gleb Natapov
On Thu, Jul 18, 2013 at 07:58:31AM +0200, Paolo Bonzini wrote: Il 17/07/2013 18:16, Dave Hansen ha scritto: I'm causing qemu to spew these emulation failure messages until I kill it. The guest kernel being run has been hacked up pretty heavily and is probably either accessing bad physical

KVM internal error. Suberror: 1, emulation failure

2013-07-17 Thread Dave Hansen
I'm causing qemu to spew these emulation failure messages until I kill it. The guest kernel being run has been hacked up pretty heavily and is probably either accessing bad physical addresses (above the address ranges in the e820 table) or trying to DMA to bad addresses. What I'd really like

Re: KVM internal error. Suberror: 1, emulation failure

2013-07-17 Thread Gleb Natapov
On Wed, Jul 17, 2013 at 09:16:33AM -0700, Dave Hansen wrote: I'm causing qemu to spew these emulation failure messages until I kill it. The guest kernel being run has been hacked up pretty heavily and is probably either accessing bad physical addresses (above the address ranges in the e820

Re: -M g3beige KVM emulation failure on reset

2012-06-28 Thread Alexander Graf
On 06/15/2012 02:58 PM, Andreas Färber wrote: Hello Alex, As mentioned recently, I can reproduce an emulation failure on POWER5 with PR KVM on openSUSE Factory a few seconds after reset: $ uname -a Linux power5 3.4.0-10-ppc64 #1 SMP Wed May 23 13:59:25 UTC 2012 (a3c5f2c) ppc64 ppc64 ppc64 GNU

-M g3beige KVM emulation failure on reset

2012-06-15 Thread Andreas Färber
Hello Alex, As mentioned recently, I can reproduce an emulation failure on POWER5 with PR KVM on openSUSE Factory a few seconds after reset: $ uname -a Linux power5 3.4.0-10-ppc64 #1 SMP Wed May 23 13:59:25 UTC 2012 (a3c5f2c) ppc64 ppc64 ppc64 GNU/Linux # ppc-softmmu/qemu-system-ppc -enable-kvm

[PATCH 24/56] KVM: PPC: booke: deliver program int on emulation failure

2012-03-15 Thread Alexander Graf
When we fail to emulate an instruction for the guest, we better go in and tell it that we failed to emulate it, by throwing an illegal instruction exception. Please beware that we basically never get around to telling the guest that we failed thanks to the debugging code right above it. If user

[PATCH 24/56] KVM: PPC: booke: deliver program int on emulation failure

2012-03-15 Thread Alexander Graf
When we fail to emulate an instruction for the guest, we better go in and tell it that we failed to emulate it, by throwing an illegal instruction exception. Please beware that we basically never get around to telling the guest that we failed thanks to the debugging code right above it. If user

[PATCH 23/38] KVM: PPC: booke: deliver program int on emulation failure

2012-02-28 Thread Alexander Graf
When we fail to emulate an instruction for the guest, we better go in and tell it that we failed to emulate it, by throwing an illegal instruction exception. Please beware that we basically never get around to telling the guest that we failed thanks to the debugging code right above it. If user

[PATCH 23/38] KVM: PPC: booke: deliver program int on emulation failure

2012-02-28 Thread Alexander Graf
When we fail to emulate an instruction for the guest, we better go in and tell it that we failed to emulate it, by throwing an illegal instruction exception. Please beware that we basically never get around to telling the guest that we failed thanks to the debugging code right above it. If user

[PATCH 23/37] KVM: PPC: booke: deliver program int on emulation failure

2012-02-24 Thread Alexander Graf
When we fail to emulate an instruction for the guest, we better go in and tell it that we failed to emulate it, by throwing an illegal instruction exception. Please beware that we basically never get around to telling the guest that we failed thanks to the debugging code right above it. If user

[PATCH 23/30] KVM: PPC: booke: deliver program int on emulation failure

2012-02-17 Thread Alexander Graf
When we fail to emulate an instruction for the guest, we better go in and tell it that we failed to emulate it, by throwing an illegal instruction exception. Please beware that we basically never get around to telling the guest that we failed thanks to the debugging code right above it. If user

[PATCH 23/30] KVM: PPC: booke: deliver program int on emulation failure

2012-02-17 Thread Alexander Graf
When we fail to emulate an instruction for the guest, we better go in and tell it that we failed to emulate it, by throwing an illegal instruction exception. Please beware that we basically never get around to telling the guest that we failed thanks to the debugging code right above it. If user

qemu-kvm guest which won't 'cont' (emulation failure?)

2011-10-24 Thread Chris Webb
an emulation failure? Cheers, Chris. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Qemu-devel] qemu-kvm guest which won't 'cont' (emulation failure?)

2011-10-24 Thread Kevin Wolf
this guest to stop, e.g. the unsupported instruction if it's an emulation failure? Another common cause for stopped VMs are I/O errors, for example writes to a sparse image when the disk is full. Kevin -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord

Re: [Qemu-devel] qemu-kvm guest which won't 'cont' (emulation failure?)

2011-10-24 Thread Chris Webb
Kevin Wolf kw...@redhat.com writes: Am 24.10.2011 12:00, schrieb Chris Webb: I have qemu monitor access and can even strace the relevant qemu process if necessary: is it possible to use this to diagnose what's caused this guest to stop, e.g. the unsupported instruction if it's an emulation

Re: [Qemu-devel] qemu-kvm guest which won't 'cont' (emulation failure?)

2011-10-24 Thread Kevin Wolf
. the unsupported instruction if it's an emulation failure? Another common cause for stopped VMs are I/O errors, for example writes to a sparse image when the disk is full. This guest are backed by LVM LVs so I don't think they can return EFULL, but I could imagine read errors, so I've just done

Re: [Qemu-devel] qemu-kvm guest which won't 'cont' (emulation failure?)

2011-10-24 Thread Chris Webb
Kevin Wolf kw...@redhat.com writes: In qemu 1.0 we'll have an extended 'info status' that includes the stop reason, but 0.14 doesn't have this yet (was committed to git master only recently). Right, okay. I might take a look at cherry-picking and back-porting that to our version of qemu-kvm

Re: [Qemu-devel] qemu-kvm guest which won't 'cont' (emulation failure?)

2011-10-24 Thread Kevin Wolf
Am 24.10.2011 13:29, schrieb Chris Webb: Kevin Wolf kw...@redhat.com writes: In qemu 1.0 we'll have an extended 'info status' that includes the stop reason, but 0.14 doesn't have this yet (was committed to git master only recently). Right, okay. I might take a look at cherry-picking and

Re: [Qemu-devel] qemu-kvm guest which won't 'cont' (emulation failure?)

2011-10-24 Thread Chris Webb
Kevin Wolf kw...@redhat.com writes: Good point... The only other thing that I can think of would be attaching gdb and setting a breakpoint in vm_stop() or something. Perfect, that seems to identified what's going on very nicely: (gdb) break vm_stop Breakpoint 1 at 0x407d10: file

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Ravi Kumar Kulkarni
1f522006/7f idt 1f9af000/7ff cr0 11 cr2 0 cr3 0 cr4 0 cr8 0 efer 0 emulation failure, check dmesg for details

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Avi Kivity
On 02/07/2011 10:33 AM, Ravi Kumar Kulkarni wrote: On Sun, Feb 6, 2011 at 10:50 PM, Avi Kivitya...@redhat.com wrote: On 02/04/2011 03:58 PM, Jan Kiszka wrote: when i run my kernel image with qemu-kvm it gives emulation error failure trying to execute the code outside ROM

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Ravi Kumar Kulkarni
On Mon, Feb 7, 2011 at 2:19 PM, Avi Kivity a...@redhat.com wrote: On 02/07/2011 10:33 AM, Ravi Kumar Kulkarni wrote: On Sun, Feb 6, 2011 at 10:50 PM, Avi Kivitya...@redhat.com  wrote:  On 02/04/2011 03:58 PM, Jan Kiszka wrote:       when i run my kernel image with qemu-kvm it gives

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Avi Kivity
On 02/07/2011 11:24 AM, Ravi Kumar Kulkarni wrote: On Mon, Feb 7, 2011 at 2:19 PM, Avi Kivitya...@redhat.com wrote: On 02/07/2011 10:33 AM, Ravi Kumar Kulkarni wrote: On Sun, Feb 6, 2011 at 10:50 PM, Avi Kivitya...@redhat.comwrote: On 02/04/2011 03:58 PM, Jan Kiszka wrote:

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Ravi Kumar Kulkarni
On Mon, Feb 7, 2011 at 2:59 PM, Avi Kivity a...@redhat.com wrote: On 02/07/2011 11:24 AM, Ravi Kumar Kulkarni wrote: On Mon, Feb 7, 2011 at 2:19 PM, Avi Kivitya...@redhat.com  wrote:  On 02/07/2011 10:33 AM, Ravi Kumar Kulkarni wrote:  On Sun, Feb 6, 2011 at 10:50 PM, Avi

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Avi Kivity
On 02/07/2011 11:47 AM, Ravi Kumar Kulkarni wrote: That is not the same address. And the code you posted doesn't make any sense. sorry for the mistake. here's the correct one (qemu) xp /20iw 0x1e2f3f7b 0x1e2f3f7b: (bad)

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Ravi Kumar Kulkarni
/7f idt 1f9af000/7ff cr0 11 cr2 0 cr3 0 cr4 0 cr8 0 efer 0 emulation failure, check dmesg for details

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-07 Thread Avi Kivity
On 02/07/2011 12:28 PM, Ravi Kumar Kulkarni wrote: On Mon, Feb 7, 2011 at 3:24 PM, Avi Kivitya...@redhat.com wrote: On 02/07/2011 11:47 AM, Ravi Kumar Kulkarni wrote: That is not the same address. And the code you posted doesn't make any sense. sorry for the mistake.

Re: [SeaBIOS] IO APIC emulation failure with qemu-kvm

2011-02-06 Thread Avi Kivity
On 02/04/2011 03:58 PM, Jan Kiszka wrote: when i run my kernel image with qemu-kvm it gives emulation error failure trying to execute the code outside ROM or RAM at fec0(IO APIC base address) but the same code runs fine with qemu. can anyone please point me where might be the

IO APIC emulation failure with qemu-kvm

2011-02-04 Thread Ravi Kumar Kulkarni
Hi all, I'm Initializing the Local and IO APIC for a propeitary operating system running in Virtualized Environment . Im facing some problem with qemu-kvm but the code runs fine with qemu. when i run my kernel image with qemu-kvm it gives emulation error failure trying to execute the code

Re: IO APIC emulation failure with qemu-kvm

2011-02-04 Thread Jan Kiszka
On 2011-02-04 14:35, Ravi Kumar Kulkarni wrote: Hi all, I'm Initializing the Local and IO APIC for a propeitary operating system running in Virtualized Environment . Im facing some problem with qemu-kvm but the code runs fine with qemu. Does it also run fine with qemu-kvm and

[COMMIT master] KVM: Reenter guest after emulation failure if due to access to non-mmio address

2010-07-08 Thread Avi Kivity
that this was attempt to do MMIO and reports emulation failure to userspace since there is no way to fix the situation. This logic has a race though. If two vcpus tries to write to the same shadowed page simultaneously both will enter emulator, but only one of them will find the page in shadow page hash

Re: [PATCH 3/3] Reenter guest after instruction emulation failure if emulation was due to access to non-mmio address.

2010-07-08 Thread Avi Kivity
assumes that this was attempt to do MMIO and reports emulation failure to userspace since there is no way to fix the situation. This logic has a race though. If two vcpus tries to write to the same shadowed page simultaneously both will enter emulator, but only one of them will find the page in shadow

Re: [PATCH 3/3] Reenter guest after instruction emulation failure if emulation was due to access to non-mmio address.

2010-07-08 Thread Avi Kivity
. If page is not in shadow page hash KVM assumes that this was attempt to do MMIO and reports emulation failure to userspace since there is no way to fix the situation. This logic has a race though. If two vcpus tries to write to the same shadowed page simultaneously both will enter emulator

Re: [PATCH 3/3] Reenter guest after instruction emulation failure if emulation was due to access to non-mmio address.

2010-07-08 Thread Gleb Natapov
the page and reenter guest to allow vcpu to execute the instruction. If page is not in shadow page hash KVM assumes that this was attempt to do MMIO and reports emulation failure to userspace since there is no way to fix the situation. This logic has a race though. If two vcpus tries to write

Re: [PATCH 3/3] Reenter guest after instruction emulation failure if emulation was due to access to non-mmio address.

2010-07-08 Thread Avi Kivity
On 07/08/2010 12:17 PM, Gleb Natapov wrote: btw, that will mean another page walk, so better fold into kvm_mmu_unprotect_page_virt() (which needs a new name, since it does more than unprotect a page now). But this code will be taken very rarely and usually on the way to failure anyway,

[PATCH v2 3/3] Reenter guest after instruction emulation failure if emulation was due to access to non-mmio address.

2010-07-08 Thread Gleb Natapov
and reports emulation failure to userspace since there is no way to fix the situation. This logic has a race though. If two vcpus tries to write to the same shadowed page simultaneously both will enter emulator, but only one of them will find the page in shadow page hash since the one who founds it also

Re: [PATCH v2 3/3] Reenter guest after instruction emulation failure if emulation was due to access to non-mmio address.

2010-07-08 Thread Avi Kivity
assumes that this was attempt to do MMIO and reports emulation failure to userspace since there is no way to fix the situation. This logic has a race though. If two vcpus tries to write to the same shadowed page simultaneously both will enter emulator, but only one of them will find the page in shadow

[PATCH 3/3] Reenter guest after instruction emulation failure if emulation was due to access to non-mmio address.

2010-07-07 Thread Gleb Natapov
and reports emulation failure to userspace since there is no way to fix the situation. This logic has a race though. If two vcpus tries to write to the same shadowed page simultaneously both will enter emulator, but only one of them will find the page in shadow page hash since the one who founds it also

[COMMIT master] KVM: handle emulation failure case first

2010-05-05 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com If emulation failed return immediately. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 01bb1f3..4121a9f 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c

[COMMIT master] KVM: x86 emulator: x86_emulate_insn() return -1 only in case of emulation failure

2010-05-05 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com Currently emulator returns -1 when emulation failed or IO is needed. Caller tries to guess whether emulation failed by looking at other variables. Make it easier for caller to recognise error condition by always returning -1 in case of failure. For this new

[PATCHv2 17/23] KVM: handle emulation failure case first.

2010-04-28 Thread Gleb Natapov
If emulation failed return immediately. Signed-off-by: Gleb Natapov g...@redhat.com --- arch/x86/kvm/x86.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 696b34b..445769b 100644 ---

[PATCHv2 14/23] KVM: x86 emulator: x86_emulate_insn() return -1 only in case of emulation failure

2010-04-28 Thread Gleb Natapov
Currently emulator returns -1 when emulation failed or IO is needed. Caller tries to guess whether emulation failed by looking at other variables. Make it easier for caller to recognise error condition by always returning -1 in case of failure. For this new emulator internal return value

[PATCH 16/23] KVM: handle emulation failure case first.

2010-04-27 Thread Gleb Natapov
If emulation failed return immediately. Signed-off-by: Gleb Natapov g...@redhat.com --- arch/x86/kvm/x86.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4f0a0a1..f1ebeed 100644 ---

[PATCH 13/23] KVM: x86 emulator: x86_emulate_insn() return -1 only in case of emulation failure

2010-04-27 Thread Gleb Natapov
Currently emulator returns -1 when emulation failed or IO is needed. Caller tries to guess whether emulation failed by looking at other variables. Make it easier for caller to recognise error condition by always returning -1 in case of failure. For this new emulator internal return value

[PATCH 02/38] KVM: VMX: Remove emulation failure report

2010-02-16 Thread Avi Kivity
to do. So we remove the emulation failure report in handle_invalid_guest_state(), and would inspected the guest using userspace tool in the future. Signed-off-by: Sheng Yang sh...@linux.intel.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- arch/x86/kvm/vmx.c |1 - 1 files changed, 0

[COMMIT master] kvm: qemu: Remove reminder for checking dmesg after emulation failure

2010-02-07 Thread Avi Kivity
== KVM_INTERNAL_ERROR_EMULATION) -fprintf(stderr, emulation failure, check dmesg for details\n); +fprintf(stderr, emulation failure\n); vm_stop(0); return 1; } -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to majord

Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-19 Thread Sheng Yang
On Tuesday 19 January 2010 15:57:57 Gleb Natapov wrote: On Tue, Jan 19, 2010 at 09:54:44AM +0200, Avi Kivity wrote: On 01/19/2010 05:06 AM, Sheng Yang wrote: There are two problems with the kernel failure report. First, it doesn't report enough data - registers, surrounding instructions,

[PATCH] KVM: x86: Remove emulation failure report

2010-01-19 Thread Sheng Yang
As Avi noted: There are two problems with the kernel failure report. First, it doesn't report enough data - registers, surrounding instructions, etc. that are needed to explain what is going on. Second, it can flood dmesg, which is a pretty bad thing to do. So we remove the emulation failure

[PATCH] kvm: qemu: Remove reminder for checking dmesg after emulation failure

2010-01-19 Thread Sheng Yang
== KVM_INTERNAL_ERROR_EMULATION) -fprintf(stderr, emulation failure, check dmesg for details\n); +fprintf(stderr, emulation failure\n); vm_stop(0); return 1; } -- 1.5.4.5 -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord

Re: [PATCH] kvm: qemu: Remove reminder for checking dmesg after emulation failure

2010-01-19 Thread Marcelo Tosatti
On Tue, Jan 19, 2010 at 05:43:58PM +0800, Sheng Yang wrote: User can use QEmu to get more information. E.g. using the QEmu built-in disassembly to get the failure instruction like(in the monitor): x /20i $eip to dump the code at $eip, or using x /20i $eip-20 to look around. Applied both,

Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-18 Thread Sheng Yang
On Sunday 17 January 2010 20:34:23 Avi Kivity wrote: On 01/15/2010 10:44 AM, Sheng Yang wrote: Currently we only have handle_invalid_guest_state() reported emulation failure... Signed-off-by: Sheng Yangsh...@linux.intel.com --- arch/x86/kvm/mmu.c |1 + 1 files changed, 1

Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-18 Thread Avi Kivity
On 01/18/2010 11:32 AM, Sheng Yang wrote: On Sunday 17 January 2010 20:34:23 Avi Kivity wrote: On 01/15/2010 10:44 AM, Sheng Yang wrote: Currently we only have handle_invalid_guest_state() reported emulation failure... This is intentional - instead of spamming dmesg, we exit

Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-18 Thread Sheng Yang
On Monday 18 January 2010 19:32:14 Avi Kivity wrote: On 01/18/2010 11:32 AM, Sheng Yang wrote: On Sunday 17 January 2010 20:34:23 Avi Kivity wrote: On 01/15/2010 10:44 AM, Sheng Yang wrote: Currently we only have handle_invalid_guest_state() reported emulation failure

Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-18 Thread Avi Kivity
On 01/19/2010 05:06 AM, Sheng Yang wrote: There are two problems with the kernel failure report. First, it doesn't report enough data - registers, surrounding instructions, etc. that are needed to explain what is going on. Second, it can flood dmesg, which is a pretty bad thing to do.

Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-18 Thread Gleb Natapov
On Tue, Jan 19, 2010 at 09:54:44AM +0200, Avi Kivity wrote: On 01/19/2010 05:06 AM, Sheng Yang wrote: There are two problems with the kernel failure report. First, it doesn't report enough data - registers, surrounding instructions, etc. that are needed to explain what is going on. Second,

Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-17 Thread Avi Kivity
On 01/15/2010 10:44 AM, Sheng Yang wrote: Currently we only have handle_invalid_guest_state() reported emulation failure... Signed-off-by: Sheng Yangsh...@linux.intel.com --- arch/x86/kvm/mmu.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/mmu.c b

[PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()

2010-01-15 Thread Sheng Yang
Currently we only have handle_invalid_guest_state() reported emulation failure... Signed-off-by: Sheng Yang sh...@linux.intel.com --- arch/x86/kvm/mmu.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 4f5508c..037e52a 100644

[COMMIT master] Handle emulation failure in userspace

2009-09-09 Thread Avi Kivity
From: Mohammed Gamal m.gamal...@gmail.com Since we return to userspace from KVM on invalid state emulation failure, let qemu handle it. Signed-off-by: Mohammed Gamal m.gamal...@gmail.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/qemu-kvm.c b/qemu-kvm.c index 7349c8d

Re: [PATCH 2/2] Handle emulation failure in userspace

2009-09-01 Thread Marcelo Tosatti
On Fri, Aug 28, 2009 at 04:48:53PM +0200, Mohammed Gamal wrote: Since we return to userspace from KVM on invalid state emulation failure, let qemu handle it. Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- qemu-kvm.c |8 1 files changed, 8 insertions(+), 0 deletions

Re: [PATCH 2/2] Handle emulation failure in userspace

2009-09-01 Thread Mohammed Gamal
On Tue, Sep 1, 2009 at 2:31 PM, Marcelo Tosattimtosa...@redhat.com wrote: On Fri, Aug 28, 2009 at 04:48:53PM +0200, Mohammed Gamal wrote: Since we return to userspace from KVM on invalid state emulation failure, let qemu handle it. Signed-off-by: Mohammed Gamal m.gamal...@gmail.com

[PATCH] Handle emulation failure in userspace

2009-09-01 Thread Mohammed Gamal
Since we return to userspace from KVM on invalid state emulation failure, let qemu handle it. Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- qemu-kvm.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index b59e403..090a3ae 100644

Re: [PATCH] Handle emulation failure in userspace

2009-09-01 Thread Marcelo Tosatti
On Tue, Sep 01, 2009 at 03:13:20PM +0200, Mohammed Gamal wrote: Since we return to userspace from KVM on invalid state emulation failure, let qemu handle it. Applied, thanks. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org

[PATCH 2/2][RESEND] Handle emulation failure in userspace

2009-08-31 Thread Mohammed Gamal
Since we return to userspace from KVM on invalid state emulation failure, let qemu handle it. Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- qemu-kvm.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index b59e403..a1648e0 100644

[PATCH 2/2] Handle emulation failure in userspace

2009-08-28 Thread Mohammed Gamal
Since we return to userspace from KVM on invalid state emulation failure, let qemu handle it. Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- qemu-kvm.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index b59e403..a1648e0 100644

Re: [PATCH] VMX: Return to userspace on invalid state emulation failure

2009-08-26 Thread Avi Kivity
) { kvm_report_emulation_failure(vcpu, emulation failure); + vcpu-run-exit_reason = KVM_EXIT_INTERNAL_ERROR; + vcpu-run-internal.suberror = KVM_INTERNAL_ERROR_EMULATION; break; } @@ -3607,7 +3609,9 @@ static void vmx_vcpu_run(struct kvm_vcpu

Re: [PATCH] VMX: Return to userspace on invalid state emulation failure

2009-08-26 Thread Mohammed Gamal
)                if (err != EMULATE_DONE) {                        kvm_report_emulation_failure(vcpu, emulation failure); +                       vcpu-run-exit_reason = KVM_EXIT_INTERNAL_ERROR; +                       vcpu-run-internal.suberror = KVM_INTERNAL_ERROR_EMULATION;                        break

Re: [PATCH] VMX: Return to userspace on invalid state emulation failure

2009-08-26 Thread Avi Kivity
handle_invalid_guest_state(struct kvm_vcpu *vcpu) if (err != EMULATE_DONE) { kvm_report_emulation_failure(vcpu, emulation failure); + vcpu-run-exit_reason = KVM_EXIT_INTERNAL_ERROR; + vcpu-run-internal.suberror

Re: [PATCH] VMX: Return to userspace on invalid state emulation failure

2009-08-24 Thread Avi Kivity
) { kvm_report_emulation_failure(vcpu, emulation failure); + kvm_run-exit_reason = KVM_EXIT_INTERNAL_ERROR; + kvm_run-internal.suberror = KVM_INTERNAL_ERROR_EMULATION; break; } @@ -3612,7 +3614,8 @@ static void vmx_vcpu_run(struct kvm_vcpu

[PATCH] VMX: Return to userspace on invalid state emulation failure

2009-08-24 Thread Mohammed Gamal
1ee811c..423e44f 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3341,6 +3341,8 @@ static void handle_invalid_guest_state(struct kvm_vcpu *vcpu, if (err != EMULATE_DONE) { kvm_report_emulation_failure(vcpu, emulation failure

[PATCH] VMX: Return to userspace on invalid state emulation failure

2009-08-24 Thread Mohammed Gamal
6b57eed..c559bb7 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3337,6 +3337,8 @@ static void handle_invalid_guest_state(struct kvm_vcpu *vcpu) if (err != EMULATE_DONE) { kvm_report_emulation_failure(vcpu, emulation failure

[PATCH] VMX: Return to userspace on invalid state emulation failure

2009-08-23 Thread Mohammed Gamal
1ee811c..6030671 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3341,6 +3341,8 @@ static void handle_invalid_guest_state(struct kvm_vcpu *vcpu, if (err != EMULATE_DONE) { kvm_report_emulation_failure(vcpu, emulation failure

[PATCH 01/47] KVM: Return to userspace on emulation failure

2009-08-19 Thread Avi Kivity
Instead of mindlessly retrying to execute the instruction, report the failure to userspace. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/mmu.c |5 +++-- include/linux/kvm.h |7 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/mmu.c

[PATCH] KVM: VMX: Fix locking imbalance on emulation failure

2009-07-21 Thread Jan Kiszka
(vcpu, emulation failure); - return; + break; } if (signal_pending(current)) -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] KVM: VMX: Fix locking imbalance on emulation failure

2009-07-21 Thread Marcelo Tosatti
, if (err != EMULATE_DONE) { kvm_report_emulation_failure(vcpu, emulation failure); - return; + break; } if (signal_pending(current)) Applied, thanks. -- To unsubscribe from this list: send the line

Re: kvm: emulation failure

2009-06-22 Thread Sheng Yang
On Monday 22 June 2009 14:55:46 Ram Pai wrote: On Mon, 2009-06-22 at 13:12 +0800, Sheng Yang wrote: On Saturday 20 June 2009 03:23:40 Ram Pai wrote: I see this problem with a x86 sles10 guest running on x86_64 intel host. If the guest is reset abruptly and rebooted, some where before

Re: kvm: emulation failure

2009-06-22 Thread Ram Pai
On Mon, 2009-06-22 at 13:12 +0800, Sheng Yang wrote: On Saturday 20 June 2009 03:23:40 Ram Pai wrote: I see this problem with a x86 sles10 guest running on x86_64 intel host. If the guest is reset abruptly and rebooted, some where before grub sequence it hangs and the following message is

Re: kvm: emulation failure

2009-06-22 Thread Avi Kivity
On 06/22/2009 09:55 AM, Ram Pai wrote: On Mon, 2009-06-22 at 13:12 +0800, Sheng Yang wrote: On Saturday 20 June 2009 03:23:40 Ram Pai wrote: I see this problem with a x86 sles10 guest running on x86_64 intel host. If the guest is reset abruptly and rebooted, some where before grub

Re: kvm: emulation failure

2009-06-22 Thread Ram Pai
On Mon, 2009-06-22 at 11:26 +0300, Avi Kivity wrote: On 06/22/2009 09:55 AM, Ram Pai wrote: On Mon, 2009-06-22 at 13:12 +0800, Sheng Yang wrote: On Saturday 20 June 2009 03:23:40 Ram Pai wrote: I see this problem with a x86 sles10 guest running on x86_64 intel host. If the

Re: kvm: emulation failure

2009-06-21 Thread Sheng Yang
On Saturday 20 June 2009 03:23:40 Ram Pai wrote: I see this problem with a x86 sles10 guest running on x86_64 intel host. If the guest is reset abruptly and rebooted, some where before grub sequence it hangs and the following message is seen in the logs emulation failed (pagetable) rip 7ed5

kvm: emulation failure

2009-06-19 Thread Ram Pai
I see this problem with a x86 sles10 guest running on x86_64 intel host. If the guest is reset abruptly and rebooted, some where before grub sequence it hangs and the following message is seen in the logs emulation failed (pagetable) rip 7ed5 66 60 ac 20. I located this instruction sequence in

[COMMIT master] KVM: Return to userspace on emulation failure

2009-06-15 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Instead of mindlessly retrying to execute the instruction, report the failure to userspace. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 3f5dc35..7e9b29d 100644 --- a/arch/x86/kvm/mmu.c +++

Re: [PATCH] Do not calculate linear rip in emulation failure report

2008-06-13 Thread Glauber Costa
On Fri, Jun 13, 2008 at 11:14 PM, Avi Kivity [EMAIL PROTECTED] wrote: Glauber Costa wrote: I've changed it to use printk_ratelimit(). I've tested this option here before sending out the patch, since it would address all issues. But in error cases, it still seemed to generate too many

Re: [PATCH] Do not calculate linear rip in emulation failure report

2008-06-13 Thread Avi Kivity
Glauber Costa wrote: I don't think so. It wasn't enough messages to DoS the system. Just enough messages to annoy me. If emulation failure messages annoy you, I'm sure you can think of a way of removing them other than tampering with kvm_report_emulation_failure(). -- I have a truly

  1   2   >