Re: KVM: pvmmu breakage with gcc 4.3.0

Christian Borntraeger
2008-06-26T13:18:38Z

Am Donnerstag, 26. Juni 2008 schrieb Anthony Liguori:
> Marcelo Tosatti wrote:
> > Some pvmmu functions store their commands on stack, and newer GCC
> > versions conclude that these commands are unused.
> >
> > So stick an inline asm statement to convince the compiler otherwise.
> >
>
> I think a better fix is to add a "memory " clobber to the hypercalls.
> This isn't really a GCC bug since it doesn't realize that hypercalls can
> touch memory.

Thats what we do on asm-s390/kvm_para.h. Our hypercalls do have a memory
clobber.