Print this page
XXXX remove i86xpv platform code
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/sys/xpv_support.h
          +++ new/usr/src/uts/i86pc/sys/xpv_support.h
↓ open down ↓ 30 lines elided ↑ open up ↑
  31   31  extern "C" {
  32   32  #endif
  33   33  
  34   34  #define __XEN_INTERFACE_VERSION__       __XEN_LATEST_INTERFACE_VERSION__
  35   35  
  36   36  #if !defined(_ASM)
  37   37  
  38   38  #include <sys/types.h>
  39   39  #include <sys/inttypes.h>
  40   40  #include <sys/dditypes.h>
  41      -#include <sys/xpv_impl.h>
  42      -#include <sys/xen_mmu.h>
  43   41  
       42 +/*
       43 + * XXX These originally were in retired xen_mmu.h and are likely to be not
       44 + * needed once all of the xpv related code is removed.
       45 + */
       46 +typedef uint64_t maddr_t;
       47 +typedef ulong_t mfn_t;
       48 +#define mfn_to_ma(mfn)  ((maddr_t)(mfn) << MMU_PAGESHIFT)
       49 +
  44   50  #define IPL_DEBUG       15      /* domain debug interrupt */
  45   51  #define IPL_CONS        9
  46   52  #define IPL_VIF         6
  47   53  #define IPL_VBD         5
  48   54  #define IPL_EVTCHN      1
  49   55  
  50   56  #define INVALID_EVTCHN 0
  51   57  
  52   58  typedef uint_t (*ec_handler_fcn_t)();
  53   59  
↓ open down ↓ 14 lines elided ↑ open up ↑
  68   74  
  69   75  /*
  70   76   * Stub functions to allow the FE drivers to build without littering them
  71   77   * with #ifdefs
  72   78   */
  73   79  extern void balloon_drv_added(int64_t);
  74   80  extern long balloon_free_pages(uint_t, mfn_t *, caddr_t, pfn_t *);
  75   81  extern void xen_release_pfn(pfn_t);
  76   82  extern void reassign_pfn(pfn_t, mfn_t);
  77   83  
  78      -extern shared_info_t *HYPERVISOR_shared_info;
  79   84  extern pfn_t xen_shared_info_frame;
  80   85  
  81   86  /*
  82   87   * Argument to xpv_feature(). This function will return -1 if a feature
  83   88   * is not available, 1 if a boolean feature is available, and a value >= 0
  84   89   * if a numeric value is requested.
  85   90   */
  86   91  #define XPVF_BITS               0       /* numeric (32 or 64) */
  87   92  #define XPVF_VERSION_MAJOR      1       /* numeric */
  88   93  #define XPVF_VERSION_MINOR      2       /* numeric */
↓ open down ↓ 14 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX