From: Anthony Liguori <aliguori@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: rthelen@netapp.com, T S <thileepan_@hotmail.com>,
Xen-devel@lists.xensource.com, ewan@xensource.com,
edwin.zhai@intel.com
Subject: Re: Detecting deadlocks with hypervisor..
Date: Fri, 07 Apr 2006 12:45:38 -0500 [thread overview]
Message-ID: <4436A542.9000305@us.ibm.com> (raw)
In-Reply-To: <10ef69c2c2859e3da371d0495a08625f@cl.cam.ac.uk>
Keir Fraser wrote:
>
> On 7 Apr 2006, at 18:11, T S wrote:
>
>> We took a look at the xc_linux_save() function ... and what we see is
>> that
>> the canonicalize action is actually done by the Dom-0 (and not by the
>> Dom-U);
>> Dom-0 is able to do this because it is able to access the page tables
>> of Dom-U
>> as well as the pfn2mfn list of the Dom-U. Based on this, we think the
>> Dom-0 can
>> actually save the 'context' of the deadlocked Dom-U. Please correct
>> me if this
>> claim is wrong.
>>
>> Also, given that Dom-0 can access the page tables and other
>> structures of the deadlocked guest,
>> can one of you be able to tell me what changes I need to do to
>> xm_linux_save( ) (and other related functions) to save the state of
>> the deadlocked guest without doing any handshake with the guest OS ?
>
> You can get at the consistent state of a guest by pausing it and then
> reading its state. However, the reason for the handshake is to ensure
> that the guest is not currently accessing pagetables or doing other
> critical operations. If it were then we could not safely translate its
> memory page addresses as it could have those addresses in places like
> its kernel stacks or register contexts, where they would not get
> translated and would cause a crash on restore.
I should add that this is a problem specific to writable page tables as
the guest must be aware of the actual physical pages that it is using.
With a VT/SVM guest or on an architecture that doesn't use writable page
tables, this isn't an issue.
Regards,
Anthony Liguoi
> -- Keir
>
next prev parent reply other threads:[~2006-04-07 17:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-19 2:14 Detecting deadlocks with hypervisor Thileepan Subramaniam
2006-03-19 6:37 ` Randy Thelen
2006-03-19 10:16 ` Edwin Zhai
2006-03-19 13:17 ` Ewan Mellor
2006-03-24 18:57 ` T S
2006-03-24 19:04 ` T S
2006-03-24 19:24 ` Anthony Liguori
2006-03-24 20:30 ` T S
2006-04-07 17:11 ` T S
2006-04-07 17:22 ` Keir Fraser
2006-04-07 17:45 ` Anthony Liguori [this message]
2006-04-07 17:41 ` Anthony Liguori
2006-04-08 1:47 ` T S
2006-04-08 14:38 ` Anthony Liguori
2006-03-19 16:30 ` Anthony Liguori
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=4436A542.9000305@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=Xen-devel@lists.xensource.com \
--cc=edwin.zhai@intel.com \
--cc=ewan@xensource.com \
--cc=rthelen@netapp.com \
--cc=thileepan_@hotmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.