mirror of https://github.com/crash-utility/crash
vmware_vmss: make vmss global
It will allow to initialize and to use vmss from outside. Also move some useful macros to vmware_vmss.h file. This is a preparation for the following commit to extend vmss functionality. Signed-off-by: Alexey Makhalov <amakhalov@vmware.com>
This commit is contained in:
parent
a5e1aeb864
commit
e50c006dcc
|
@ -23,13 +23,7 @@
|
|||
|
||||
#define LOGPRX "vmw: "
|
||||
|
||||
/* VMware only supports X86/X86_64 virtual machines. */
|
||||
#define VMW_PAGE_SIZE (4096)
|
||||
#define VMW_PAGE_SHIFT (12)
|
||||
|
||||
#define MAX_BLOCK_DUMP (128)
|
||||
|
||||
static vmssdata vmss = { 0 };
|
||||
vmssdata vmss = { 0 };
|
||||
|
||||
int
|
||||
is_vmware_vmss(char *filename)
|
||||
|
|
|
@ -165,6 +165,14 @@ struct vmssdata {
|
|||
};
|
||||
typedef struct vmssdata vmssdata;
|
||||
|
||||
/* VMware only supports X86/X86_64 virtual machines. */
|
||||
#define VMW_PAGE_SIZE (4096)
|
||||
#define VMW_PAGE_SHIFT (12)
|
||||
|
||||
#define MAX_BLOCK_DUMP (128)
|
||||
|
||||
extern vmssdata vmss;
|
||||
|
||||
#define DEBUG_PARSE_PRINT(x) \
|
||||
do { \
|
||||
if (CRASHDEBUG(1)) { \
|
||||
|
|
Loading…
Reference in New Issue