aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorKarimAllah Ahmed <[email protected]>2018-01-17 19:18:56 +0100
committerRadim Krčmář <[email protected]>2018-01-31 18:25:33 +0100
commita340b3e229b24a56f1c7f5826b15a3af0f4b13e5 (patch)
treea49fd00bcff34d0d2c7b5235f14da0315ead715e /net/switchdev/switchdev.c
parente53175395d7e12d8474707271bc02a2814279843 (diff)
kvm: Map PFN-type memory regions as writable (if possible)
For EPT-violations that are triggered by a read, the pages are also mapped with write permissions (if their memory region is also writable). That would avoid getting yet another fault on the same page when a write occurs. This optimization only happens when you have a "struct page" backing the memory region. So also enable it for memory regions that do not have a "struct page". Cc: Paolo Bonzini <[email protected]> Cc: Radim Krčmář <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: KarimAllah Ahmed <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions