x86/mm: Factor out the grant flags to pte flags conversion logic
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 11 Aug 2017 11:20:40 +0000 (11:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 13 Sep 2017 10:22:22 +0000 (11:22 +0100)
commit16b7dcc42dd5abaadb50ead44db69598fe2f00db
tree94d6c5bd9881c3491eb287e1c285bcfe3856f165
parent54a722f219dc739ecdc6235da19030ba3d89e1fe
x86/mm: Factor out the grant flags to pte flags conversion logic

This fixes a bug where the requested AVAIL* flags were not honoured in an
unmap_and_replace operation.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c