All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jürgen Groß" <jgross@suse.com>
To: Elliott Mitchell <ehem+xen@m5p.com>
Cc: Rishi <2rushikeshj@gmail.com>, Jan Beulich <jbeulich@suse.com>,
	xen-devel@lists.xen.org
Subject: Re: [Xen-devel] Xen hiding thermal capabilities from Dom0
Date: Mon, 25 Nov 2019 09:25:55 +0100	[thread overview]
Message-ID: <bd02527e-9a8e-3a66-bdd6-13d200dacb3b@suse.com> (raw)
In-Reply-To: <20191123042906.GA79247@mattapan.m5p.com>

On 23.11.19 05:29, Elliott Mitchell wrote:
> On Thu, Nov 21, 2019 at 04:46:21PM +0100, J??rgen Gro?? wrote:
>> On 21.11.19 16:36, Jan Beulich wrote:
>>> On 21.11.2019 15:24, J??rgen Gro?? wrote:
>>>> So: no, just giving dom0 access to the management hardware isn't going
>>>> to fly. You need to have a proper virtualization layer for that purpose.
>>>
>>> Or, like I had done in our XenoLinux forward port, you need to
>>> go through hoops to make the coretemp driver actually understand
>>> the environment it's running in.
>>
>> This will still not guarantee you'll be able to reach all physical
>> cpus. IIRC you pinned the vcpu to the respective physical cpu for
>> performing its duty, but with cpupools this might not be possible for
>> all physical cpus in the system.
> 
> Similar to the issue of MCE support, might it instead be better to have
> *less* virtualization here instead of more?  The original idea behind Xen
> was to leave the hard to virtualize bits visible and work with Domain 0.
> 
> Might it be better to expose this functionality to Domain 0, then
> intercept the kernel calls?  Just needs 1 vcpu which can be scheduled on
> any processor and that can be moved around to retrieve the data.  This
> way Xen wouldn't need a proper driver for the management hardware.

In case dom0 is to handle this then it would be much easier to have a
way for dom0 to specify which physical cpu the data should be retrieved
from. Forcing a dom0 vcpu to run on a specific physical cpu would need
a major rework of the Xen scheduling (especially regarding cpupools, let
alone core scheduling).


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-11-25  8:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14 16:07 [Xen-devel] Xen hiding thermal capabilities from Dom0 Rishi
2019-11-14 16:35 ` Jan Beulich
2019-11-15 19:19   ` Rishi
2019-11-18  9:38     ` Jan Beulich
2019-11-19  5:23       ` Rishi
2019-11-19  9:17         ` Jan Beulich
2019-11-21 13:39           ` Rishi
2019-11-21 13:56             ` Roger Pau Monné
2019-11-21 15:26               ` Rishi
2019-11-21 15:45                 ` Roger Pau Monné
2019-11-21 15:52                   ` Jan Beulich
2019-11-21 15:45                 ` Jan Beulich
2019-11-21 14:24             ` Jürgen Groß
2019-11-21 15:31               ` Rishi
2019-11-21 15:36               ` Jan Beulich
2019-11-21 15:46                 ` Jürgen Groß
2019-11-21 15:47                   ` Jan Beulich
2019-11-23  4:29                   ` Elliott Mitchell
2019-11-25  8:25                     ` Jürgen Groß [this message]
2019-11-25 15:43                       ` Rishi
2019-11-25 15:54                         ` Jan Beulich
2019-11-21 15:40             ` Jan Beulich

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=bd02527e-9a8e-3a66-bdd6-13d200dacb3b@suse.com \
    --to=jgross@suse.com \
    --cc=2rushikeshj@gmail.com \
    --cc=ehem+xen@m5p.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xen.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.