From: Joe Laws <jlaws@andrew.cmu.edu>
To: Joe Laws <jlaws@andrew.cmu.edu>
Cc: xen-devel@lists.xensource.com
Subject: Re: Adding PTE Flag during Page Fault
Date: Sat, 14 Apr 2007 17:29:17 -0400 [thread overview]
Message-ID: <462147AD.5070402@andrew.cmu.edu> (raw)
In-Reply-To: <46213E8E.7070703@andrew.cmu.edu>
Tried changing the l1e by doing this:
l1e_write_atomic(&l1t[l1_table_offset(addr)],l1e);
unmap_domain_page(l1t);
Now it just causes Xen to crash and my computer to reboot.
Unfortunately I can only see the output to the log by doing xm dmesg,
which gets cleared on every reboot. Are there any efficient techniques
to get the latest xm dmesg output to file before the system crashes?
-Joe
Joe Laws wrote:
> I altered the method, "__spurious_page_fault", in "xen/arch/x86/traps.c"
> to change a page to present when it is marked as not present. I am
> attempting to do this using the "l1e_add_flags(l1e, _PAGE_PRESENT);"
> definition call. I then set it to return EXCRET_fault_fixed, so the
> trap should have the client retry what it was doing with the changes I
> made. Unfortunately after it returns from the page fault to the user,
> it immediately faults again on the same error at the same memory
> location. This means my "l1e_add_flags(l1e, _PAGE_PRESENT)" is not
> actually updating the correct location in memory or if it is, the
> changes get discarded immediately. Does anyone who is familiar with the
> page_fault trap code have any idea why my change to the PTE is not
> sticking. I tried doing a TLB flush for the memory address, but the
> same thing happens. My only other guess is that the l1e defined in the
> function is just a copy of the actual table entry, so I need to look
> back further where l1e was defined.
>
> Thanks,
> Joe
>
>
>
next prev parent reply other threads:[~2007-04-14 21:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-14 6:24 nat does not work with hvm Erdem Bayer
2007-04-14 9:37 ` Keir Fraser
2007-04-14 6:56 ` Erdem Bayer
2007-04-14 10:08 ` Keir Fraser
2007-04-14 20:50 ` Adding PTE Flag during Page Fault Joe Laws
2007-04-14 21:29 ` Joe Laws [this message]
2007-04-15 11:00 ` Keir Fraser
2007-04-17 14:53 ` Joe Laws
2007-04-15 11:05 ` Keir Fraser
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=462147AD.5070402@andrew.cmu.edu \
--to=jlaws@andrew.cmu.edu \
--cc=xen-devel@lists.xensource.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.