Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 274160
Collapse All | Expand All

(-)source-OLD/vmblock-only/linux/control.c (+6 lines)
Lines 46-52 Link Here
46
46
47
static struct proc_dir_entry *controlProcDirEntry;
47
static struct proc_dir_entry *controlProcDirEntry;
48
struct file_operations ControlFileOps = {
48
struct file_operations ControlFileOps = {
49
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
49
   .owner   = THIS_MODULE,
50
   .owner   = THIS_MODULE,
51
#endif
50
   .write   = ControlFileOpWrite,
52
   .write   = ControlFileOpWrite,
51
   .release = ControlFileOpRelease,
53
   .release = ControlFileOpRelease,
52
};
54
};
Lines 156-162 Link Here
156
      return -EINVAL;
158
      return -EINVAL;
157
   }
159
   }
158
160
161
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
159
   controlProcDirEntry->owner = THIS_MODULE;
162
   controlProcDirEntry->owner = THIS_MODULE;
163
#endif
160
164
161
   /* Create /proc/fs/vmblock/mountPoint */
165
   /* Create /proc/fs/vmblock/mountPoint */
162
   controlProcMountpoint = proc_mkdir(VMBLOCK_CONTROL_MOUNTPOINT,
166
   controlProcMountpoint = proc_mkdir(VMBLOCK_CONTROL_MOUNTPOINT,
Lines 168-174 Link Here
168
      return -EINVAL;
172
      return -EINVAL;
169
   }
173
   }
170
174
175
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
171
   controlProcMountpoint->owner = THIS_MODULE;
176
   controlProcMountpoint->owner = THIS_MODULE;
177
#endif
172
178
173
   /* Create /proc/fs/vmblock/dev */
179
   /* Create /proc/fs/vmblock/dev */
174
   controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
180
   controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
(-)source-OLD/vmmon-only/include/x86svm.h (+4 lines)
Lines 47-56 Link Here
47
#endif
47
#endif
48
48
49
/* SVM related MSRs */
49
/* SVM related MSRs */
50
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
50
#define MSR_VM_CR                  0xC0010114
51
#define MSR_VM_CR                  0xC0010114
52
#endif
51
#define MSR_IGNNE                  0xC0010115
53
#define MSR_IGNNE                  0xC0010115
52
#define MSR_SMM_CTL                0xC0010116
54
#define MSR_SMM_CTL                0xC0010116
55
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
53
#define MSR_VM_HSAVE_PA            0xC0010117
56
#define MSR_VM_HSAVE_PA            0xC0010117
57
#endif
54
58
55
#define MSR_VM_CR_SVM_LOCK         0x0000000000000008ULL
59
#define MSR_VM_CR_SVM_LOCK         0x0000000000000008ULL
56
#define MSR_VM_CR_SVME_DISABLE     0x0000000000000010ULL
60
#define MSR_VM_CR_SVME_DISABLE     0x0000000000000010ULL

Return to bug 274160