diff options
author | Juergen Gross <jgross@suse.com> | 2014-11-28 13:53:59 +0300 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-12-04 17:09:20 +0300 |
commit | 2e917175e1ef147a527a9158b9f09773ec94c0bd (patch) | |
tree | 0e2d5e5f1cdd88bc459e284eb9dc88c1c1b6e7bc /drivers/media | |
parent | 054954eb051f35e74b75a566a96fe756015352c8 (diff) | |
download | linux-2e917175e1ef147a527a9158b9f09773ec94c0bd.tar.xz |
xen: Speed up set_phys_to_machine() by using read-only mappings
Instead of checking at each call of set_phys_to_machine() whether a
new p2m page has to be allocated due to writing an entry in a large
invalid or identity area, just map those areas read only and react
to a page fault on write by allocating the new page.
This change will make the common path with no allocation much
faster as it only requires a single write of the new mfn instead
of walking the address translation tables and checking for the
special cases.
Suggested-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions