[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH V1 02/16] xen/ioreq: Make x86's IOREQ feature common
On 10.09.2020 22:21, Oleksandr Tyshchenko wrote: > --- > MAINTAINERS | 8 +- > xen/arch/x86/Kconfig | 1 + > xen/arch/x86/hvm/dm.c | 2 +- > xen/arch/x86/hvm/emulate.c | 2 +- > xen/arch/x86/hvm/hvm.c | 2 +- > xen/arch/x86/hvm/io.c | 2 +- > xen/arch/x86/hvm/ioreq.c | 1425 > +-------------------------------------- > xen/arch/x86/hvm/stdvga.c | 2 +- > xen/arch/x86/hvm/vmx/vvmx.c | 3 +- > xen/arch/x86/mm.c | 2 +- > xen/arch/x86/mm/shadow/common.c | 2 +- > xen/common/Kconfig | 3 + > xen/common/Makefile | 1 + > xen/common/ioreq.c | 1410 ++++++++++++++++++++++++++++++++++++++ This suggests it was almost the entire file which got moved. It would be really nice if you could convince git to show the diff here, rather than removal and addition of 1400 lines. Additionally I wonder whether what's left in the original file wouldn't better become inline functions now. If this was done in the previous patch, the change would be truly a rename then, I think. > --- a/xen/include/asm-x86/hvm/ioreq.h > +++ b/xen/include/asm-x86/hvm/ioreq.h > @@ -19,41 +19,12 @@ > #ifndef __ASM_X86_HVM_IOREQ_H__ > #define __ASM_X86_HVM_IOREQ_H__ > > -bool hvm_io_pending(struct vcpu *v); > -bool handle_hvm_io_completion(struct vcpu *v); > -bool is_ioreq_server_page(struct domain *d, const struct page_info *page); > +#include <asm/hvm/emulate.h> > +#include <asm/hvm/hvm.h> > +#include <asm/hvm/vmx/vmx.h> Are all three really needed here? Especially the last one strikes me as odd. > --- /dev/null > +++ b/xen/include/xen/ioreq.h > @@ -0,0 +1,82 @@ > +/* > + * ioreq.h: Hardware virtual machine assist interface definitions. > + * > + * Copyright (c) 2016 Citrix Systems Inc. > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the terms and conditions of the GNU General Public License, > + * version 2, as published by the Free Software Foundation. > + * > + * This program is distributed in the hope 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/>. > + */ > + > +#ifndef __IOREQ_H__ > +#define __IOREQ_H__ __XEN_IOREQ_H__ please. > +#include <xen/sched.h> > + > +#include <asm/hvm/ioreq.h> Is this include really needed here (i.e. by the code further down in the file, and hence by everyone including this header), or rather just in a few specific .c files? > +#define GET_IOREQ_SERVER(d, id) \ > + (d)->arch.hvm.ioreq_server.server[id] arch.hvm.* feels like a layering violation when used in this header. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |