• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2021 SUSE LLC <mdoucha@suse.cz>
4  *
5  * Common definitions for communication between KVM guest and host.
6  */
7 
8 #ifndef KVM_COMMON_H_
9 #define KVM_COMMON_H_
10 
11 #define KVM_TNONE	-1	/* "No result" status value */
12 
13 /*
14  * Result value indicating end of test. If the test program exits using
15  * the HLT instruction with any valid result value other than KVM_TEXIT or
16  * TBROK, KVM runner will automatically resume VM execution after printing
17  * the message.
18  */
19 #define KVM_TEXIT	0xff
20 
21 #define KVM_RESULT_BASEADDR 0xfffff000
22 #define KVM_RESULT_SIZE 0x1000
23 
24 struct tst_kvm_result {
25 	int32_t result;
26 	int32_t lineno;
27 	uint64_t file_addr;
28 	char message[0];
29 };
30 
31 #endif /* KVM_COMMON_H_ */
32