qemu-e2k/target-ppc
Scott Wood 5666ca4ae0 kvm: ppc: fixes for KVM_SET_SREGS on init
Classic/server ppc has had SREGS for a while now (though I think not
always?), but it's still missing for booke.  Check the capability before
calling KVM_SET_SREGS.

Without this, booke kvm fails to boot as of commit
84b4915dd2 (kvm: Handle kvm_init_vcpu
errors).

Also, don't write random stack state into the non-PVR sregs fields --
have kvm fill it in first.

Eventually booke will have sregs and it will have its own capability to
be tested here.  However, we will want a way for platform code to request
to look like the actual CPU we're running on, especially if SoC devices
are being directly assigned.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-05-09 22:31:37 +02:00
..
cpu.h Implement PAPR VPA functions for pSeries shared processor partitions 2011-04-01 18:34:57 +02:00
exec.h inline cpu_halted into sole caller 2011-03-13 14:44:21 +00:00
helper_regs.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
helper.c Virtual hash page table handling on pSeries machine 2011-04-01 18:34:55 +02:00
helper.h Correct ppc popcntb logic, implement popcntw and popcntd 2011-04-01 18:34:54 +02:00
kvm_ppc.c change all other clock references to use nanosecond resolution accessors 2011-03-21 09:23:23 +01:00
kvm_ppc.h ppce500_mpc8544ds: Fix compile with --enable-debug and --disable-kvm 2011-04-08 12:20:08 +02:00
kvm.c kvm: ppc: fixes for KVM_SET_SREGS on init 2011-05-09 22:31:37 +02:00
machine.c Parse SDR1 on mtspr instead of at translate time 2011-04-01 18:34:55 +02:00
mfrom_table_gen.c
mfrom_table.c
op_helper.c Remove unused function parameter from cpu_restore_state 2011-04-20 10:37:03 +02:00
STATUS
translate_init.c Add POWER7 support for ppc 2011-04-01 18:34:55 +02:00
translate.c Remove unused function parameters from gen_pc_load and rename the function 2011-04-20 10:33:59 +02:00