All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xiaofeng Ling <xiaofeng.ling@intel.com>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
	Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH][3/6]add callback irq in vmx_platform
Date: Mon, 05 Sep 2005 18:41:00 +0800	[thread overview]
Message-ID: <431C20BC.5080109@intel.com> (raw)

Add a callback irq member in domain->arch.vmx_platform.
This irq is used to inject event to vmx guest.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>

diff -r 287d36b46fa3 xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c	Tue Aug 30 20:36:49 2005
+++ b/xen/arch/x86/domain.c	Fri Sep  2 22:46:13 2005
@@ -266,6 +266,7 @@
      v->arch.perdomain_ptes[FIRST_RESERVED_GDT_PAGE] =
          l1e_from_page(virt_to_page(gdt_table), PAGE_HYPERVISOR);

+    v->domain->arch.vmx_platform.callback_irq = 0;
      v->arch.guest_vtable  = __linear_l2_table;
      v->arch.shadow_vtable = __shadow_linear_l2_table;

diff -r 287d36b46fa3 xen/include/public/xen.h
--- a/xen/include/public/xen.h	Tue Aug 30 20:36:49 2005
+++ b/xen/include/public/xen.h	Fri Sep  2 22:46:13 2005
@@ -59,6 +60,7 @@
  #define __HYPERVISOR_set_segment_base     25 /* x86/64 only */
  #define __HYPERVISOR_mmuext_op            26
  #define __HYPERVISOR_acm_op               27
+#define __HYPERVISOR_virtual_device_op    28	

  /*
   * VIRTUAL INTERRUPTS
@@ -233,6 +235,14 @@
  #define VMASST_TYPE_4gb_segments_notify  1
  #define VMASST_TYPE_writable_pagetables  2
  #define MAX_VMASST_TYPE 2
+
+/*
+ * Commands to HYPERVISOR_virtual_device_op().
+ */
+
+#define SET_CALLBACK_IRQ    1
+#define SET_SHARE_PARAM_MAP 2
+

  #ifndef __ASSEMBLY__

@@ -319,6 +329,7 @@
      u8 evtchn_upcall_pending;
      u8 evtchn_upcall_mask;
      u32 evtchn_pending_sel;
+    u16 callback_mask;
  #ifdef __ARCH_HAS_VCPU_INFO
      arch_vcpu_info_t arch;
  #endif
diff -r 287d36b46fa3 xen/include/asm-x86/vmx_platform.h
--- a/xen/include/asm-x86/vmx_platform.h	Tue Aug 30 20:36:49 2005
+++ b/xen/include/asm-x86/vmx_platform.h	Fri Sep  2 22:46:13 2005
@@ -83,6 +83,8 @@
      struct vmx_virpit_t    vmx_pit;
      struct vmx_handler_t   vmx_handler;
      struct mi_per_cpu_info mpci;            /* MMIO */
+    unsigned int callback_irq;              /* irq for para-driver*/
+
  };

                 reply	other threads:[~2005-09-05 10:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=431C20BC.5080109@intel.com \
    --to=xiaofeng.ling@intel.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=m+Ian.Pratt@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    /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.