we do not need Python to build anymore
This commit is contained in:
39
qemu/scripts/qapi-schema.json
Normal file
39
qemu/scripts/qapi-schema.json
Normal file
@ -0,0 +1,39 @@
|
||||
# -*- Mode: Python -*-
|
||||
#
|
||||
# QAPI Schema
|
||||
|
||||
# QAPI common definitions
|
||||
{ 'include': 'qapi/common.json' }
|
||||
|
||||
##
|
||||
# @X86CPURegister32
|
||||
#
|
||||
# A X86 32-bit register
|
||||
#
|
||||
# Since: 1.5
|
||||
##
|
||||
{ 'enum': 'X86CPURegister32',
|
||||
'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
|
||||
|
||||
##
|
||||
# @X86CPUFeatureWordInfo
|
||||
#
|
||||
# Information about a X86 CPU feature word
|
||||
#
|
||||
# @cpuid-input-eax: Input EAX value for CPUID instruction for that feature word
|
||||
#
|
||||
# @cpuid-input-ecx: #optional Input ECX value for CPUID instruction for that
|
||||
# feature word
|
||||
#
|
||||
# @cpuid-register: Output register containing the feature bits
|
||||
#
|
||||
# @features: value of output register, containing the feature bits
|
||||
#
|
||||
# Since: 1.5
|
||||
##
|
||||
{ 'type': 'X86CPUFeatureWordInfo',
|
||||
'data': { 'cpuid-input-eax': 'int',
|
||||
'*cpuid-input-ecx': 'int',
|
||||
'cpuid-register': 'X86CPURegister32',
|
||||
'features': 'int' } }
|
||||
|
14
qemu/scripts/qapi.sh
Normal file
14
qemu/scripts/qapi.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Run this scripts to create qapi below files in root dir
|
||||
# ../qapi-types.c
|
||||
# ../qapi-types.h
|
||||
# ../qapi-visit.c
|
||||
# ../qapi-visit.h
|
||||
|
||||
python scripts/qapi-types.py -h -o .. -b -i qapi-schema.json
|
||||
python scripts/qapi-types.py -c -o .. -b -i qapi-schema.json
|
||||
|
||||
python scripts/qapi-visit.py -h -o .. -b -i qapi-schema.json
|
||||
python scripts/qapi-visit.py -c -o .. -b -i qapi-schema.json
|
||||
|
30
qemu/scripts/qapi/common.json
Normal file
30
qemu/scripts/qapi/common.json
Normal file
@ -0,0 +1,30 @@
|
||||
# -*- Mode: Python -*-
|
||||
#
|
||||
# QAPI common definitions
|
||||
|
||||
##
|
||||
# @ErrorClass
|
||||
#
|
||||
# QEMU error classes
|
||||
#
|
||||
# @GenericError: this is used for errors that don't require a specific error
|
||||
# class. This should be the default case for most errors
|
||||
#
|
||||
# @CommandNotFound: the requested command has not been found
|
||||
#
|
||||
# @DeviceEncrypted: the requested operation can't be fulfilled because the
|
||||
# selected device is encrypted
|
||||
#
|
||||
# @DeviceNotActive: a device has failed to be become active
|
||||
#
|
||||
# @DeviceNotFound: the requested device has not been found
|
||||
#
|
||||
# @KVMMissingCap: the requested operation can't be fulfilled because a
|
||||
# required KVM capability is missing
|
||||
#
|
||||
# Since: 1.2
|
||||
##
|
||||
{ 'enum': 'ErrorClass',
|
||||
'data': [ 'GenericError', 'CommandNotFound', 'DeviceEncrypted',
|
||||
'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap' ] }
|
||||
|
Reference in New Issue
Block a user