tstVMStructSize.cpp revision 5b881922e3ab96801b8a2558e8de5f319276e8aa
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync/* $Id$ */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync/** @file
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * tstVMStructSize - testcase for check structure sizes/alignment
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * and to verify that HC and GC uses the same
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * representation of the structures.
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync */
c58f1213e628a545081c70e26c6b67a841cff880vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync/*
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * Copyright (C) 2006-2007 Oracle Corporation
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync *
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * available from http://www.virtualbox.org. This file is free software;
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * you can redistribute it and/or modify it under the terms of the GNU
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * General Public License (GPL) as published by the Free Software
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync/*******************************************************************************
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync* Header Files *
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync*******************************************************************************/
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/cfgm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/cpum.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/mm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/pgm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/selm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/trpm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/vmm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/stam.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "PDMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/pdm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "CFGMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "CPUMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "MMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "PGMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "SELMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "TRPMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "TMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "IOMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "REMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "SSMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "HMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "PATMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "VMMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "DBGFInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "STAMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "VMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "CSAMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "EMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "IEMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "REMInternal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "../VMMR0/GMMR0Internal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "../VMMR0/GVMMR0Internal.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/vm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/uvm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/vmm/gvm.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/param.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <VBox/dis.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <iprt/x86.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include "tstHelp.h"
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#include <stdio.h>
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsyncint main()
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync{
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync int rc = 0;
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("tstVMStructSize: TESTING\n");
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("info: struct VM: %d bytes\n", (int)sizeof(VM));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define CHECK_PADDING_VM(align, member) \
10d739d22a5d5a13803f7e34de34de010099270cvboxsync do \
10d739d22a5d5a13803f7e34de34de010099270cvboxsync { \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING(VM, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync VM *p = NULL; NOREF(p); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("warning: VM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define CHECK_PADDING_VMCPU(align, member) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync do \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync { \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_PADDING(VMCPU, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VMCPU, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync VMCPU *p = NULL; NOREF(p); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("warning: VMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define CHECK_CPUMCTXCORE(member) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync do { \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync unsigned off1 = RT_OFFSETOF(CPUMCTX, member) - RT_OFFSETOF(CPUMCTX, rax); \
ad27e1d5e48ca41245120c331cc88b50464813cevboxsync unsigned off2 = RT_OFFSETOF(CPUMCTXCORE, member); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (off1 != off2) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync { \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("error! CPUMCTX/CORE:: %s! (%#x vs %#x (ctx))\n", #member, off1, off2); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync rc++; \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define CHECK_PADDING_UVM(align, member) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync do \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync { \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING(UVM, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(UVM, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync UVM *p = NULL; NOREF(p); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("warning: UVM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } while (0)
be196d173cf52fa33016912e4745dbe1170ac53avboxsync
be196d173cf52fa33016912e4745dbe1170ac53avboxsync#define CHECK_PADDING_UVMCPU(align, member) \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync do \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync { \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_PADDING(UVMCPU, member, align); \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_MEMBER_ALIGNMENT(UVMCPU, member, align); \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync UVMCPU *p = NULL; NOREF(p); \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync printf("warning: UVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define CHECK_PADDING_GVM(align, member) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync do \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync { \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING(GVM, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(GVM, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync GVM *p = NULL; NOREF(p); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("warning: GVM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define CHECK_PADDING_GVMCPU(align, member) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync do \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync { \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_PADDING(GVMCPU, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(GVMCPU, member, align); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync GVMCPU *p = NULL; NOREF(p); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("warning: GVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
be196d173cf52fa33016912e4745dbe1170ac53avboxsync } while (0)
be196d173cf52fa33016912e4745dbe1170ac53avboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define PRINT_OFFSET(strct, member) \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync do \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync { \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("info: %10s::%-24s offset %#6x (%6d) sizeof %4d\n", #strct, #member, (int)RT_OFFSETOF(strct, member), (int)RT_OFFSETOF(strct, member), (int)RT_SIZEOFMEMB(strct, member)); \
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
be196d173cf52fa33016912e4745dbe1170ac53avboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(uint128_t, 128/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(int128_t, 128/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(uint64_t, 64/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(int64_t, 64/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(uint32_t, 32/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(int32_t, 32/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(uint16_t, 16/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(int16_t, 16/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(uint8_t, 8/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(int8_t, 8/8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86DESC, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86DESC64, 16);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(VBOXIDTE, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(VBOXIDTR, 10);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_SIZE(VBOXGDTR, 10);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(VBOXTSS, 136);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86FXSTATE, 512);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(RTUUID, 16);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PTE, 4);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PD, PAGE_SIZE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PDE, 4);
cecfddc5f644039b889734369f7087dcdeb42e85vboxsync CHECK_SIZE(X86PT, PAGE_SIZE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PTEPAE, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PTPAE, PAGE_SIZE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PDEPAE, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PDPAE, PAGE_SIZE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PDPE, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PDPT, PAGE_SIZE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PML4E, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(X86PML4, PAGE_SIZE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, cpum);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, cpum);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, vmm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, pgm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, pgm.s.CritSectX);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, pgm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, hm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, hm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, trpm);
88acfa6629a7976c0583c1712d2b5b22a87a5121vboxsync CHECK_PADDING_VM(64, selm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, mm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, pdm);
88acfa6629a7976c0583c1712d2b5b22a87a5121vboxsync CHECK_PADDING_VM(64, iom);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, patm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, csam);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, em);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /*CHECK_PADDING_VM(64, iem);*/
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, tm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, dbgf);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_PADDING_VM(64, ssm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(64, rem);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VM(8, vm);
eab872ee272cc9e799e0b68735b660deb84b8629vboxsync CHECK_PADDING_VM(8, cfgm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VMCPU, cpum);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, cpum);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, hm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, em);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, iem);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, trpm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, tm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, vmm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, pdm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, iom);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(64, dbgf);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#if 0
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VMCPU, abAlignment2);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync#endif
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VMCPU, pgm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_VMCPU(4096, pgm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#ifdef VBOX_WITH_STATISTICS
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VMCPU, pgm.s.pStatTrap0eAttributionRC);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#endif
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, selm.s.Tss, 16);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, selm.s.Tss);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync PVM pVM = NULL; NOREF(pVM);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if ((RT_OFFSETOF(VM, selm.s.Tss) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.Tss))
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync {
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("error! SELM:Tss is crossing a page!\n");
be196d173cf52fa33016912e4745dbe1170ac53avboxsync rc++;
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync }
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, selm.s.TssTrap08);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if ((RT_OFFSETOF(VM, selm.s.TssTrap08) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.TssTrap08))
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync {
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("error! SELM:TssTrap08 is crossing a page!\n");
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync rc++;
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync }
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_MEMBER_ALIGNMENT(VM, trpm.s.aIdt, 16);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[0], PAGE_SIZE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[1], PAGE_SIZE);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[0].cpum.s.Host, 64);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[0].cpum.s.Guest, 64);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[1].cpum.s.Host, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[1].cpum.s.Guest, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[0].cpum.s.Hyper, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus[1].cpum.s.Hyper, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
10d739d22a5d5a13803f7e34de34de010099270cvboxsync CHECK_MEMBER_ALIGNMENT(VM, cpum.s.pvApicBase, 8);
10d739d22a5d5a13803f7e34de34de010099270cvboxsync#endif
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VMCPU, vmm.s.u64CallRing3Arg, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64)
10d739d22a5d5a13803f7e34de34de010099270cvboxsync CHECK_MEMBER_ALIGNMENT(VMCPU, vmm.s.CallRing3JmpBufR0, 16);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VMCPU, vmm.s.CallRing3JmpBufR0.xmm6, 16);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#endif
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, vmm.s.u64LastYield, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, vmm.s.StatRunRC, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, StatTotalQemuToGC, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, rem.s.uPendingExcptCR2, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, rem.s.StatsInQEMU, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, rem.s.Env, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* the VMCPUs are page aligned TLB hit reasons. */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(VM, aCpus, 4096);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE_ALIGNMENT(VMCPU, 4096);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* cpumctx */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(CPUMCTX, fpu, 32);
10d739d22a5d5a13803f7e34de34de010099270cvboxsync CHECK_MEMBER_ALIGNMENT(CPUMCTX, rax, 32);
10d739d22a5d5a13803f7e34de34de010099270cvboxsync CHECK_MEMBER_ALIGNMENT(CPUMCTX, idtr.pIdt, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(CPUMCTX, gdtr.pGdt, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(CPUMCTX, SysEnter, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rax);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rcx);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rdx);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rbx);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rsp);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rbp);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rsi);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rdi);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r9);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r10);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r11);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r12);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r13);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r14);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(r15);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(es);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(ss);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(cs);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(ds);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(fs);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(gs);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rip);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_CPUMCTXCORE(rflags);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#if HC_ARCH_BITS == 32
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* CPUMHOSTCTX - lss pair */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (RT_OFFSETOF(CPUMHOSTCTX, esp) + 4 != RT_OFFSETOF(CPUMHOSTCTX, ss))
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync {
cecfddc5f644039b889734369f7087dcdeb42e85vboxsync printf("error! CPUMHOSTCTX lss has been split up!\n");
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync rc++;
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync }
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#endif
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE_ALIGNMENT(CPUMCTX, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE_ALIGNMENT(CPUMHOSTCTX, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE_ALIGNMENT(CPUMCTXMSRS, 64);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* pdm */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(PDMDEVINS, Internal);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(PDMDEVINS, achInstanceData);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PDMDEVINS, achInstanceData, 64);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_PADDING(PDMDEVINS, Internal, 1);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(PDMUSBINS, Internal);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(PDMUSBINS, achInstanceData);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PDMUSBINS, achInstanceData, 32);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING(PDMUSBINS, Internal, 1);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(PDMDRVINS, Internal);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(PDMDRVINS, achInstanceData);
27de6b7fcf72c0add242c8dbefff24fbdc7869ebvboxsync CHECK_MEMBER_ALIGNMENT(PDMDRVINS, achInstanceData, 32);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING(PDMDRVINS, Internal, 1);
78817f40cd3fec6cba19ad8a2df2a690970c5895vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING2(PDMCRITSECT);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* pgm */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#if defined(VBOX_WITH_2X_4GB_ADDR_SPACE) || defined(VBOX_WITH_RAW_MODE)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMCPU, AutoSet, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#endif
0aa150e34ed49f14aaa37368c2e6999ec89e5f43vboxsync CHECK_MEMBER_ALIGNMENT(PGMCPU, GCPhysCR3, sizeof(RTGCPHYS));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMCPU, aGCPhysGstPaePDs, sizeof(RTGCPHYS));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMCPU, DisState, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMCPU, cPoolAccessHandler, 8);
0aa150e34ed49f14aaa37368c2e6999ec89e5f43vboxsync CHECK_MEMBER_ALIGNMENT(PGMPOOLPAGE, idx, sizeof(uint16_t));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMPOOLPAGE, pvPageR3, sizeof(RTHCPTR));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMPOOLPAGE, GCPhys, sizeof(RTGCPHYS));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE(PGMPAGE, 16);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMRAMRANGE, aPages, 16);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGMMMIO2RANGE, RamRange, 16);
0aa150e34ed49f14aaa37368c2e6999ec89e5f43vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* rem */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(REM, aGCPtrInvalidatedPages, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING3(REMHANDLERNOTIFICATION, u.PhysicalRegister, u.padding);
b64d5de6949f62d8b70658f77d9f28f58b0d4668vboxsync CHECK_PADDING3(REMHANDLERNOTIFICATION, u.PhysicalDeregister, u.padding);
b64d5de6949f62d8b70658f77d9f28f58b0d4668vboxsync CHECK_PADDING3(REMHANDLERNOTIFICATION, u.PhysicalModify, u.padding);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE_ALIGNMENT(REMHANDLERNOTIFICATION, 8);
b64d5de6949f62d8b70658f77d9f28f58b0d4668vboxsync CHECK_MEMBER_ALIGNMENT(REMHANDLERNOTIFICATION, u.PhysicalDeregister.GCPhys, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* TM */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(TM, TimerCritSect, sizeof(uintptr_t));
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_MEMBER_ALIGNMENT(TM, VirtualSyncLock, sizeof(uintptr_t));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
be196d173cf52fa33016912e4745dbe1170ac53avboxsync /* misc */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING3(EMCPU, u.FatalLongJump, u.achPaddingFatalLongJump);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_SIZE_ALIGNMENT(VMMR0JMPBUF, 8);
be196d173cf52fa33016912e4745dbe1170ac53avboxsync CHECK_SIZE_ALIGNMENT(PATCHINFO, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#if 0
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, fForcedActions);
27de6b7fcf72c0add242c8dbefff24fbdc7869ebvboxsync PRINT_OFFSET(VM, StatQemuToGC);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PRINT_OFFSET(VM, StatGCToQemu);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#endif
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(IOM, CritSect, sizeof(uintptr_t));
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync#ifdef VBOX_WITH_REM
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(EM, CritSectREM, sizeof(uintptr_t));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#endif
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PGM, CritSectX, sizeof(uintptr_t));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(PDM, CritSect, sizeof(uintptr_t));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(MMHYPERHEAP, Lock, sizeof(uintptr_t));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /* hm - 32-bit gcc won't align uint64_t naturally, so check. */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HM, u64RegisterMask, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HM, vmx.hostCR4, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HM, vmx.msr.feature_ctrl, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HM, StatTprPatchSuccess, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HMCPU, StatEntry, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HMCPU, vmx.HCPhysVMCS, sizeof(RTHCPHYS));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HMCPU, vmx.u32ProcCtls, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_MEMBER_ALIGNMENT(HMCPU, Event.uIntrInfo, 8);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
10d739d22a5d5a13803f7e34de34de010099270cvboxsync /* Make sure the set is large enough and has the correct size. */
10d739d22a5d5a13803f7e34de34de010099270cvboxsync CHECK_SIZE(VMCPUSET, 32);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (sizeof(VMCPUSET) * 8 < VMM_MAX_CPU_COUNT)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync {
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("error! VMCPUSET is too small for VMM_MAX_CPU_COUNT=%u!\n", VMM_MAX_CPU_COUNT);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync rc++;
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync }
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("info: struct UVM: %d bytes\n", (int)sizeof(UVM));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_UVM(32, vm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_UVM(32, mm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_UVM(32, pdm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_UVM(32, stam);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync printf("info: struct UVMCPU: %d bytes\n", (int)sizeof(UVMCPU));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_UVMCPU(32, vm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync#ifdef VBOX_WITH_RAW_MODE
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /*
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * Compare HC and RC.
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("tstVMStructSize: Comparing HC and RC...\n");
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync# include "tstVMStructRC.h"
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync#endif /* VBOX_WITH_RAW_MODE */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_GVM(4, gvmm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_GVM(4, gmm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_PADDING_GVMCPU(4, gvmm);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /*
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * Check that the optimized access macros for PGMPAGE works correctly.
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGMPAGE Page;
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync PGM_PAGE_CLEAR(&Page);
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_PHYS_STATE(&Page) == PGM_PAGE_HNDL_PHYS_STATE_NONE);
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == false);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == false);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == false);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_SET_HNDL_PHYS_STATE(&Page, PGM_PAGE_HNDL_PHYS_STATE_ALL);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_PHYS_STATE(&Page) == PGM_PAGE_HNDL_PHYS_STATE_ALL);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
e41b10cedab46ca3ff69b2db87291a74ec1ddd61vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == true);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync PGM_PAGE_SET_HNDL_PHYS_STATE(&Page, PGM_PAGE_HNDL_PHYS_STATE_WRITE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_PHYS_STATE(&Page) == PGM_PAGE_HNDL_PHYS_STATE_WRITE);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == false);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync PGM_PAGE_CLEAR(&Page);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync PGM_PAGE_SET_HNDL_VIRT_STATE(&Page, PGM_PAGE_HNDL_VIRT_STATE_ALL);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_VIRT_STATE(&Page) == PGM_PAGE_HNDL_VIRT_STATE_ALL);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == true);
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync
f2ffcc39cf4469a87fea28faf36a3918493bf7c1vboxsync PGM_PAGE_SET_HNDL_VIRT_STATE(&Page, PGM_PAGE_HNDL_VIRT_STATE_WRITE);
b7c1d1e088392fc0698ab8732e2c24f54d92dcbdvboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_VIRT_STATE(&Page) == PGM_PAGE_HNDL_VIRT_STATE_WRITE);
b7c1d1e088392fc0698ab8732e2c24f54d92dcbdvboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
b7c1d1e088392fc0698ab8732e2c24f54d92dcbdvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
b7c1d1e088392fc0698ab8732e2c24f54d92dcbdvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == false);
b7c1d1e088392fc0698ab8732e2c24f54d92dcbdvboxsync
b7c1d1e088392fc0698ab8732e2c24f54d92dcbdvboxsync
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync PGM_PAGE_CLEAR(&Page);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync PGM_PAGE_SET_HNDL_PHYS_STATE(&Page, PGM_PAGE_HNDL_PHYS_STATE_ALL);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync PGM_PAGE_SET_HNDL_VIRT_STATE(&Page, PGM_PAGE_HNDL_VIRT_STATE_WRITE);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_PHYS_STATE(&Page) == PGM_PAGE_HNDL_PHYS_STATE_ALL);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_VIRT_STATE(&Page) == PGM_PAGE_HNDL_VIRT_STATE_WRITE);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == true);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync PGM_PAGE_SET_HNDL_PHYS_STATE(&Page, PGM_PAGE_HNDL_PHYS_STATE_WRITE);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync PGM_PAGE_SET_HNDL_VIRT_STATE(&Page, PGM_PAGE_HNDL_VIRT_STATE_ALL);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_PHYS_STATE(&Page) == PGM_PAGE_HNDL_PHYS_STATE_WRITE);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_VIRT_STATE(&Page) == PGM_PAGE_HNDL_VIRT_STATE_ALL);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
b79e4344bf4eb8033fd06d560cd864192728bd0bvboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == true);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_SET_HNDL_PHYS_STATE(&Page, PGM_PAGE_HNDL_PHYS_STATE_WRITE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_SET_HNDL_VIRT_STATE(&Page, PGM_PAGE_HNDL_VIRT_STATE_WRITE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_PHYS_STATE(&Page) == PGM_PAGE_HNDL_PHYS_STATE_WRITE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_VIRT_STATE(&Page) == PGM_PAGE_HNDL_VIRT_STATE_WRITE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == false);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_SET_HNDL_VIRT_STATE(&Page, PGM_PAGE_HNDL_VIRT_STATE_NONE);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_PHYS_STATE(&Page) == PGM_PAGE_HNDL_PHYS_STATE_WRITE);
6757b795f7bfac39777e1e86a49fa120f86def25vboxsync CHECK_EXPR(PGM_PAGE_GET_HNDL_VIRT_STATE(&Page) == PGM_PAGE_HNDL_VIRT_STATE_NONE);
6757b795f7bfac39777e1e86a49fa120f86def25vboxsync CHECK_EXPR(PGM_PAGE_HAS_ANY_HANDLERS(&Page) == true);
6757b795f7bfac39777e1e86a49fa120f86def25vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_HANDLERS(&Page) == true);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_HAS_ACTIVE_ALL_HANDLERS(&Page) == false);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#undef AssertFatal
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define AssertFatal(expr) do { } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#undef Assert
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync#define Assert(expr) do { } while (0)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_CLEAR(&Page);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HCPHYS_NA(&Page) == 0);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_SET_HCPHYS(NULL, &Page, UINT64_C(0x0000fffeff1ff000));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HCPHYS_NA(&Page) == UINT64_C(0x0000fffeff1ff000));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_SET_HCPHYS(NULL, &Page, UINT64_C(0x0000000000001000));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HCPHYS_NA(&Page) == UINT64_C(0x0000000000001000));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync PGM_PAGE_INIT(&Page, UINT64_C(0x0000feedfacef000), UINT32_C(0x12345678), PGMPAGETYPE_RAM, PGM_PAGE_STATE_ALLOCATED);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_HCPHYS_NA(&Page) == UINT64_C(0x0000feedfacef000));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_PAGEID(&Page) == UINT32_C(0x12345678));
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_TYPE_NA(&Page) == PGMPAGETYPE_RAM);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync CHECK_EXPR(PGM_PAGE_GET_STATE_NA(&Page) == PGM_PAGE_STATE_ALLOCATED);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync /*
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync * Report result.
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync */
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync if (rc)
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("tstVMStructSize: FAILURE - %d errors\n", rc);
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync else
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync printf("tstVMStructSize: SUCCESS\n");
922f46b2f42ccb05e3c9cba34bbd1d2c19e04120vboxsync return rc;
}