From: Matias Ezequiel Vara Larsen <matiasevara@gmail.com>
To: xen-devel@lists.xenproject.org
Subject: Design session "Using the new VCPU counters in XAPI"
Date: Fri, 23 Sep 2022 12:51:11 +0200 [thread overview]
Message-ID: <20220923105111.GA647305@horizon> (raw)
Participants: Pau, Edwin, Matias
- the semantics of the new interface for querying registers is now async, this would require a initialization phase in xcp-rrdd before query the counters.
- why this https://github.com/xenserver/xen.pg/blob/XS-8.2.x/master/mixed-domain-runstates.patch is not up-streamed?
- we need to implement a protocol to ensure consistency between producer(hypervisor) and consumer(user-space)
- we can get inspiration from in xen/arch/x86/time.c:__update_vcpu_system_time(). This relies on version_update_begin() and version_update_end()
- get inspiration from the comment at public/xen.h in the struct vcpu_time_info{} in which a version number is used
- get inspiration from arch/x86/time.c:read_xen_timer()
- we need something in user-space that relies on the same mechanism, i.e., get a consistent value if version number is the same before and after reading the structure.
- add bindings for acquiere resource see https://github.com/xapi-project/xen-api/blob/master/ocaml/xenopsd/c_stubs/xenctrlext_stubs.c#L460)
- also get inspiration from 2529c85
- we cannot find where is the implementation of this protocol in user-space. Xenctrl should implement it somewhere
reply other threads:[~2022-09-23 10:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220923105111.GA647305@horizon \
--to=matiasevara@gmail.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.