On 2018/7/19 17:10, Peter Maydell wrote: >> The user space will firstly check the KVM_CAP_VCPU_EVENTS through kvm_has_vcpu_events() to know whether KVM can support get/set vcpu events, >> If KVM supports get/set vcpu events, it will check KVM_CAP_ARM_SET_SERROR_ESR to know whether can set guest SError ESR, as shown the user space code in [1]. > OK, so this capability affects the behaviour of > KVM_SET_VCPU_EVENTS. Can you make sure the documentation > of KVM_SET_VCPU_EVENTS clearly explains what happens > and the effect of whether this capability is present, > please? People trying to understand the behaviour of > that ioctl are not going to know that they need to > look here as well. sure, I will. Thanks peter's reminder and comments.