diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2012-08-24 14:54:57 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-09-06 09:37:25 -0400 |
commit | 2df72e9bc4c505d8357012f2924589f3d16f9d44 (patch) | |
tree | b5b0e8d63005300dd06fd779658639645d55a67b /arch/ia64/kvm | |
parent | 09941fbb712655cde9b350852be7a99a6f61a03f (diff) |
KVM: split kvm_arch_flush_shadow
Introducing kvm_arch_flush_shadow_memslot, to invalidate the
translations of a single memory slot.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/ia64/kvm')
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index eac65380bd20..8b3a9c0e771d 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c | |||
@@ -1613,11 +1613,17 @@ void kvm_arch_commit_memory_region(struct kvm *kvm, | |||
1613 | return; | 1613 | return; |
1614 | } | 1614 | } |
1615 | 1615 | ||
1616 | void kvm_arch_flush_shadow(struct kvm *kvm) | 1616 | void kvm_arch_flush_shadow_all(struct kvm *kvm) |
1617 | { | 1617 | { |
1618 | kvm_flush_remote_tlbs(kvm); | 1618 | kvm_flush_remote_tlbs(kvm); |
1619 | } | 1619 | } |
1620 | 1620 | ||
1621 | void kvm_arch_flush_shadow_memslot(struct kvm *kvm, | ||
1622 | struct kvm_memory_slot *slot) | ||
1623 | { | ||
1624 | kvm_arch_flush_shadow_all(); | ||
1625 | } | ||
1626 | |||
1621 | long kvm_arch_dev_ioctl(struct file *filp, | 1627 | long kvm_arch_dev_ioctl(struct file *filp, |
1622 | unsigned int ioctl, unsigned long arg) | 1628 | unsigned int ioctl, unsigned long arg) |
1623 | { | 1629 | { |