Fix PowerPC cpu initiliaztion
PATCH RESEND 1/1 Fix PowerPC cpu initiliaztion
This patch apparently fell through the cracks or I didn't send the rised version to the list. These patches fix cpu initilization for PowerPC. Without them guest cannot be launched.
2 files changed, 6 insertions(+), 3 deletions(-) qemu/hw/ppc440_bamboo.c | 3 --- qemu/qemu-kvm-powerpc.c | 6 ++++++
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
PATCH 1/1 Add kvm_load_registers into qemu_arch_init for PowerPC
1 file changed, 6 insertions(+)
qemu/qemu-kvm-powerpc.c | 6 ++++++
This patch adds a call to load_kvm_registers after creation of vcpu. This is required for ppc since we are required to set certain registers before boot.
qemu/qemu-kvm-powerpc.c +6 -0
@@ -121,6 +121,12 @@ void kvm_arch_save_regs(CPUState *env)int kvm_arch_qemu_init_env (CPUState *cenv) { +if (cenv->cpu_index ==0 ) { +/* load any registers set in env into +kvm for the first guest vcpu */ +kvm_load_registers (cenv); + } +return 0 ; }
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
PATCH 1/1 Remove kvm_load_registers from ppc440_bamboo board model
In reply to Jerone Young1 file changed, 3 deletions(-)
qemu/hw/ppc440_bamboo.c | 3 ---
This patch removes the call to kvm_load_registers while in board platform setup code. This must now be done later in vcpu initialization.
qemu/hw/ppc440_bamboo.c +0 -3
@@ -174,9 +174,6 @@ void bamboo_init(ram_addr_t ram_size, in env->gpr[3 ] = dt_base;#endif env->nip = ep; - -printf ("%s: loading kvm registers\n" , __func__); -kvm_load_registers (env); }for (i =0 ; i < nb_nics; i++) {
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Avi Kivity
AppliedQuoted 3 lines · Jerone Young
This patch apparently fell through the cracks or I didn't send the rised version to the list. These patches fix cpu initilization for PowerPC. Without them guest cannot be launched.
Applied both, thanks.
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone