From: Kai Luo <kluo@vmware.com>
To: xen-devel@lists.xensource.com
Subject: Question about the repeated page fault
Date: Sat, 21 Sep 2013 07:52:22 -0700 (PDT) [thread overview]
Message-ID: <2079492317.13239468.1379775142008.JavaMail.root@vmware.com> (raw)
In-Reply-To: <23281310.13239311.1379774911305.JavaMail.root@vmware.com>
[-- Attachment #1.1: Type: text/plain, Size: 940 bytes --]
Hello everyone:
Recently,I am working on a feature of intercepting the giving function in windows SSDT table,I replace address of function in SSDT whith an invalid address.
The question is when I trapped the page fault caused by accessing the invalid address and I recovered it to the correct function address,I can recive the same page fault again.That is to say:
1.I trapped a page fault caused by an invalid address in sh_page_fault(struct vcpu *v,unsigned long va,struct cpu_user_regs *regs)
2.I rescover the guest eip to the correct address using the following code(Missing something?):
regs->eip = <correct_addr>
__vmwrite(GUEST_RIP, <correct_addr>);
3.Another page fault caused by the same address occured
I dumped the vmcs when the page faults occured,contents in vmcs are almost the same except the 'Virtual processor ID',still confused.Could you help me to analyse the strange phenomenon? Thank you very much!
Jone
[-- Attachment #1.2: Type: text/html, Size: 1511 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next parent reply other threads:[~2013-09-21 14:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <23281310.13239311.1379774911305.JavaMail.root@vmware.com>
2013-09-21 14:52 ` Kai Luo [this message]
2013-09-21 16:02 ` Question about the repeated page fault Andrew Cooper
2013-09-21 18:04 ` Andrew Cooper
2013-09-22 1:48 ` Zhang, Yang Z
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=2079492317.13239468.1379775142008.JavaMail.root@vmware.com \
--to=kluo@vmware.com \
--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.