All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Paul Durrant" <paul@xen.org>, "Wei Liu" <wl@xen.org>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [Xen-devel] [PATCH 7/9] x86/HVM: reduce io.h include dependencies
Date: Mon, 9 Mar 2020 13:10:17 +0100	[thread overview]
Message-ID: <0f445f0a-38dd-35a7-2e9f-eb984b789ffd@suse.com> (raw)
In-Reply-To: <e0b6b003-18c6-56a0-f791-1ebd4172f5fc@suse.com>

Drop #include-s not needed by the header itself as well as one include
of the header which isn't needed. Put the one needed into the file
actually requiring it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/include/asm-x86/hvm/io.h
+++ b/xen/include/asm-x86/hvm/io.h
@@ -19,12 +19,8 @@
 #ifndef __ASM_X86_HVM_IO_H__
 #define __ASM_X86_HVM_IO_H__
 
-#include <xen/mm.h>
 #include <xen/pci.h>
-#include <asm/hvm/vpic.h>
-#include <asm/hvm/vioapic.h>
 #include <public/hvm/ioreq.h>
-#include <public/event_channel.h>
 
 #define NR_IO_HANDLERS 32
 
--- a/xen/include/asm-x86/hvm/vcpu.h
+++ b/xen/include/asm-x86/hvm/vcpu.h
@@ -26,6 +26,7 @@
 #include <asm/hvm/svm/vmcb.h>
 #include <asm/hvm/svm/nestedsvm.h>
 #include <asm/mtrr.h>
+#include <public/hvm/ioreq.h>
 
 enum hvm_io_completion {
     HVMIO_no_completion,
--- a/xen/include/asm-x86/hvm/vmx/vmcs.h
+++ b/xen/include/asm-x86/hvm/vmx/vmcs.h
@@ -18,8 +18,6 @@
 #ifndef __ASM_X86_HVM_VMX_VMCS_H__
 #define __ASM_X86_HVM_VMX_VMCS_H__
 
-#include <asm/hvm/io.h>
-
 extern void vmcs_dump_vcpu(struct vcpu *v);
 extern void setup_vmcs_dump(void);
 extern int  vmx_cpu_up_prepare(unsigned int cpu);


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2020-03-09 12:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 12:04 [Xen-devel] [PATCH 0/9] x86: reduce include dependencies Jan Beulich
2020-03-09 12:06 ` [Xen-devel] [PATCH 1/9] x86/HVM: reduce domain.h " Jan Beulich
2020-03-09 13:33   ` Andrew Cooper
2020-03-09 13:52     ` Jan Beulich
2020-03-09 14:22     ` Jan Beulich
2020-03-09 12:07 ` [Xen-devel] [PATCH 2/9] x86/HVM: reduce vcpu.h " Jan Beulich
2020-03-09 12:07 ` [Xen-devel] [PATCH 3/9] x86/HVM: reduce vpt.h " Jan Beulich
2020-03-09 12:08 ` [Xen-devel] [PATCH 4/9] x86/HVM: reduce vpic.h " Jan Beulich
2020-03-09 12:08 ` [Xen-devel] [PATCH 5/9] x86/HVM: reduce vioapic.h " Jan Beulich
2020-03-09 12:09 ` [Xen-devel] [PATCH 6/9] x86/HVM: reduce vlapic.h " Jan Beulich
2020-03-09 12:10 ` Jan Beulich [this message]
2020-03-09 12:11 ` [Xen-devel] [PATCH 8/9] x86/HVM: reduce hvm.h " Jan Beulich
2020-03-09 12:11 ` [Xen-devel] [PATCH 9/9] x86: reduce mce.h " Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0f445f0a-38dd-35a7-2e9f-eb984b789ffd@suse.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=paul@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.