Commit 14edd0d7 authored by Heiko Carstens's avatar Heiko Carstens

s390/cmf: fix virtual vs physical address confusion

The measurement block origin address is an absolute address; therefore
add a missing virt_to_phys() translation to the cmf_activate() inline
assembly.

This doesn't fix a bug, since virtual and physical addresses are
currently identical.
Acked-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Acked-by: default avatarVineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 343c8a56
...@@ -169,7 +169,8 @@ static inline void cmf_activate(void *area, unsigned int onoff) ...@@ -169,7 +169,8 @@ static inline void cmf_activate(void *area, unsigned int onoff)
" lgr 2,%[mbo]\n" " lgr 2,%[mbo]\n"
" schm\n" " schm\n"
: :
: [r1] "d" ((unsigned long)onoff), [mbo] "d" (area) : [r1] "d" ((unsigned long)onoff),
[mbo] "d" (virt_to_phys(area))
: "1", "2"); : "1", "2");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment