public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Sheng Yang <sheng@linux.intel.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault()
Date: Mon, 18 Jan 2010 13:32:14 +0200	[thread overview]
Message-ID: <4B5446BE.9070009@redhat.com> (raw)
In-Reply-To: <201001181732.25678.sheng@linux.intel.com>

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 with an
>> internal error.  Modern qemu-kvm will halt and allow the user to inspect
>> the guest with the built-in disassembler.
>>
>>      
> I think keep it there still useful for some users. And we have the same report
> in handle_invalid_guest_state(), and we even have "emulation failure, check
> dmesg for details" in QEmu when handling KVM_INTERNAL_ERROR_EMULATION.
>
> I think add one line here is the easiest way to keep consistence, and is
> handy.
>    

Another way to keep consistency is to remove emulation failure reporting 
in handle_invalid_guest_state() :)

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.

I have a patch somewhere that adds instruction emulation bytes (both 
successful and failed) to ftrace.  That may be useful, perhaps.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-01-18 11:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15  8:44 [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault() Sheng Yang
2010-01-17 12:34 ` Avi Kivity
2010-01-18  9:32   ` Sheng Yang
2010-01-18 11:32     ` Avi Kivity [this message]
2010-01-19  3:06       ` Sheng Yang
2010-01-19  7:54         ` Avi Kivity
2010-01-19  7:57           ` Gleb Natapov
2010-01-19  8:05             ` Sheng Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B5446BE.9070009@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=sheng@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox