]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Fix powerpc build errors caused by recent changes
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 5 Oct 2012 01:15:17 +0000 (11:15 +1000)
committerPekka Enberg <penberg@kernel.org>
Fri, 5 Oct 2012 06:29:08 +0000 (09:29 +0300)
commitfc51703a5925fc25be101b1d245b7bd347664772
tree767da7be79022e98faec9a80b64ddae51d763b18
parent5a337ac3c4d0ae3b078912396b90de35fa11e7f0
kvm tools: Fix powerpc build errors caused by recent changes

Several caused by commit 8074303 "remove global kvm object",
ioport__setup_arch(), term_getc_iov() & term_getc() in the
spapr_hvcons.c code, and kvm_cpu__reboot() in rtas_power_off().

Commit 221b584 "move active_console into struct kvm_config" added
checks in h_put_term_char() & h_get_term_char() of
kvm->cfg.active_console but needs to be vcpu->kvm->cfg.active_console.

That commit also missed updates to term_putc() & term_getc() in
spapr_rtas.c, and I'm guessing that we need similar checks of
active_console in rtas_put_term_char() & rtas_get_term_char().

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/powerpc/ioport.c
tools/kvm/powerpc/spapr_hvcons.c
tools/kvm/powerpc/spapr_rtas.c