VirtualBox

source: vbox/trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp@ 29287

Last change on this file since 29287 was 28942, checked in by vboxsync, 15 years ago

Check GVM and GVMCPU as well (!)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 15.6 KB
Line 
1/* $Id: tstVMStructSize.cpp 28942 2010-04-30 15:05:35Z vboxsync $ */
2/** @file
3 * tstVMStructSize - testcase for check structure sizes/alignment
4 * and to verify that HC and GC uses the same
5 * representation of the structures.
6 */
7
8/*
9 * Copyright (C) 2006-2007 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20/*******************************************************************************
21* Header Files *
22*******************************************************************************/
23#include <VBox/cfgm.h>
24#include <VBox/cpum.h>
25#include <VBox/mm.h>
26#include <VBox/pgm.h>
27#include <VBox/selm.h>
28#include <VBox/trpm.h>
29#include <VBox/vmm.h>
30#include <VBox/stam.h>
31#include "PDMInternal.h"
32#include <VBox/pdm.h>
33#include "CFGMInternal.h"
34#include "CPUMInternal.h"
35#include "MMInternal.h"
36#include "PGMInternal.h"
37#include "SELMInternal.h"
38#include "TRPMInternal.h"
39#include "TMInternal.h"
40#include "IOMInternal.h"
41#include "REMInternal.h"
42#include "SSMInternal.h"
43#include "HWACCMInternal.h"
44#include "PATMInternal.h"
45#ifdef VBOX_WITH_VMI
46# include "PARAVInternal.h"
47#endif
48#include "VMMInternal.h"
49#include "DBGFInternal.h"
50#include "STAMInternal.h"
51#include "VMInternal.h"
52#include "CSAMInternal.h"
53#include "EMInternal.h"
54#include "REMInternal.h"
55#include "VMMR0/GMMR0Internal.h"
56#include "VMMR0/GVMMR0Internal.h"
57#include <VBox/vm.h>
58#include <VBox/uvm.h>
59#include <VBox/gvm.h>
60#include <VBox/param.h>
61#include <VBox/x86.h>
62
63#include "tstHelp.h"
64#include <stdio.h>
65
66
67
68int main()
69{
70 int rc = 0;
71 printf("tstVMStructSize: TESTING\n");
72
73 printf("info: struct VM: %d bytes\n", (int)sizeof(VM));
74
75#define CHECK_PADDING_VM(align, member) \
76 do \
77 { \
78 CHECK_PADDING(VM, member, align); \
79 CHECK_MEMBER_ALIGNMENT(VM, member, align); \
80 VM *p; \
81 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
82 printf("warning: VM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
83 #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
84 (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
85 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
86 } while (0)
87
88
89#define CHECK_PADDING_VMCPU(align, member) \
90 do \
91 { \
92 CHECK_PADDING(VMCPU, member, align); \
93 CHECK_MEMBER_ALIGNMENT(VMCPU, member, align); \
94 VMCPU *p; \
95 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
96 printf("warning: VMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
97 #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
98 (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
99 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
100 } while (0)
101
102#define CHECK_CPUMCTXCORE(member) \
103 do { \
104 if (RT_OFFSETOF(CPUMCTX, member) - RT_OFFSETOF(CPUMCTX, edi) != RT_OFFSETOF(CPUMCTXCORE, member)) \
105 { \
106 printf("error! CPUMCTX/CORE:: %s!\n", #member); \
107 rc++; \
108 } \
109 } while (0)
110
111#define CHECK_PADDING_UVM(align, member) \
112 do \
113 { \
114 CHECK_PADDING(UVM, member, align); \
115 CHECK_MEMBER_ALIGNMENT(UVM, member, align); \
116 UVM *p; \
117 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
118 printf("warning: UVM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
119 #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
120 (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
121 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
122 } while (0)
123
124#define CHECK_PADDING_UVMCPU(align, member) \
125 do \
126 { \
127 CHECK_PADDING(UVMCPU, member, align); \
128 CHECK_MEMBER_ALIGNMENT(UVMCPU, member, align); \
129 UVMCPU *p; \
130 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
131 printf("warning: UVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
132 #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
133 (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
134 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
135 } while (0)
136
137#define CHECK_PADDING_GVM(align, member) \
138 do \
139 { \
140 CHECK_PADDING(GVM, member, align); \
141 CHECK_MEMBER_ALIGNMENT(GVM, member, align); \
142 GVM *p; \
143 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
144 printf("warning: GVM::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
145 #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
146 (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
147 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
148 } while (0)
149
150#define CHECK_PADDING_GVMCPU(align, member) \
151 do \
152 { \
153 CHECK_PADDING(GVMCPU, member, align); \
154 CHECK_MEMBER_ALIGNMENT(GVMCPU, member, align); \
155 GVMCPU *p; \
156 if (sizeof(p->member.padding) >= (ssize_t)sizeof(p->member.s) + 128 + sizeof(p->member.s) / 20) \
157 printf("warning: GVMCPU::%-8s: padding=%-5d s=%-5d -> %-4d suggest=%-5u\n", \
158 #member, (int)sizeof(p->member.padding), (int)sizeof(p->member.s), \
159 (int)sizeof(p->member.padding) - (int)sizeof(p->member.s), \
160 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
161 } while (0)
162
163#define PRINT_OFFSET(strct, member) \
164 do \
165 { \
166 printf("info: %s::%s offset %#x (%d) sizeof %d\n", #strct, #member, (int)RT_OFFSETOF(strct, member), (int)RT_OFFSETOF(strct, member), (int)RT_SIZEOFMEMB(strct, member)); \
167 } while (0)
168
169
170
171 CHECK_SIZE(uint128_t, 128/8);
172 CHECK_SIZE(int128_t, 128/8);
173 CHECK_SIZE(uint64_t, 64/8);
174 CHECK_SIZE(int64_t, 64/8);
175 CHECK_SIZE(uint32_t, 32/8);
176 CHECK_SIZE(int32_t, 32/8);
177 CHECK_SIZE(uint16_t, 16/8);
178 CHECK_SIZE(int16_t, 16/8);
179 CHECK_SIZE(uint8_t, 8/8);
180 CHECK_SIZE(int8_t, 8/8);
181
182 CHECK_SIZE(X86DESC, 8);
183 CHECK_SIZE(X86DESC64, 16);
184 CHECK_SIZE(VBOXIDTE, 8);
185 CHECK_SIZE(VBOXIDTR, 10);
186 CHECK_SIZE(VBOXGDTR, 10);
187 CHECK_SIZE(VBOXTSS, 136);
188 CHECK_SIZE(X86FXSTATE, 512);
189 CHECK_SIZE(RTUUID, 16);
190 CHECK_SIZE(X86PTE, 4);
191 CHECK_SIZE(X86PD, PAGE_SIZE);
192 CHECK_SIZE(X86PDE, 4);
193 CHECK_SIZE(X86PT, PAGE_SIZE);
194 CHECK_SIZE(X86PTEPAE, 8);
195 CHECK_SIZE(X86PTPAE, PAGE_SIZE);
196 CHECK_SIZE(X86PDEPAE, 8);
197 CHECK_SIZE(X86PDPAE, PAGE_SIZE);
198 CHECK_SIZE(X86PDPE, 8);
199 CHECK_SIZE(X86PDPT, PAGE_SIZE);
200 CHECK_SIZE(X86PML4E, 8);
201 CHECK_SIZE(X86PML4, PAGE_SIZE);
202
203 PRINT_OFFSET(VM, cpum);
204 CHECK_PADDING_VM(64, cpum);
205 CHECK_PADDING_VM(64, vmm);
206 CHECK_PADDING_VM(64, pgm);
207 CHECK_PADDING_VM(64, hwaccm);
208 CHECK_PADDING_VM(64, trpm);
209 CHECK_PADDING_VM(64, selm);
210 CHECK_PADDING_VM(64, mm);
211 CHECK_PADDING_VM(64, pdm);
212 CHECK_PADDING_VM(64, iom);
213 CHECK_PADDING_VM(64, patm);
214 CHECK_PADDING_VM(64, csam);
215 CHECK_PADDING_VM(64, em);
216 CHECK_PADDING_VM(64, tm);
217 CHECK_PADDING_VM(64, dbgf);
218 CHECK_PADDING_VM(64, ssm);
219 CHECK_PADDING_VM(64, rem);
220 CHECK_PADDING_VM(8, vm);
221 CHECK_PADDING_VM(8, cfgm);
222#ifdef VBOX_WITH_VMI
223 CHECK_PADDING_VM(8, parav);
224#endif
225
226 PRINT_OFFSET(VMCPU, cpum);
227 CHECK_PADDING_VMCPU(64, cpum);
228 CHECK_PADDING_VMCPU(64, hwaccm);
229 CHECK_PADDING_VMCPU(64, em);
230 CHECK_PADDING_VMCPU(64, trpm);
231 CHECK_PADDING_VMCPU(64, tm);
232 CHECK_PADDING_VMCPU(64, vmm);
233 CHECK_PADDING_VMCPU(64, pdm);
234 CHECK_PADDING_VMCPU(64, iom);
235 CHECK_PADDING_VMCPU(64, dbgf);
236 CHECK_PADDING_VMCPU(4096, pgm);
237#ifdef VBOX_WITH_STATISTICS
238 PRINT_OFFSET(VMCPU, pgm.s.pStatTrap0eAttributionRC);
239#endif
240
241 CHECK_MEMBER_ALIGNMENT(VM, selm.s.Tss, 16);
242 PRINT_OFFSET(VM, selm.s.Tss);
243 PVM pVM;
244 if ((RT_OFFSETOF(VM, selm.s.Tss) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.Tss))
245 {
246 printf("error! SELM:Tss is crossing a page!\n");
247 rc++;
248 }
249 PRINT_OFFSET(VM, selm.s.TssTrap08);
250 if ((RT_OFFSETOF(VM, selm.s.TssTrap08) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.TssTrap08))
251 {
252 printf("error! SELM:TssTrap08 is crossing a page!\n");
253 rc++;
254 }
255 CHECK_MEMBER_ALIGNMENT(VM, trpm.s.aIdt, 16);
256 CHECK_MEMBER_ALIGNMENT(VM, aCpus[0], PAGE_SIZE);
257 CHECK_MEMBER_ALIGNMENT(VM, aCpus[1], PAGE_SIZE);
258 CHECK_MEMBER_ALIGNMENT(VM, aCpus[0].cpum.s.Host, 64);
259 CHECK_MEMBER_ALIGNMENT(VM, aCpus[0].cpum.s.Guest, 64);
260 CHECK_MEMBER_ALIGNMENT(VM, aCpus[1].cpum.s.Host, 64);
261 CHECK_MEMBER_ALIGNMENT(VM, aCpus[1].cpum.s.Guest, 64);
262 CHECK_MEMBER_ALIGNMENT(VM, aCpus[0].cpum.s.Hyper, 64);
263 CHECK_MEMBER_ALIGNMENT(VM, aCpus[1].cpum.s.Hyper, 64);
264 CHECK_MEMBER_ALIGNMENT(VM, cpum.s.GuestEntry, 64);
265
266 CHECK_MEMBER_ALIGNMENT(VMCPU, vmm.s.u64CallRing3Arg, 8);
267#if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64)
268 CHECK_MEMBER_ALIGNMENT(VMCPU, vmm.s.CallRing3JmpBufR0, 16);
269 CHECK_MEMBER_ALIGNMENT(VMCPU, vmm.s.CallRing3JmpBufR0.xmm6, 16);
270#endif
271 CHECK_MEMBER_ALIGNMENT(VM, vmm.s.u64LastYield, 8);
272 CHECK_MEMBER_ALIGNMENT(VM, vmm.s.StatRunRC, 8);
273 CHECK_MEMBER_ALIGNMENT(VM, StatTotalQemuToGC, 8);
274 CHECK_MEMBER_ALIGNMENT(VM, rem.s.uPendingExcptCR2, 8);
275 CHECK_MEMBER_ALIGNMENT(VM, rem.s.StatsInQEMU, 8);
276 CHECK_MEMBER_ALIGNMENT(VM, rem.s.Env, 64);
277
278 /* the VMCPUs are page aligned TLB hit reassons. */
279 CHECK_MEMBER_ALIGNMENT(VM, aCpus, 4096);
280 CHECK_SIZE_ALIGNMENT(VMCPU, 4096);
281
282 /* cpumctx */
283 CHECK_MEMBER_ALIGNMENT(CPUMCTX, fpu, 32);
284 CHECK_MEMBER_ALIGNMENT(CPUMCTX, edi, 32);
285 CHECK_MEMBER_ALIGNMENT(CPUMCTX, idtr, 4);
286 CHECK_MEMBER_ALIGNMENT(CPUMCTX, SysEnter, 8);
287 CHECK_CPUMCTXCORE(eax);
288 CHECK_CPUMCTXCORE(ebx);
289 CHECK_CPUMCTXCORE(ecx);
290 CHECK_CPUMCTXCORE(edx);
291 CHECK_CPUMCTXCORE(ebp);
292 CHECK_CPUMCTXCORE(esp);
293 CHECK_CPUMCTXCORE(edi);
294 CHECK_CPUMCTXCORE(esi);
295 CHECK_CPUMCTXCORE(eip);
296 CHECK_CPUMCTXCORE(eflags);
297 CHECK_CPUMCTXCORE(cs);
298 CHECK_CPUMCTXCORE(ds);
299 CHECK_CPUMCTXCORE(es);
300 CHECK_CPUMCTXCORE(fs);
301 CHECK_CPUMCTXCORE(gs);
302 CHECK_CPUMCTXCORE(ss);
303 CHECK_CPUMCTXCORE(r8);
304 CHECK_CPUMCTXCORE(r9);
305 CHECK_CPUMCTXCORE(r10);
306 CHECK_CPUMCTXCORE(r11);
307 CHECK_CPUMCTXCORE(r12);
308 CHECK_CPUMCTXCORE(r13);
309 CHECK_CPUMCTXCORE(r14);
310 CHECK_CPUMCTXCORE(r15);
311 CHECK_CPUMCTXCORE(esHid);
312 CHECK_CPUMCTXCORE(csHid);
313 CHECK_CPUMCTXCORE(ssHid);
314 CHECK_CPUMCTXCORE(dsHid);
315 CHECK_CPUMCTXCORE(fsHid);
316 CHECK_CPUMCTXCORE(gsHid);
317
318#if HC_ARCH_BITS == 32
319 /* CPUMHOSTCTX - lss pair */
320 if (RT_OFFSETOF(CPUMHOSTCTX, esp) + 4 != RT_OFFSETOF(CPUMHOSTCTX, ss))
321 {
322 printf("error! CPUMHOSTCTX lss has been split up!\n");
323 rc++;
324 }
325#endif
326 CHECK_SIZE_ALIGNMENT(CPUMCTX, 64);
327 CHECK_SIZE_ALIGNMENT(CPUMHOSTCTX, 64);
328 CHECK_SIZE_ALIGNMENT(CPUMCTXMSR, 64);
329
330 /* pdm */
331 CHECK_MEMBER_ALIGNMENT(PDMDEVINS, achInstanceData, 64);
332 CHECK_PADDING(PDMDEVINS, Internal, 1);
333 CHECK_MEMBER_ALIGNMENT(PDMUSBINS, achInstanceData, 16);
334 CHECK_PADDING(PDMUSBINS, Internal, 1);
335 CHECK_MEMBER_ALIGNMENT(PDMDRVINS, achInstanceData, 16);
336 CHECK_PADDING(PDMDRVINS, Internal, 1);
337 CHECK_PADDING2(PDMCRITSECT);
338
339 /* pgm */
340#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
341 CHECK_MEMBER_ALIGNMENT(PGMCPU, AutoSet, 8);
342#endif
343 CHECK_MEMBER_ALIGNMENT(PGMCPU, GCPhysCR3, sizeof(RTGCPHYS));
344 CHECK_MEMBER_ALIGNMENT(PGMCPU, aGCPhysGstPaePDs, sizeof(RTGCPHYS));
345 CHECK_MEMBER_ALIGNMENT(PGMCPU, DisState, 8);
346 CHECK_MEMBER_ALIGNMENT(PGMCPU, cPoolAccessHandler, 8);
347#ifdef VBOX_WITH_STATISTICS
348 CHECK_MEMBER_ALIGNMENT(PGMCPU, StatSyncPtPD, 8);
349 CHECK_MEMBER_ALIGNMENT(PGMCPU, StatR3Prefetch, 8);
350#endif
351 CHECK_MEMBER_ALIGNMENT(PGMPOOLPAGE, idx, sizeof(uint16_t));
352 CHECK_MEMBER_ALIGNMENT(PGMPOOLPAGE, pvPageR3, sizeof(RTHCPTR));
353 CHECK_MEMBER_ALIGNMENT(PGMPOOLPAGE, GCPhys, sizeof(RTGCPHYS));
354 CHECK_SIZE(PGMPAGE, 16);
355 CHECK_MEMBER_ALIGNMENT(PGMRAMRANGE, aPages, 16);
356 CHECK_MEMBER_ALIGNMENT(PGMMMIO2RANGE, RamRange, 16);
357
358 /* rem */
359 CHECK_MEMBER_ALIGNMENT(REM, aGCPtrInvalidatedPages, 8);
360 CHECK_PADDING3(REMHANDLERNOTIFICATION, u.PhysicalRegister, u.padding);
361 CHECK_PADDING3(REMHANDLERNOTIFICATION, u.PhysicalDeregister, u.padding);
362 CHECK_PADDING3(REMHANDLERNOTIFICATION, u.PhysicalModify, u.padding);
363 CHECK_SIZE_ALIGNMENT(REMHANDLERNOTIFICATION, 8);
364 CHECK_MEMBER_ALIGNMENT(REMHANDLERNOTIFICATION, u.PhysicalDeregister.GCPhys, 8);
365
366 /* TM */
367 CHECK_MEMBER_ALIGNMENT(TM, TimerCritSect, sizeof(uintptr_t));
368 CHECK_MEMBER_ALIGNMENT(TM, VirtualSyncLock, sizeof(uintptr_t));
369
370 /* misc */
371 CHECK_PADDING3(EMCPU, u.FatalLongJump, u.achPaddingFatalLongJump);
372 CHECK_SIZE_ALIGNMENT(VMMR0JMPBUF, 8);
373 CHECK_SIZE_ALIGNMENT(PATCHINFO, 8);
374#if 0
375 PRINT_OFFSET(VM, fForcedActions);
376 PRINT_OFFSET(VM, StatQemuToGC);
377 PRINT_OFFSET(VM, StatGCToQemu);
378#endif
379
380 CHECK_MEMBER_ALIGNMENT(IOM, EmtLock, sizeof(uintptr_t));
381 CHECK_MEMBER_ALIGNMENT(EM, CritSectREM, sizeof(uintptr_t));
382 CHECK_MEMBER_ALIGNMENT(PGM, CritSect, sizeof(uintptr_t));
383 CHECK_MEMBER_ALIGNMENT(PDM, CritSect, sizeof(uintptr_t));
384 CHECK_MEMBER_ALIGNMENT(MMHYPERHEAP, Lock, sizeof(uintptr_t));
385
386 /* hwaccm - 32-bit gcc won't align uint64_t naturally, so check. */
387 CHECK_MEMBER_ALIGNMENT(HWACCM, u64RegisterMask, 8);
388 CHECK_MEMBER_ALIGNMENT(HWACCM, vmx.hostCR4, 8);
389 CHECK_MEMBER_ALIGNMENT(HWACCM, vmx.msr.feature_ctrl, 8);
390 CHECK_MEMBER_ALIGNMENT(HWACCM, StatTPRPatchSuccess, 8);
391 CHECK_MEMBER_ALIGNMENT(HWACCMCPU, StatEntry, 8);
392 CHECK_MEMBER_ALIGNMENT(HWACCMCPU, vmx.pVMCSPhys, sizeof(RTHCPHYS));
393 CHECK_MEMBER_ALIGNMENT(HWACCMCPU, vmx.proc_ctls, 8);
394 CHECK_MEMBER_ALIGNMENT(HWACCMCPU, Event.intInfo, 8);
395
396 /* The various disassembler state members. */
397 CHECK_PADDING3(EMCPU, DisState, abDisStatePadding);
398 CHECK_PADDING3(HWACCMCPU, DisState, abDisStatePadding);
399 CHECK_PADDING3(IOMCPU, DisState, abDisStatePadding);
400 CHECK_PADDING3(PGMCPU, DisState, abDisStatePadding);
401
402 /* Make sure the set is large enough and has the correct size. */
403 CHECK_SIZE(VMCPUSET, 32);
404 if (sizeof(VMCPUSET) * 8 < VMM_MAX_CPU_COUNT)
405 {
406 printf("error! VMCPUSET is too small for VMM_MAX_CPU_COUNT=%u!\n", VMM_MAX_CPU_COUNT);
407 rc++;
408 }
409
410 printf("info: struct UVM: %d bytes\n", (int)sizeof(UVM));
411
412 CHECK_PADDING_UVM(32, vm);
413 CHECK_PADDING_UVM(32, mm);
414 CHECK_PADDING_UVM(32, pdm);
415 CHECK_PADDING_UVM(32, stam);
416
417 printf("info: struct UVMCPU: %d bytes\n", (int)sizeof(UVMCPU));
418 CHECK_PADDING_UVMCPU(32, vm);
419
420#ifdef VBOX_WITH_RAW_MODE
421 /*
422 * Compare HC and RC.
423 */
424 printf("tstVMStructSize: Comparing HC and RC...\n");
425# include "tstVMStructRC.h"
426#endif /* VBOX_WITH_RAW_MODE */
427
428 CHECK_PADDING_GVM(4, gvmm);
429 CHECK_PADDING_GVM(4, gmm);
430 CHECK_PADDING_GVMCPU(4, gvmm);
431
432 /*
433 * Report result.
434 */
435 if (rc)
436 printf("tstVMStructSize: FAILURE - %d errors\n", rc);
437 else
438 printf("tstVMStructSize: SUCCESS\n");
439 return rc;
440}
441
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette