Re: [PATCH 1/5] kvm: x86: Add payload to kvm_queued_exception and kvm_vcpu_events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/10/2018 20:29, Jim Mattson wrote:
> diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
> index 647f94128a85..2df2cca81cf5 100644
> --- a/Documentation/virtual/kvm/api.txt
> +++ b/Documentation/virtual/kvm/api.txt
> @@ -850,7 +850,7 @@ struct kvm_vcpu_events {
>  		__u8 injected;
>  		__u8 nr;
>  		__u8 has_error_code;
> -		__u8 pad;
> +		__u8 has_payload;
>  		__u32 error_code;
>  	} exception;
>  	struct {
> @@ -873,9 +873,11 @@ struct kvm_vcpu_events {
>  		__u8 smm_inside_nmi;
>  		__u8 latched_init;
>  	} smi;
> +	__u32 reserved[7];
> +	__u64 exception_payload;
>  };

This changes the size of the struct, and thus the ioctl number.  The
good part is that you don't need the capability, the bad part is that
you need a struct kvm_vcpu_events2 and ioctl KVM_GET/SET_VCPU_EVENTS2.

Thanks,

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux