aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/vmx.c
diff options
context:
space:
mode:
authorShani Moideen <shani.moideen@wipro.com>2007-06-11 00:01:33 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-16 05:05:47 -0400
commita3870c47891629dae1765358fbaba3c49460f47a (patch)
treed79c6803f729938dfcf98feb77854444b704abde /drivers/kvm/vmx.c
parent129ee910df90738da950021a9b9784ea43d5f228 (diff)
KVM: VMX: Replace memset(<addr>, 0, PAGESIZE) with clear_page(<addr>)
Signed-off-by: Shani Moideen <shani.moideen@wipro.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r--drivers/kvm/vmx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index b969db1e0830..b909b5455675 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1180,16 +1180,16 @@ static int init_rmode_tss(struct kvm* kvm)
1180 } 1180 }
1181 1181
1182 page = kmap_atomic(p1, KM_USER0); 1182 page = kmap_atomic(p1, KM_USER0);
1183 memset(page, 0, PAGE_SIZE); 1183 clear_page(page);
1184 *(u16*)(page + 0x66) = TSS_BASE_SIZE + TSS_REDIRECTION_SIZE; 1184 *(u16*)(page + 0x66) = TSS_BASE_SIZE + TSS_REDIRECTION_SIZE;
1185 kunmap_atomic(page, KM_USER0); 1185 kunmap_atomic(page, KM_USER0);
1186 1186
1187 page = kmap_atomic(p2, KM_USER0); 1187 page = kmap_atomic(p2, KM_USER0);
1188 memset(page, 0, PAGE_SIZE); 1188 clear_page(page);
1189 kunmap_atomic(page, KM_USER0); 1189 kunmap_atomic(page, KM_USER0);
1190 1190
1191 page = kmap_atomic(p3, KM_USER0); 1191 page = kmap_atomic(p3, KM_USER0);
1192 memset(page, 0, PAGE_SIZE); 1192 clear_page(page);
1193 *(page + RMODE_TSS_SIZE - 2 * PAGE_SIZE - 1) = ~0; 1193 *(page + RMODE_TSS_SIZE - 2 * PAGE_SIZE - 1) = ~0;
1194 kunmap_atomic(page, KM_USER0); 1194 kunmap_atomic(page, KM_USER0);
1195 1195