powerpc/epapr: add "memory" as a clobber to all hypercalls
authorTimur Tabi <timur@freescale.com>
Thu, 15 Mar 2012 22:41:02 +0000 (17:41 -0500)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 12:58:12 +0000 (17:58 +0530)
commitf6863b2c26396e26c586f0ebd04b2b838a8bf4f4
tree952aa970d0155ce2fb522722bf1ecdc884fb1fb3
parent3f858c625c7ea5b17ee6f8bd042d5759ead6a2ec
powerpc/epapr: add "memory" as a clobber to all hypercalls

The "memory" clobber tells the compiler to ensure that all writes to memory
are committed before the hypercall is made.

"memory" is only necessary for hcalls where the Hypervisor will read or
write guest memory. However, we add it to all hcalls because the impact is
minimal, and we want to ensure that it's present for the hcalls that need
it.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/epapr_hcalls.h