From: Tim Deegan Subject: Re: [PATCH] lock down hypercall continuation encoding masks Date: Thu, 11 Dec 2014 13:44:36 +0100 Message-ID: <20141211124436.GC53811@deinos.phlegethon.org> 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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xz36z-00045T-ER for xen-devel@lists.xenproject.org; Thu, 11 Dec 2014 12:44:53 +0000 Content-Disposition: inline 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 , Andrew Cooper , Ian Jackson , Ian Campbell , xen-devel List-Id: xen-devel@lists.xenproject.org At 11:31 +0000 on 05 Dec (1417775465), 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: Tim Deegan