VC_SM_LOCK_NON_CACHED,
};
+/* Cache functions */
+#define VCSM_CACHE_OP_INV 0x01
+#define VCSM_CACHE_OP_FLUSH 0x02
+#define VCSM_CACHE_OP_CLEAN 0x03
+
/* Allocate a shared memory handle and block. */
int vc_sm_alloc(struct vc_sm_alloc_t *alloc, int *handle);
}
for (i = 0; i < sizeof(ioparam.s) / sizeof(*ioparam.s); i++) {
switch (ioparam.s[i].cmd) {
- default:
- case 0:
- break; /* NOOP */
- case 1: /* L1/L2 invalidate virtual range */
- case 2: /* L1/L2 clean physical range */
- case 3: /* L1/L2 clean+invalidate all */
+ case VCSM_CACHE_OP_INV: /* L1/L2 invalidate virtual range */
+ case VCSM_CACHE_OP_FLUSH: /* L1/L2 clean physical range */
+ case VCSM_CACHE_OP_CLEAN: /* L1/L2 clean+invalidate all */
/* Locate resource from GUID. */
resource =
vmcs_sm_acquire_resource(file_data, ioparam.s[i].handle);
vmcs_sm_release_resource(resource, 0);
break;
+ default:
+ break; /* NOOP */
}
}
}