From: "Anthony Harivel" <aharivel@redhat.com>
To: "Xiaoyao Li" <xiaoyao.li@intel.com>, <kvm@vger.kernel.org>
Cc: <rjarry@redhat.com>, "Paolo Bonzini" <pbonzini@redhat.com>,
"Christophe Fontaine" <cfontain@redhat.com>
Subject: Re: [RFC] KVM: x86: Give host userspace control for MSR_RAPL_POWER_UNIT and MSR_PKG_POWER_STATUS
Date: Fri, 20 Jan 2023 09:59:09 +0100 [thread overview]
Message-ID: <CPWW6ZULVEMY.1HWFUQFW6EMSG@fedora> (raw)
In-Reply-To: <d635edea-e181-3498-ceff-72434ab856cf@intel.com>
On Thu Jan 19, 2023 at 6:57 AM CET, Xiaoyao Li wrote:
> Set aside how user space VMM emulate these 2 MSRs correctly, it can
> request the MSR READ to exit to user space via KVM_X86_SET_MSR_FILTER.
> So user space VMM can just enable the read filter of these 2 MSRs and
> provide the emulation itself.
Thanks for your feedback. I totally miss out on this possibility. On
Qemu, only one msr is using it (MSR_CORE_THREAD_COUNT). I did a test
yesterday in Qemu adding a filter with kvm_filter_msr() and a callback
to setup the msr with a dummy value and it's perfectly working.
next prev parent reply other threads:[~2023-01-20 9:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-18 14:21 [RFC] KVM: x86: Give host userspace control for MSR_RAPL_POWER_UNIT and MSR_PKG_POWER_STATUS Anthony Harivel
2023-01-19 5:57 ` Xiaoyao Li
2023-01-20 8:59 ` Anthony Harivel [this message]
2023-01-19 23:27 ` Paolo Bonzini
2023-01-20 16:47 ` Anthony Harivel
2023-01-20 16:57 ` Paolo Bonzini
2023-01-23 12:43 ` Anthony Harivel
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=CPWW6ZULVEMY.1HWFUQFW6EMSG@fedora \
--to=aharivel@redhat.com \
--cc=cfontain@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rjarry@redhat.com \
--cc=xiaoyao.li@intel.com \
/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.