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

Re: [PATCH] xen/include/public: add macro for invalid grant reference


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 21 Feb 2022 15:18:22 +0100
  • 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=XYRP3BhV7zvkGGTmEbeaVC0JEmiUIRVhHZ+PkCd1HWw=; b=QVcTMQEl6EBnvGZhIbquMt4uD3kaVDMEFS2BrILjg6se70T3Tf4ZzCfQT6LItBsVA1LgPi8PNk6ZX+8zqMGXsza/CHd5B1jJSDnTT749gyX/z+W6c9DA5cEWj4GhktOLIzNygEVQeFv410RffluMwchaoU9mV+j+PqCEp7y8uVRVHsgTQVHRwCJgrOcP26y3yh94EnDUuYFSKTydwBEDP46C3snbC1A8ZwTlsyAgKH6g7W8YpCd6Lw+HNBxCxVtMEMenOzA/5kimFC8d9xQMNZr8UdVadubXSJAeS+wnmJKlk8tthKDnbXsyNkDJNOOfEnSb6gV4bIBH8yhi16L3dg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SJx2KEPCFKjWtPLK3WeDv/uyQuHWxNhUZ1jPbs01HHV7rLTJbwHpaD2NexYdNXUi9YjUbGX1iYOeSqhzW8rYvXwf9p6R/TEube345WiUkV2E4nuXuMjRpcop31zGRm26zDmN7gBusl7CATPG14PXwk215VWoUOXZe1pe5ukIHWSQqjCcTKhCEcZxxwO88SUTvd+x5ZAy0CMEsJ+/YXibZM+H8ivykVcFYbvkYKBsQ6I3h7Jn+Nlbr7cP3whmC99vaWDKWrtrExqmvfDHpMy/3SRmmQEwISDbltyi0vAqqFcBUihBCgrrdlm2G0BsYWJ4eZntrE+hM99BY+TKVjvyow==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: 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: Mon, 21 Feb 2022 14:18:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.02.2022 13:42, Juergen Gross wrote:
> Providing a macro for an invalid grant reference would be beneficial
> for users, especially as some are using the wrong value "0" for that
> purpose.
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Over the years I've been considering to add such to the public
interface, perhaps even more than once. But I'm afraid it's not that
easy. In principle 0xffffffff (which btw isn't necessarily ~0u) could
be a valid ref. It is really internal agreement by users of the
interface to set for themselves that they're not ever going to make
a valid grant behind that reference.

Jan




 


Rackspace

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