[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 4/8] x86: introduce hypervisor framework
On 30.11.2019 12:57, Wei Liu wrote: > We will soon implement Hyper-V support for Xen. Add a framework for > that. > > This requires moving some of the hypervisor_* functions from xen.h to > hypervisor.h. > > Signed-off-by: Wei Liu <liuwe@xxxxxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> with one more adjustment (sorry for noticing only now): > --- /dev/null > +++ b/xen/arch/x86/guest/hypervisor.c > @@ -0,0 +1,45 @@ > +/****************************************************************************** > + * arch/x86/guest/hypervisor.c > + * > + * Support for detecting and running under a hypervisor. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; If not, see <http://www.gnu.org/licenses/>. > + * > + * Copyright (c) 2019 Microsoft. > + */ > +#include <xen/init.h> > +#include <xen/types.h> > + > +#include <asm/cache.h> > +#include <asm/guest/hypervisor.h> > + > +static const struct hypervisor_ops __read_mostly *ops; The __read_mostly is misplaced - it's an attribute of the variable, not its type, and hence belongs after the * . It just so happens that the compiler is (still) relatively relaxed in what it accepts, but I think at least the gcc manual has a warning towards future more strict behavior. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |