[PATCH 2/3] KVM: MMU: don't write-protect if have new mapping to unsync page
Two cases maybe happen in kvm_mmu_get_page() function: - one case is, the goal sp is already in cache, if the sp is unsync, we only need update it to assure this mapping is valid, but not mark it sync and not write-protect sp->gfn since it not broke unsync rule(one shadow page for a gfn) - another case i... 15 May 2010 07:13
[PATCH 3/3] KVM: MMU: only update unsync page in invlpg path
Only unsync pages need updated at invlpg time since other shadow pages are write-protected Signed-off-by: Xiao Guangrong <xiaoguangrong(a)cn.fujitsu.com> --- arch/x86/kvm/paging_tmpl.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/pagin... 15 May 2010 07:13
[PATCH 1/3] KVM: MMU: split kvm_sync_page() function
Split kvm_sync_page() into kvm_sync_page() and kvm_sync_page_transient() to clarify the code address Avi's suggestion kvm_sync_page_transient() function only update shadow page but not mark it sync and not write protect sp->gfn. it will be used by later patch Signed-off-by: Xiao Guangrong <xiaoguangrong(a)cn.fuji... 15 May 2010 07:13
Loan Application
we lend loan at 3%,contact us via email: solutionteam2009(a)f-mail.net ---------------------------------------------------------------- This e-mail has been sent via JARING webmail at http://www.jaring.my -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordo... 15 May 2010 07:12
x86: Export tsc related information in sysfs
Venkatesh Pallipadi <venki(a)google.com> writes: From: Dan Magenheimer <dan.magenheimer(a)oracle.com> Kernel information about calibrated value of tsc_khz and tsc_stability (result of tsc warp test) are useful bits of information for any app that wants to use TSC directly. Export this read_only informat... 4 Jun 2010 11:26
[PATCH 3/4] drivers/hid: Eliminate use after free
From: Julia Lawall <julia(a)diku.dk> The skip label frees resp, which has not been allocated at the point of this goto and then does a break, based on the fact that err is non-zero. This is replaced by a break directly. A simplified version of the semantic match that finds this problem is as follows: (http://coc... 15 May 2010 06:08
[PATCH 1/4] drivers/char: Eliminate use after free
From: Julia Lawall <julia(a)diku.dk> In each case, the first argument to send_control_msg or __send_control_msg, respectively, has either not been successfully allocated or has been freed at the point of the call. In the first case, the first argument, port, is only used to access the portdev and id fields, in ord... 15 May 2010 06:08
[PATCH 4/4] drivers/media/video: Eliminate use after free
From: Julia Lawall <julia(a)diku.dk> The error value is saved in a new local variable err before freeing the containing structure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @free@ expression E; position p; @@ kfree@p(E) @@ ... 15 May 2010 06:08
[PATCH 2/4] drivers/scsi/aacraid: Eliminate use after free
From: Julia Lawall <julia(a)diku.dk> The debugging code using the freed structure is moved before the kfree. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @free@ expression E; position p; @@ kfree@p(E) @@ expression free.E, subE... 15 May 2010 06:08
x86 platform driver: intelligent power sharing driver
On Mon, May 10, 2010 at 10:00:46PM -0400, Andrew Morton wrote: + int i; + u16 avg; + + for (i = 0; i < IPS_SAMPLE_COUNT; i++) + total += (u64)(array[i] * 100); Actually, that does work. Somehow the compiler will promote array[i] to u64 _before_ doing the multiplication. I think. S... 15 May 2010 05:05