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

Re: [Xen-devel] [PATCH RFC V7 4/5] xen, libxc: Request page fault injection via libxc


  • To: Jan Beulich <JBeulich@xxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Wed, 27 Aug 2014 14:54:37 +0300
  • Cc: kevin.tian@xxxxxxxxx, ian.campbell@xxxxxxxxxx, stefano.stabellini@xxxxxxxxxxxxx, andrew.cooper3@xxxxxxxxxx, eddie.dong@xxxxxxxxx, xen-devel@xxxxxxxxxxxxx, jun.nakajima@xxxxxxxxx, ian.jackson@xxxxxxxxxxxxx
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Wed, 27 Aug 2014 11:54:46 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=O9SUwtZzZJX5tlyTCVPUO7e4RqwxlnmrEXQK4mLe4CWrsyW40MXjR2aQ2WT/Au1Hzkf6+VW+RBcYf9KJSBzP7LB9Zo/XBHkSZ1ZWT392Q5SUEYCmcc+tB4CI6PgV8njjmYaS0TfJsV1VnL6js/LcLk/JbNQUHVCBAUmVOnHYqW24a1C2H4/WYwpAHuhUMeH8fHvf4IKnEHvUaRYZxyfDhcotXhUSrAnLfIrN5HxaqCgSt2exZSW2gSSD7HOcu7/RtT3vqFkitUS0EhYs+SAO+ebMZYS2iEpfHKmhGWqIEOvLuWfPZF9YwXBFwAvjK20KXdYXqdMfVOl1Z9bA7a7GsQ==; h=Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 08/26/2014 05:13 PM, Jan Beulich wrote:
>>>> On 13.08.14 at 17:28, <rcojocaru@xxxxxxxxxxxxxxx> wrote:
>> +    case XEN_DOMCTL_set_pagefault_info:
>> +    {
>> +        ret = -EINVAL;
>> +
>> +        if ( is_hvm_domain(d) )
>> +        {
>> +            d->arch.hvm_domain.fault_info.address_space =
>> +                op->u.set_pagefault_info.address_space;
>> +            d->arch.hvm_domain.fault_info.virtual_address =
>> +                op->u.set_pagefault_info.virtual_address;
>> +            d->arch.hvm_domain.fault_info.errcode =
>> +                op->u.set_pagefault_info.errcode;
>> +            d->arch.hvm_domain.fault_info.valid = 1;
>> +
>> +            ret = 0;
>> +        }
>> +    }
> 
> Pointless curly braces.

You're right, of course, but I've written it like that because that
seems to be the style (even where it is not necessary / no local
variables are introduced) in
do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl).

Should I break with the coding style for this switch case?


Thanks,
Razvan Cojocaru

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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