From: Ian Campbell Subject: Re: [PATCH] lock down hypercall continuation encoding masks Date: Thu, 11 Dec 2014 11:57:20 +0000 Message-ID: <1418299040.10394.21.camel@eu.citrix.com> References: <5481A589020000780004D1E3@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xz2N6-0008P1-HE for xen-devel@lists.xenproject.org; Thu, 11 Dec 2014 11:57:28 +0000 In-Reply-To: <5481A589020000780004D1E3@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , Tim Deegan , Ian Jackson , Andrew Cooper , xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 2014-12-05 at 11:31 +0000, Jan Beulich wrote: > Andrew validly points out that even if these masks aren't a formal part > of the hypercall interface, we aren't free to change them: A guest > suspended for migration in the middle of a continuation would fail to > work if resumed on a hypervisor using a different value. Hence add > respective comments to their definitions. > > Additionally, to help future extensibility as well as in the spirit of > reducing undefined behavior as much as possible, refuse hypercalls made > with the respective bits non-zero when the respective sub-ops don't > make use of those bits. > > Reported-by: Andrew Cooper > Signed-off-by: Jan Beulich Acked-by: Ian Campbell