Thread (16 messages) 16 messages, 2 authors, 2021-06-21

Re: [PATCH v12 4/7] KVM: stats: Support binary stats retrieval for a VCPU

From: Jing Zhang <hidden>
Date: 2021-06-21 17:42:51
Also in: kvm, kvmarm, linux-kselftest, linux-s390

On Mon, Jun 21, 2021 at 11:46 AM Paolo Bonzini [off-list ref] wrote:
On 19/06/21 00:27, Jing Zhang wrote:
quoted
+     struct kvm_vcpu_stat stat;
      struct kvm_dirty_ring dirty_ring;
+     char stats_id[KVM_STATS_NAME_SIZE];
I think stats_id needs to be part of the usercopy region too.

You can also use

offsetofend(struct kvm_vcpu, stats_id) - offsetof(struct kvm_vcpu, arch)

to compute the size.
Sure! Will do.
Paolo
Thanks,
Jing
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help