[LTP] [PATCH 1/7] KVM: Add VMSAVE/VMLOAD intercept constants

Martin Doucha mdoucha@suse.cz
Thu May 18 10:27:50 CEST 2023


On 18. 05. 23 0:08, Petr Vorel wrote:
> Hi Martin,
> 
>> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
>> ---
>>   testcases/kernel/kvm/include/kvm_x86_svm.h | 5 +++++
>>   1 file changed, 5 insertions(+)
> 
>> diff --git a/testcases/kernel/kvm/include/kvm_x86_svm.h b/testcases/kernel/kvm/include/kvm_x86_svm.h
>> index 965d1e716..3eb832849 100644
>> --- a/testcases/kernel/kvm/include/kvm_x86_svm.h
>> +++ b/testcases/kernel/kvm/include/kvm_x86_svm.h
>> @@ -37,10 +37,15 @@
>>   /* SVM event intercept IDs */
>>   #define SVM_INTERCEPT_HLT 0x78
>>   #define SVM_INTERCEPT_VMRUN 0x80
>> +#define SVM_INTERCEPT_VMLOAD 0x82
>> +#define SVM_INTERCEPT_VMSAVE 0x83
>>   #define SVM_INTERCEPT_MAX 0x95
> 
>>   /* SVM vmrun exit codes */
>>   #define SVM_EXIT_HLT 0x78
>> +#define SVM_EXIT_VMRUN 0x80
>> +#define SVM_EXIT_VMLOAD 0x82
>> +#define SVM_EXIT_VMSAVE 0x83
> It looks like these three aren't used anywhere.

Yes, the SVM_EXIT_* constants are not used. I originally wanted to use 
them in one of the checks but then decided against it. But let's keep 
them anyway since they'll be needed to handle the intercepts in future 
tests.

-- 
Martin Doucha   mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic



More information about the ltp mailing list