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

Re: [RFC] Avoid dom0/HVM performance penalty from MSR access tightening


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 24 Feb 2022 09:52:45 +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=muXJK6EoVtkgr7j9P3+dhgM5a16YrMk6iISD3fXVho4=; b=TGnNU8bUzw7JTP1FyaLM4b0qmdq5/dN+OkgSjAO5jK0BxPpIlS0tksfdrYrG6PkwMHmhltNmhfw0+23u0qtTQVHipnBgM+u87UfJHCA9NNwQ+tBuAKp4H5u1vhD2LsV9ZqWIp/n+qCIEkriQtdQ9vfYvwTR5Vypwx/5ERV+b3T3e6Cwrbp4Vjr0P4d6WkY8rGoL8GtMGYO5GV1/rlCd6DgPU8MViD7fxXBdAXffe71IINxwYxU+UM32cVhfxNFIgIbIUNxZz70/lDRv+Sq7GrGInW9lFAfEjfi9xVMX5M3ngv2CawEM5mEDA94Hiv6ZMxEhZj1/3P7IYWj+L06Wf6w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KHaC65uYW1ZjA8MHlZvtfHtvhh1o+ukBNZlXBpxMgeFcYvkq+uA5FbKUkOT2pxUcLDCKa+55LH9jvZ17Jgj0ZYaSNTkOESoqfKAU92UKVLZJwTwN/ZGoiIkrhIxFE29IZKHSdC+kwZdnDeLc/K4laLQ6H0hQ8hjfvIgIk0ib5K7VIf3LGvgHb1tB22Qm2a3jlsnEHohFpr+6npYPrDZcyBt+SIV/YmYa1TyziCz6mfWRU8EDONmIcY8tFnPMoI3imWPuMFowKFvXKCT4wcN2DfH+kOkGc4LPjSuOvjzgd/pz5FhaZBNws3ziyUx464ac5dLU+W1HngeX7QKIoNkxeQ==
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Alex Olson <this.is.a0lson@xxxxxxxxx>
  • Delivery-date: Thu, 24 Feb 2022 08:53:04 +0000
  • Ironport-data: A9a23:XiZuSatxwydn6nELnuBS1XMzBOfnVHNeMUV32f8akzHdYApBsoF/q tZmKWqOOq6PNjake9l2a9u0/EoG65fWzd5jTARo+3g2EHsT+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZhSAgk/nOHNIQMcacUsxLbVYMpBwJ1FQzy4bVvqYy2YLjW1nX5 YuryyHiEATNNwBcYzp8B52r8HuDjNyq0N/PlgVjDRzjlAa2e0g9VPrzF4noR5fLatA88tqBb /TC1NmEElbxpH/BPD8HfoHTKSXmSpaKVeSHZ+E/t6KK2nCurQRquko32WZ1he66RFxlkvgoo Oihu6BcRi8JJO78xOYPcCVfDhs9I4xp/YLEJnWG5Jn7I03uKxMAwt1rBUAye4YZ5vx2ESdF8 vlwxDIlN07ZwbjsmfTiF7cq1p9LwMrDZevzvll6yj7UF7A+SI3rSKTW/95Imjw3g6iiGN6AO 5pJNmEzNHwsZTVCF3Y0Fq4RkNuUm0H7KjB0llS7o/c4tj27IAtZj+G2bYu9lsaxbdlVn13ep 3mA9jz9GRYcHNOawDuBtHmrg4fnjS79HY4fCrC83vprm0GIgHweDgUMUlm2quX/jVSxM/pdI UEJ/islrYAp6VemCNL6WnWFTGWs50BGHYAKSqtjtV/LmvG8Dxul6nYsbiQCWIAkpuwKQiEQl UGosNbUBjtiiejAIZ6CzYu8oTS3MCkTCGYNYy4YUAcIi+XeTJEPYgHnFYg6TvPs5jHhMXSpm m3R8nBi71kGpZNTj82GEUb7byVAT3QjZio8/U3pU22s9WuVj6b1NtXzuTA3ARutRbt1r2VtX lBZw6ByD8hUVPlhcRBhps1XQtlFAN7fbVXhbaZHRcVJythU0yfLkXpsyD9/Plx1Fc0PZCXkZ kTe0SsIusMOYifwMfUsPNrqYyjP8UQGPY67PhwzRoATCqWdiSfdpH0+DaJu9zqFfLcQfVEXZ s7ALJfE4YcyAqV71jumL9rxIpdwrh3SMVj7HMihpzz+iOL2TCfMFd8tbQvfBshkvfjsiFiEr L5i2z6ilkw3vBvWOXKMr+b+7DkicBAGOHwBg5YJLrXaelI+QgnMyZb5mNscRmCspIwM/s/g9 XChQE5Ijl35gHzMMwKRbX5/LrjoWP5CQbgTZ0TA4X7AN6AfXLuS
  • Ironport-hdrordr: A9a23:n0AUpavR9DdeJyMd/akZm1UO7skDjNV00zEX/kB9WHVpm6yj+v xGUs566faUskd0ZJhEo7q90ca7Lk80maQa3WBzB8bGYOCFghrKEGgK1+KLrwEIcxeUygc379 YDT0ERMrzN5VgRt7eG3OG7eexQvOVuJsqT9JjjJ3QGd3AVV0l5hT0JbTpyiidNNXJ77ZxSLu v72uN34wCOVF4wdcqBCnwMT4H41qf2fMKPW29+O/Y/gjP+9Q+V1A==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Feb 23, 2022 at 05:31:53PM +0100, Jan Beulich wrote:
> On 23.02.2022 17:11, Roger Pau Monné wrote:
> > On Wed, Feb 23, 2022 at 09:38:56AM -0600, Alex Olson wrote:
> >> 1) For conditions in which MSR registers are writeable from PV guests 
> >> (such as
> >> dom0),  they should probably be readable well, looks like 
> >> MSR_IA32_THERM_CONTROL
> >> is currently one of a small number of "unreadable" but writeable
> >> MSRs.  Otherwise seemingly valid read-(check/modify)-write operations will
> >> behave incorrectly under Xen.
> > 
> > So it's one of those MSRs that's only writable when dom0 has it's
> > vCPUs pinned. We could allow dom0 to read from it in that case (that's
> > an oversight of the MSR handling rework), but it would seem better to
> > just remove access to it altogether: it's bogus to allow dom0 to play
> > with the MSR in the first place IMO, and it won't really solve issues
> > like the one reported here unless dom0 vCPUs == pCPUs and all are
> > pinned, so that dom0 can fix the MSR in all CPUs.
> 
> Dropping this is imo only legitimate if we decide to do away with
> "cpufreq=dom0-kernel" and alike.

I would be fine with that. I think the mode is bogus anyway: dom0
doesn't have enough knowledge to take meaningful decisions, and it
would require that dom0 vCPUs == pCPUs, or else it's only acting on a
subset of CPUs which is already bogus IMO.

Thanks, Roger.



 


Rackspace

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