Remove useless code.
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
diff -r 039f2ccb1e38 xen/arch/ia64/vmx/mmio.c
--- a/xen/arch/ia64/vmx/mmio.c Tue Jul 31 10:30:40 2007 -0600
+++ b/xen/arch/ia64/vmx/mmio.c Fri Aug 03 18:00:02 2007 +0900
@@ -270,11 +270,9 @@ static void legacy_io_access(VCPU *vcpu,
static void mmio_access(VCPU *vcpu, u64 src_pa, u64 *dest, size_t s, int ma,
int dir)
{
- struct virtual_platform_def *v_plat;
//mmio_type_t iot;
unsigned long iot;
iot=__gpfn_is_io(vcpu->domain, src_pa>>PAGE_SHIFT);
- v_plat = vmx_vcpu_get_plat(vcpu);
perfc_incra(vmx_mmio_access, iot >> 56);
switch (iot) {
diff -r 039f2ccb1e38 xen/arch/ia64/vmx/vmx_vcpu.c
--- a/xen/arch/ia64/vmx/vmx_vcpu.c Tue Jul 31 10:30:40 2007 -0600
+++ b/xen/arch/ia64/vmx/vmx_vcpu.c Fri Aug 03 18:00:02 2007 +0900
@@ -151,12 +151,6 @@ IA64FAULT vmx_vcpu_cover(VCPU *vcpu)
return (IA64_NO_FAULT);
}
-struct virtual_platform_def *
-vmx_vcpu_get_plat(VCPU *vcpu)
-{
- return &(vcpu->domain->arch.vmx_platform);
-}
-
IA64FAULT vmx_vcpu_set_rr(VCPU *vcpu, u64 reg, u64 val)
{
ia64_rr oldrr,newrr;
diff -r 039f2ccb1e38 xen/include/asm-ia64/vmx_mm_def.h
--- a/xen/include/asm-ia64/vmx_mm_def.h Tue Jul 31 10:30:40 2007 -0600
+++ b/xen/include/asm-ia64/vmx_mm_def.h Fri Aug 03 18:00:02 2007 +0900
@@ -120,22 +120,6 @@ typedef enum { INSTRUCTION, DATA, REGIST
//typedef enum { MVHPT, STLB } vtlb_loc_type_t;
typedef enum { DATA_REF, NA_REF, INST_REF, RSE_REF } vhpt_ref_t;
-typedef enum {
- PIB_MMIO=0,
- VGA_BUFF,
- CHIPSET_IO,
- LOW_MMIO,
- LEGACY_IO,
- IO_SAPIC,
- NOT_IO
-} mmio_type_t;
-
-typedef struct mmio_list {
- mmio_type_t iot;
- u64 start; // start address of this memory IO block
- u64 end; // end address (include this one)
-} mmio_list_t;
-
static __inline__ uint64_t
bits_v(uint64_t v, uint32_t bs, uint32_t be)
{
diff -r 039f2ccb1e38 xen/include/asm-ia64/vmx_platform.h
--- a/xen/include/asm-ia64/vmx_platform.h Tue Jul 31 10:30:40 2007 -0600
+++ b/xen/include/asm-ia64/vmx_platform.h Fri Aug 03 18:00:02 2007 +0900
@@ -43,7 +43,6 @@
* it is not used on ia64 */
#define OS_TYPE_PORT 0xB2
-struct mmio_list;
typedef struct virtual_platform_def {
unsigned long gos_type;
unsigned long buffered_io_va;
@@ -52,7 +51,6 @@ typedef struct virtual_platform_def {
unsigned long shared_page_va;
unsigned long pib_base;
unsigned long params[HVM_NR_PARAMS];
- struct mmio_list *mmio;
/* One IOSAPIC now... */
struct viosapic viosapic;
struct vacpi vacpi;
diff -r 039f2ccb1e38 xen/include/asm-ia64/vmx_vcpu.h
--- a/xen/include/asm-ia64/vmx_vcpu.h Tue Jul 31 10:30:40 2007 -0600
+++ b/xen/include/asm-ia64/vmx_vcpu.h Fri Aug 03 18:00:02 2007 +0900
@@ -107,7 +107,6 @@ extern uint64_t guest_read_vivr(VCPU * v
extern uint64_t guest_read_vivr(VCPU * vcpu);
extern void vmx_inject_vhpi(VCPU * vcpu, u8 vec);
extern int vmx_vcpu_pend_interrupt(VCPU * vcpu, uint8_t vector);
-extern struct virtual_platform_def *vmx_vcpu_get_plat(VCPU * vcpu);
extern void memread_p(VCPU * vcpu, u64 * src, u64 * dest, size_t s);
extern void memread_v(VCPU * vcpu, thash_data_t * vtlb, u64 * src, u64 * dest,
size_t s);
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|