From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Durrant Subject: Re: [PATCH v7 07/15] x86/hvm: unify stdvga mmio intercept with standard mmio intercept Date: Thu, 9 Jul 2015 16:24:11 +0000 Message-ID: <9AAE0902D5BC7E449B7C8E4E778ABCD02F4B709B@AMSPEX01CL02.citrite.net> References: <1436447455-11524-1-git-send-email-paul.durrant@citrix.com> <1436447455-11524-8-git-send-email-paul.durrant@citrix.com> <559EB057020000780008EEE8@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02F4B6F81@AMSPEX01CL02.citrite.net> <559EBBAC020000780008EF7C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <559EBBAC020000780008EF7C@mail.emea.novell.com> Content-Language: en-US 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 (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org > -----Original Message----- > From: Jan Beulich [mailto:JBeulich@suse.com] > Sent: 09 July 2015 17:22 > To: Paul Durrant > Cc: xen-devel@lists.xen.org; Keir (Xen.org) > Subject: RE: [PATCH v7 07/15] x86/hvm: unify stdvga mmio intercept with > standard mmio intercept > > >>> On 09.07.15 at 18:12, wrote: > >> From: Jan Beulich [mailto:JBeulich@suse.com] > >> Sent: 09 July 2015 16:33 > >> >>> On 09.07.15 at 15:10, wrote: > >> > @@ -424,8 +426,22 @@ static void stdvga_mem_writeb(uint64_t addr, > >> uint32_t val) > >> > } > >> > } > >> > > >> > -static void stdvga_mem_write(uint64_t addr, uint64_t data, uint64_t > size) > >> > +static int stdvga_mem_write(const struct hvm_io_handler *handler, > >> > + uint64_t addr, uint32_t size, > >> > + uint64_t data) > >> > { > >> > + struct hvm_hw_stdvga *s = ¤t->domain- > >arch.hvm_domain.stdvga; > >> > + ioreq_t p = { .type = IOREQ_TYPE_COPY, > >> > + .addr = addr, > >> > + .size = size, > >> > + .count = 1, > >> > + .dir = IOREQ_WRITE, > >> > + .data = data, > >> > + }; > >> > >> Indentation (still - I know I pointed this out on v6, just perhaps at > >> another example). See e.g. the context of the earlier change to the > >> beginning of hvm_mmio_internal() in this patch for how this should > >> look like. > > > > It has to be something my emacs is doing then; I can't see any brokenness. > > Indentation simply is too deep. See the good example I pointed > you at. > Yes, I'll look... and maybe see what it looks like with vi too. Paul > Jan