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

Re: [PATCH v12 2/7] KVM: stats: Add fd-based API to read binary stats data

From: Jing Zhang <hidden>
Date: 2021-06-21 22:58:25
Also in: kvm, kvmarm, linux-kselftest, linux-s390

On Mon, Jun 21, 2021 at 5:45 PM Paolo Bonzini [off-list ref] wrote:
On 21/06/21 19:46, Jing Zhang wrote:
quoted
quoted
const struct kvm_stats_header kvm_vm_stats_header = {
         .name_size = KVM_STATS_NAME_SIZE,
         .num_desc = num_desc,
The problem is how we calculate the number of descriptors, which needs the
size of the descriptor array for each architecture.
Define another global variable to export the size of descriptor array?
Pass it as an argument?
The num_desc can only be initialized in the same file that defines the
descriptor array.
Looks like we have to have a global variable to save that. The
solution would be similar
to have a statically defined header for each arch.
So, keep the header structure for each arch?
Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help