[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions about Cx and Px state uploading from dom0


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Wed, 23 Mar 2022 09:54:24 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UC4N03bVeZ/t5KHvR5dUDqN/ifs2FoNNcar7rJss1pI=; b=bzgh4nJ21IjyYekCPXWqkSzlTfyq3ffQIC9vrpW3dj5h1shHTmF9EiAe8Vsf9AXOzqaHKVJELE6hjw2A/voIPYEf+zJzUAqPNT1gCYeVXdw+J4lBASjOoe3/ppEo32Ug4uSJyX71W1/Etmon496G55JpSfG8+owBVpWYfnuFG2CaPSsnvqAjzSWCHEydhWt0hQVQk8KCkyhjRULenL10Pll4KTFawmUZ1F0k9EVTg8yJSd02ZMDky1oaiNpyQJzM345b3afw745mihuZqR4GfzvrpWgV8+XbiaDcSJ8ftBNVMqtQVMM93p24EhPvxB8iapBfm4bERgUfmMMTBsUafw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WT/NBUSwSWYdLRd3t8kDkAMNr+VxCmOgwJHwgIJY3raHfTOown4HMnGg3vvjd3RM+pUDjBVeD60SPg6Cuq8rif7bYI1R+ct3jIPBCBjVSLd/XLtKUUpxAAuLzlVC52SfjHQFbEisnEk6bBrZXVZpDZGt4SyQqf5bItv9srjYlSLNgBheyh7BnmmMafZW+h6gC7eQyclZ/N/QsVFZJWuVP3M4acbGIMOALkkKNfsBhzwO7wspTjzImCFdMICHk2v/sCBZ++vhZDccEoBU086lDJ6t0S9EjFLTcUcvTfDgPyxm6ztXMweaLOOptYdGFEUneAot77mRMeb7kom+FD9bbA==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Jan Beulich <JBeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 23 Mar 2022 08:54:43 +0000
  • Ironport-data: A9a23:++1YtqCZ1WO3FhVW/zfjw5YqxClBgxIJ4kV8jS/XYbTApD8j0GECn zAXDG2Bb//fNmukLYwnaoy1o0hXvJ/Uz4JqQQY4rX1jcSlH+JHPbTi7wuYcHM8wwunrFh8PA xA2M4GYRCwMZiaA4E/raNANlFEkvU2ybuOU5NXsZ2YgHWeIdA970Ug5w7Vj2NY06TSEK1jlV e3a8pW31GCNg1aYAkpMg05UgEoy1BhakGpwUm0WPZinjneH/5UmJMt3yZWKB2n5WuFp8tuSH I4v+l0bElTxpH/BAvv9+lryn9ZjrrT6ZWBigVIOM0Sub4QrSoXfHc/XOdJFAXq7hQllkPhy+ dN3icbtET04M7/+m/lNQkZnFHpxaPguFL/veRBTsOSWxkzCNXDt3+9vHAc9OohwFuRfWD8Us 6ZCcXZUM07F17neLLGTE4GAguw5K8bmJsUHs2xIxjDFF/c2B5vERs0m4PcGjWxp25gTTZ4yY eIeRSN0fi2aTCZ3N0pGFtEFjPeViHnwJmgwRFW9+vNsvjm7IBZK+KfpGMrYfJqNX8o9tmSyq 3/C/m/5KgoHL9HZwj2Amlq8i+mKkS7lVYY6ELyj6uUskFCV3nYUChAdSR28u/bRt6Klc4sBc QpOoHNo9PVsshzwJjXgY/GmiH21uCQgAYcIKfw3+jOO1/rFvDmeXWdRG1atd+canMMxQDUr0 HqAkNXoGSFjvdWpdJ6NyluHhWjsYHZIdAfucQdBFFJYuIe7/OnfmzqVFr5e/LiJYsoZ8N0a6 xSDt2AAiroalqbnPI3rrAmc01pASnUkJzPZBzk7vEr4tmuVh6b/PuREDGQ3C94Zfe51qXHb4 BA5dzC2trxmMH13qASDQf8WAJai7OufPTvXjDZHRsd9qGXyoC/zINwLv1mSwXuF1O5eJFcFh 2eJ5GtsCGJ7ZiP2PcebnarvYyjV8UQQPYu8Da2FBja/SpNwaBWG7ElTib24hAjQfLwXufhnY /+zKJ/0ZV5DUPgP5GfmFo81jO5wrghjlDy7eHwO50n+uZKEemWvQKsIWHPXKLhRAFWs+16Or b6y9qKiln1ibQEJSnKOoNBJcgxScyRT6FKfg5U/S9Nv6zFOQQkJI/TQ3akga8pimaFUnf3P5 XazRglTz1+XuJENAV7ihqxLAF83YatCkA==
  • Ironport-hdrordr: A9a23:EWZj6q0pgw37fbhXs7kjdwqjBUByeYIsimQD101hICG9Lfb3qy n+ppsmPEHP5Ar5OEtBpTiBUJPwJ0800aQFm7X5XI3SJzUO3VHIEGgM1/qG/9SNIVybygc/79 YeT0EdMqyJMbESt6+Ti2PUYrVQouVvmJrY+ds2pE0dND2CBZsQiDuQXW2gYzBLrUR9dOwEPa vZwvACiyureHwRYMj+Ln4ZX9Lbr9mOsJ79exYJCzMu9QHL1FqTmfbHOind+i1bfyJEwL8k/2 SAuwvl5p+7u/X+7hPHzWfc47lfhdOk4NpeA86njNQTN1zX+0+VTbUkf4fHkCE+oemp5lpvuN 7Qoy04N8A20H/VdnHdm2qZ5yDQlBIVr1Pyw16RhnXu5ebjQighNsZHjYVFNjPE9ksJprhHoe 929lPck6ASIQLLnSz76dSNfQptjFCIrX0rlvNWp2BDULEZdKRaoeUkjQlo+a87bW3HAb0cYa dT5Jm23ocWTbraVQGTgoBX+q3hYpxpdS32AnTruaSuokprdT5CvgglLfck7wY9HaIGOud5Dt v/Q9RVfZF1P7srhPFGdZA8qfXeMB2/ffuLChPRHWja
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello,

I was looking at implementing ACPI Cx and Px state uploading from
FreeBSD dom0, as my main test box is considerably slower without Xen
knowing about the Px states.  That has raised a couple of questions.

1. How to figure out what features to report available by OSPM when
calling the _PDC (or _OSC) ACPI method.  I'm confused by the usage of
this from Linux: it seems to be used to detect mwait support in
xen_check_mwait but not when calling _PDC (ie: in
acpi_processor_set_pdc).  I'm also not sure what the hypercall expects
the caller to provide.  Should buf[2] be set to all the possible
features supported by the OS and Xen will trim those as required?

2. When uploading Px states, what's the meaning of the shared_type
field in xen_processor_performance?  I've looked at the usage of the
field by Xen, and first of all it seems to be a layering violation
because the values set in the field (CPUFREQ_SHARED_TYPE_*) are not
exposed as part of the public interface.  This all works for Linux
because the same values are used by Xen and the Linux kernel.
Secondly, this is not part of the data fetched from ACPI AFAICT, so
I'm unsure how the value should be calculated.  I also wonder whether
this couldn't be done by Xen itself from the uploaded Px data (but
without knowing exactly how the value should be calculated it's hard
to tell).

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.