kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KVM hook for code integrity checking
@ 2010-04-30 14:53 Suen Chun Hui
  2010-05-05  9:05 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Suen Chun Hui @ 2010-04-30 14:53 UTC (permalink / raw)
  To: kvm

Dear KVM developers,

I'm currently working on an open source security patch to use KVM to
implement code verification on a guest VM in runtime. Thus, it would be
very helpful if someone can point to me the right function or place to
look at for adding 2 hooks into the KVM paging code to:

1. Detect a new guest page (which I assume will imply a new pte and
imply a new spte).
Currently, I'm considering putting a hook in the function
mmu_set_spte(), but may there is a better place.
This hook will be used as the main entry point into the code
verification function

2. Detect a write fault to a read-only spte (eg. for the case of
updating the dirty bit back to the guest pte)
Unfortunately, I'm unable to find an appropriate place where this
actually takes place after reading the code many times.
This hook will be used to prevent a secondary "peek" page from modifying
an existing verified code page.

I will gladly contribute my work(my phd thesis) to the list once it is
workable, if anyone find it useful.
Thank you in advance.

Regards,
Chun Hui

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-06  9:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 14:53 KVM hook for code integrity checking Suen Chun Hui
2010-05-05  9:05 ` Avi Kivity
2010-05-06  4:51   ` Suen Chun Hui
2010-05-06  9:04     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).