This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [patch] monitor_table is getting set to 0 for domu x86_64

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] monitor_table is getting set to 0 for domu x86_64
From: "Scott Parish" <srparish@xxxxxxxxxx>
Date: Sat, 18 Jun 2005 19:49:11 +0000
Delivery-date: Sat, 18 Jun 2005 20:37:24 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/
monitor_table is pfn 0 when __context_switch goes to set cr3 for a
second domain.

I hacked update_pagetables to print out what monitor_table gets set
to, here's the output while launching a domu:

  (XEN) guest_table_user: 0x0
  (XEN) shadow_table: 0x0
  (XEN) guest_table: 0x169b
  (XEN) using guest_table_user: 0x0
  (XEN) cs: monitor_table: 0x0
  (XEN) Domain 1 (vcpu#0) crashed on cpu#0:

While the attached patch takes care of the problem, and i don't
understand everything i know about TF_kernel_mode and guest_table_user,
so likely a better solution is in order. If somebody wouldn't mind
saying a few words about either of these, i'd appreciate it.

With this patch i can tell that a domU actually makes some progress
(judging from the register state), before falling on its face when it
makes its first syscall.

Huge props to Jerone for pointing out sync_console to me!


Scott Parish
Signed-off-by: srparish@xxxxxxxxxx

Attachment: monitor-table.diff
Description: Text document

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>