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

Re: [PATCH v2] xen/vcpu: ignore VCPU_SSHOTTMR_future


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 19 Apr 2023 14:14:44 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=qYPWiUehziRNTyCPJNuNqeT2LIGKZjN4b6i91CCECGw=; b=aafTOkiThYD2//7ePg1LMTuLKKcXahsDaWyiA2HebVOJINQAQuOiiaGi/u5JNWMuFITRs6fT3bf/xreZSFR9rT9CIpZ3WqBXu+e1fxY0BRgcw48Vq8mm3SFuuP9SCa7Yr++6NfwNT8SJWC8xjwefVVofK07PvEk/ZvKH9hQ6XkTnbisoveLnpi84OhBcmeKP/tvSnOUPiL5xXVlCFP9JuhuP+my3pSN2/k6ymYsPTcTACF+Mv5JHqQZLJjF+LdlYjP81D0uK5SSqiWXjTJPlgjiurkvWCEjPTOcRazcIj7VRGQkSUU1UIwvzA3wdbiXFLxnfhtp5r+qf94ja0UjkSg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A8fAzLnzEdjpGhjAYtPwBIawNKIqU2ciziDeKIuqITLoyve7rMRCH4pREB9ojWIfHk+XBt45W+nJN/egKNBspLcAiSp/S3Ij3MN9XM8jjYHESD9rfb9SH/LZt/hShH5j0NEWAltPhbuw/yf2bdV1c2RMSsDfzOdhL87TxDa0v5cWPlYRIlkCv4UH2/5zIGCcJ7YsoewkCeK8S5KZF+wE2v4RcMhV4kNWx/67RXG80gnryqOGzinWUJ5RJFzWhXslt3s5OXcFtPR1hXJuXa3bRbIC3oOMzM8I/GXUUZOwxnAhigQ1bWF6/6jPr3knvFV4EBo1qzHlCaxuVV/+QEHUUA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Henry Wang <Henry.Wang@xxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 19 Apr 2023 12:15:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19.04.2023 13:45, Roger Pau Monne wrote:
> The usage of VCPU_SSHOTTMR_future in Linux prior to 4.7 is bogus.
> When the hypervisor returns -ENOTIME (timeout in the past) Linux keeps

Nit: -ETIME

> retrying to setup the timer with a higher timeout instead of
> self-injecting a timer interrupt.
>[...]
> --- a/CHANGELOG.md
> +++ b/CHANGELOG.md
> @@ -9,6 +9,8 @@ The format is based on [Keep a 
> Changelog](https://keepachangelog.com/en/1.0.0/)
>  ### Changed
>   - Repurpose command line gnttab_max_{maptrack_,}frames options so they don't
>     cap toolstack provided values.
> + - Ignore VCPU_SSHOTTMR_future VCPUOP_set_singleshot_timer flag. The only
> +   known user doesn't use it properly, leading to in-guest breakage.

Might this read a little better as

 - Ignore VCPUOP_set_singleshot_timer's VCPU_SSHOTTMR_future flag. The only
   known user doesn't use it properly, leading to in-guest breakage.

> --- a/xen/include/public/vcpu.h
> +++ b/xen/include/public/vcpu.h
> @@ -150,7 +150,7 @@ typedef struct vcpu_set_singleshot_timer 
> vcpu_set_singleshot_timer_t;
>  DEFINE_XEN_GUEST_HANDLE(vcpu_set_singleshot_timer_t);
>  
>  /* Flags to VCPUOP_set_singleshot_timer. */
> - /* Require the timeout to be in the future (return -ETIME if it's passed). 
> */
> + /* Ignored. */

I think this could do with something like "as of Xen 4.18", as the public
header shouldn't be tied to a specific version (and then perhaps also
retaining the original text). Arguably mentioning a specific version may be
a little odd in case we'd consider backporting this, but something would
imo better be said.

All this said - while I'm likely to ack the final patch, I would still feel
a little uneasy doing so.

Jan



 


Rackspace

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