aboutsummaryrefslogtreecommitdiff
path: root/benchmark.h
diff options
context:
space:
mode:
authorLiam Merwick <liam.merwick@oracle.com>2018-11-22 18:07:37 +0000
committerPaolo Bonzini <bonzini@gnu.org>2018-12-28 14:31:29 +0100
commit9c48d67901bec379c9342e79a2dfa7c95a7a130f (patch)
treeee030d59b2e665bbfb991c656fb13e7d2fd91f8f /benchmark.h
parentfec27f4d23b7335a72c4c6a4bb75e94e7500669a (diff)
downloadqboot-9c48d67901bec379c9342e79a2dfa7c95a7a130f.zip
qboot-9c48d67901bec379c9342e79a2dfa7c95a7a130f.tar.gz
qboot-9c48d67901bec379c9342e79a2dfa7c95a7a130f.tar.bz2
pvh: add benchmark exit point
This commit adds a PVH specific VM exit point for use in benchmarking boot times using a QEMU specific device that terminates the QEMU process and thus the VM itself when handling those VM exits. Since the VM terminates right at those exit points, generic tools like time can be used to measure the time spent between the QEMU startup and termination moments. The QEMU device used for those measurement is called isa-debug-exit for the PC and Q35 machine types. These devices take 2 arguments: iobase and iosize. iobase specifies which IO port we need to write into to have these devices eventually handle the corresponding VM exit. If for example, QEMU is started with the following argument: -device isa-debug-exit,iobase=0xf4 then any IO write to 0xf4 will terminate the QEMU process and the corresponding VM. Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
Diffstat (limited to 'benchmark.h')
-rw-r--r--benchmark.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark.h b/benchmark.h
index 089c549..2be08e7 100644
--- a/benchmark.h
+++ b/benchmark.h
@@ -9,5 +9,6 @@
#define FW_START 1
#define LINUX_START_FWCFG 2
#define LINUX_START_BOOT 3
+#define LINUX_START_PVHBOOT 4
-#endif
+#endif /* BENCHMARK_H */