]> err.no Git - linux-2.6/commit
KVM: Portability: Move memory segmentation to x86.c
authorCarsten Otte <cotte@de.ibm.com>
Mon, 29 Oct 2007 15:08:51 +0000 (16:08 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:57 +0000 (17:52 +0200)
commit5fb76f9be1a050a25e21a44ab2003c9d36a72a77
treefa5a184ade52e55746efb1bab59fa283ee3535ed
parent1fe779f8eccd16e527315e1bafd2b3a876ff2489
KVM: Portability: Move memory segmentation to x86.c

This patch moves the definition of segment_descriptor_64 for AMD64 and
EM64T from kvm_main.c to segment_descriptor.h. It also adds a proper
#ifndef...#define...#endif around that header file.
The implementation of segment_base is moved from kvm_main.c to x86.c.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
drivers/kvm/segment_descriptor.h
drivers/kvm/x86.c