All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kai Huang <kai.huang@linux.intel.com>
To: andrew.cooper3@citrix.com, tim@xen.org, jbeulich@suse.com,
	kevin.tian@intel.com, xen-devel@lists.xen.org
Cc: Kai Huang <kai.huang@linux.intel.com>
Subject: [v3 06/10] vmx: handle PML buffer full VMEXIT
Date: Fri, 24 Apr 2015 16:19:34 +0800	[thread overview]
Message-ID: <1429863578-16741-7-git-send-email-kai.huang@linux.intel.com> (raw)
In-Reply-To: <1429863578-16741-1-git-send-email-kai.huang@linux.intel.com>

We need to flush PML buffer when it's full.

Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
---
 xen/arch/x86/hvm/vmx/vmx.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index 6c4f78c..f11ac46 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -3178,6 +3178,10 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)
         vmx_handle_apic_write();
         break;
 
+    case EXIT_REASON_PML_FULL:
+        vmx_vcpu_flush_pml_buffer(v);
+        break;
+
     case EXIT_REASON_ACCESS_GDTR_OR_IDTR:
     case EXIT_REASON_ACCESS_LDTR_OR_TR:
     case EXIT_REASON_VMX_PREEMPTION_TIMER_EXPIRED:
-- 
2.1.0

  parent reply	other threads:[~2015-04-24  8:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-24  8:19 [v3 00/10] PML (Page Modification Logging) support Kai Huang
2015-04-24  8:19 ` [v3 01/10] vmx: add new boot parameter to control PML enabling Kai Huang
2015-04-24 10:46   ` Andrew Cooper
2015-04-24 14:33   ` Jan Beulich
2015-04-25 15:00     ` Kai Huang
2015-04-27  6:56       ` Jan Beulich
2015-05-04  7:46         ` Kai Huang
2015-05-04  7:52           ` Jan Beulich
2015-05-04  7:53             ` Kai Huang
2015-04-24  8:19 ` [v3 02/10] log-dirty: add new paging_mark_gfn_dirty Kai Huang
2015-04-24  8:19 ` [v3 03/10] vmx: add PML definition and feature detection Kai Huang
2015-04-24  8:19 ` [v3 04/10] vmx: add new data structure member to support PML Kai Huang
2015-04-24  8:19 ` [v3 05/10] vmx: add help functions " Kai Huang
2015-04-24  8:19 ` Kai Huang [this message]
2015-04-24  8:19 ` [v3 07/10] vmx: handle PML enabling in vmx_vcpu_initialise Kai Huang
2015-04-24  8:19 ` [v3 08/10] vmx: disable PML in vmx_vcpu_destroy Kai Huang
2015-04-24  8:19 ` [v3 09/10] log-dirty: refine common code to support PML Kai Huang
2015-04-24  8:19 ` [v3 10/10] p2m/ept: enable PML in p2m-ept for log-dirty Kai Huang
2015-04-30 11:04 ` [v3 00/10] PML (Page Modification Logging) support Tim Deegan
2015-05-01  9:06   ` Kai Huang
2015-05-04  7:40   ` Tian, Kevin
2015-05-04  7:46     ` Kai Huang

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=1429863578-16741-7-git-send-email-kai.huang@linux.intel.com \
    --to=kai.huang@linux.intel.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=kevin.tian@intel.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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.