From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Stabellini Subject: Re: [PATCH 2/2] Xen: Add xen-apic support and hook it up. Date: Wed, 11 Apr 2012 17:19:09 +0100 Message-ID: References: <1333618350.2513.5.camel@leeds.uk.xensource.com> <1333618505.2513.8.camel@leeds.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1771022453-1334161164=:15151" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Stefano Stabellini Cc: Peter Maydell , xen-devel , "Wei Liu (Intern)" , "liuw@liuw.name" , Jan Kiszka , QEMU-devel , Paolo Bonzini List-Id: xen-devel@lists.xenproject.org --8323329-1771022453-1334161164=:15151 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT On Wed, 11 Apr 2012, Stefano Stabellini wrote: > On Wed, 11 Apr 2012, Peter Maydell wrote: > > On 5 April 2012 10:35, Wei Liu wrote: > > > > > > --- /dev/null > > > +++ b/hw/xen_apic.c > > > @@ -0,0 +1,90 @@ > > > +/* > > > + * Xen basic APIC support > > > + * > > > + * Copyright (c) 2012 Citrix > > > + * > > > + * Authors: > > > + *  Wei Liu > > > + * > > > + * This work is licensed under the terms of the GNU GPL version 2. > > > + * See the COPYING file in the top-level directory. > > > + */ > > > > Really 2-only, not 2-or-later ? > > I am not a great fun of the 2-or-later clause and it doesn't look like a > requirement from the QEMU project POV. However if it is, I'll change it > to 2-or-later. > > > > > +#include "hw/apic_internal.h" > > > +#include "hw/msi.h" > > > +#include "xen.h" > > > + > > > +static uint64_t xen_apic_mem_read(void *opaque, target_phys_addr_t addr, > > > +                                  unsigned size) > > > +{ > > > +    return -1U; > > > +} > > > > This seems a rather confusing way to write 'return 0xffffffff;' > > Yep, I'll change it. Actually it is a uint64 so it is a lot of f's --8323329-1771022453-1334161164=:15151--