ia64/xen-unstable

diff xen/include/asm-ia64/vmx_vcpu.h @ 9765:7c7bcf173f8b

[IA64] cleanup vtlb code

This patch is to clean up vtlb code.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author awilliam@xenbuild.aw
date Tue Apr 25 20:53:38 2006 -0600 (2006-04-25)
parents 1abf3783975d
children 6e979aa0e6d2
line diff
     1.1 --- a/xen/include/asm-ia64/vmx_vcpu.h	Tue Apr 25 17:05:16 2006 -0600
     1.2 +++ b/xen/include/asm-ia64/vmx_vcpu.h	Tue Apr 25 20:53:38 2006 -0600
     1.3 @@ -64,8 +64,6 @@ extern void vmx_vcpu_set_psr(VCPU *vcpu,
     1.4  extern UINT64 vmx_vcpu_sync_mpsr(UINT64 mipsr, UINT64 value);
     1.5  extern void vmx_vcpu_set_psr_sync_mpsr(VCPU * vcpu, UINT64 value);
     1.6  extern IA64FAULT vmx_vcpu_cover(VCPU *vcpu);
     1.7 -extern thash_cb_t *vmx_vcpu_get_vtlb(VCPU *vcpu);
     1.8 -extern thash_cb_t *vmx_vcpu_get_vhpt(VCPU *vcpu);
     1.9  extern IA64FAULT vmx_vcpu_set_rr(VCPU *vcpu, UINT64 reg, UINT64 val);
    1.10  extern IA64FAULT vmx_vcpu_get_pkr(VCPU *vcpu, UINT64 reg, UINT64 *pval);
    1.11  IA64FAULT vmx_vcpu_set_pkr(VCPU *vcpu, UINT64 reg, UINT64 val);
    1.12 @@ -461,7 +459,7 @@ IA64FAULT vmx_vcpu_bsw1(VCPU *vcpu)
    1.13  #define redistribute_rid(rid)	(((rid) & ~0xffff) | (((rid) << 8) & 0xff00) | (((rid) >> 8) & 0xff))
    1.14  #endif
    1.15  static inline unsigned long
    1.16 -vmx_vrrtomrr(VCPU *v, unsigned long val)
    1.17 +vrrtomrr(VCPU *v, unsigned long val)
    1.18  {
    1.19      ia64_rr rr;
    1.20  
    1.21 @@ -477,6 +475,17 @@ vmx_vrrtomrr(VCPU *v, unsigned long val)
    1.22  #endif 
    1.23  
    1.24  }
    1.25 +static inline thash_cb_t *
    1.26 +vmx_vcpu_get_vtlb(VCPU *vcpu)
    1.27 +{
    1.28 +    return &vcpu->arch.vtlb;
    1.29 +}
    1.30 +
    1.31 +static inline thash_cb_t *
    1.32 +vcpu_get_vhpt(VCPU *vcpu)
    1.33 +{
    1.34 +    return &vcpu->arch.vhpt;
    1.35 +}
    1.36  
    1.37  #define check_work_pending(v)	\
    1.38      (event_pending((v)) || ((v)->arch.irq_new_pending))