aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/nestedhvm.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@citrix.com>2011-06-30 10:26:54 +0100
committerTim Deegan <Tim.Deegan@citrix.com>2011-06-30 10:26:54 +0100
commit67a0e20164419a5d26ca1cc067b4899df2a8d382 (patch)
tree03001b7c1148296dd9a618222523f8b2f19b9368 /xen/arch/x86/hvm/nestedhvm.c
parent7e9ee87b3ec2158a9ac4e0dda838f177dcde92dd (diff)
downloadxen-67a0e20164419a5d26ca1cc067b4899df2a8d382.tar.gz
xen-67a0e20164419a5d26ca1cc067b4899df2a8d382.tar.bz2
xen-67a0e20164419a5d26ca1cc067b4899df2a8d382.zip
Nested p2m: implement "flush" as a first-class action
rather than using the teardown and init functions. This makes the locking clearer and avoids an expensive scan of all pfns that's only needed for non-nested p2ms. It also moves the tlb flush into the proper place in the flush logic, avoiding a possible race against other CPUs. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com> Acked-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'xen/arch/x86/hvm/nestedhvm.c')
-rw-r--r--xen/arch/x86/hvm/nestedhvm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/xen/arch/x86/hvm/nestedhvm.c b/xen/arch/x86/hvm/nestedhvm.c
index 67202c05bf..e843447856 100644
--- a/xen/arch/x86/hvm/nestedhvm.c
+++ b/xen/arch/x86/hvm/nestedhvm.c
@@ -119,12 +119,6 @@ nestedhvm_vmcx_flushtlb(struct p2m_domain *p2m)
cpus_clear(p2m->p2m_dirty_cpumask);
}
-void
-nestedhvm_vmcx_flushtlbdomain(struct domain *d)
-{
- on_selected_cpus(d->domain_dirty_cpumask, nestedhvm_flushtlb_ipi, d, 1);
-}
-
bool_t
nestedhvm_is_n2(struct vcpu *v)
{