From: "Jan Beulich" Subject: Re: [PATCH v4 14/17] x86/hvm: remove hvm_io_state enumeration Date: Thu, 25 Jun 2015 10:43:33 +0100 Message-ID: <558BE96502000078000896EF@mail.emea.novell.com> References: <1435145089-21999-1-git-send-email-paul.durrant@citrix.com> <1435145089-21999-15-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z83h2-0006WJ-PL for xen-devel@lists.xenproject.org; Thu, 25 Jun 2015 09:43:36 +0000 In-Reply-To: <1435145089-21999-15-git-send-email-paul.durrant@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: Andrew Cooper , Keir Fraser , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 24.06.15 at 13:24, wrote: > Emulation request status is already covered by STATE_IOREQ_XXX values so > just use those. The mapping is: > > HVMIO_none -> STATE_IOREQ_NONE > HVMIO_awaiting_completion -> STATE_IOREQ_READY > HVMIO_completed -> STATE_IORESP_READY > > Signed-off-by: Paul Durrant Acked-by: Jan Beulich subject to possibly ... > @@ -50,7 +44,7 @@ struct hvm_vcpu_asid { > > struct hvm_vcpu_io { > /* I/O request in flight to device model. */ > - enum hvm_io_state io_state; > + uint8_t io_state; > unsigned long io_data; > int io_size; > enum hvm_io_completion io_completion; ... finding a better slot for this single byte (not sure what the structure looks like at this point of the series). Jan