]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S PR: Emulate PURR, SPURR and DSCR registers
authorPaul Mackerras <paulus@samba.org>
Sun, 4 Nov 2012 18:15:43 +0000 (18:15 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Dec 2012 00:34:01 +0000 (01:34 +0100)
commit95b241aaf4364c73524a74e9604b59623c8588ad
tree33a2706900728e9218fca06bde3c8a47fb86254a
parent95356dba232cd3e2b63a7e4ab4e494eb1cd22195
KVM: PPC: Book3S PR: Emulate PURR, SPURR and DSCR registers

This adds basic emulation of the PURR and SPURR registers.  We assume
we are emulating a single-threaded core, so these advance at the same
rate as the timebase.  A Linux kernel running on a POWER7 expects to
be able to access these registers and is not prepared to handle a
program interrupt on accessing them.

This also adds a very minimal emulation of the DSCR (data stream
control register).  Writes are ignored and reads return zero.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_emulate.c