public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Joerg Roedel <joerg.roedel@amd.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: kvm-devel <kvm-devel@lists.sourceforge.net>
Subject: Re: State of debug register emulation
Date: Tue, 29 Apr 2008 16:40:54 +0200	[thread overview]
Message-ID: <20080429144054.GZ6567@amd.com> (raw)
In-Reply-To: <48171D8D.8090505@siemens.com>

On Tue, Apr 29, 2008 at 03:07:25PM +0200, Jan Kiszka wrote:
> Hi,
> 
> looks like we are getting better and better here in hitting yet
> unsupported corner-case features of KVM :). This time our guest fiddles
> with hardware debugging registers, but quickly gets unhappy as they do
> not yet have the expected effect.

KVM is mostly tested with guests that run with paging. So a 16 bit
protected mode guest is not tested very well :)

> Joerg, I found you SVM-related patch series in the archive which does
> not seem to have raised much responses. Is this general direction OK?
> Does it allow self-debugging of guests? But how are conflicts resolved
> if both guest and host need the physical registers (host debugging the
> guest which is debugging itself)?

I sent a patchset in the past to enable guest debugging for SVM which
means debugging the guest from outside using gdb. But I was not able to
test these patches because the userspace side of guest debugging is
broken in the kvm-qemu.
Debugging in the guest should work without problems. The debug registers
are switched between guest and host if the guest uses them. So there
should be no problems when the guest and the host using the debug
registers.

> I would try to dig into the VMX side if the general architecture is
> -mostly- clear. [ Sorry, Joerg, someone put the latter type of HW on my
> desk :->. Hope I can once check our stuff against SVM as well! ]

With some debug output from SVM I can better help to  debug your
problems ;-)

Joerg

-- 
           |           AMD Saxony Limited Liability Company & Co. KG
 Operating |         Wilschdorfer Landstr. 101, 01109 Dresden, Germany
 System    |                  Register Court Dresden: HRA 4896
 Research  |              General Partner authorized to represent:
 Center    |             AMD Saxony LLC (Wilmington, Delaware, US)
           | General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

  reply	other threads:[~2008-04-29 14:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29 13:07 State of debug register emulation Jan Kiszka
2008-04-29 14:40 ` Joerg Roedel [this message]
2008-04-29 16:09   ` Jan Kiszka
2008-04-29 23:10     ` Avi Kivity
2008-05-02  8:47       ` Jan Kiszka
2008-05-02  9:54         ` Avi Kivity

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=20080429144054.GZ6567@amd.com \
    --to=joerg.roedel@amd.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm-devel@lists.sourceforge.net \
    /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