then it held the vcpu-mutx. While
the exiting timing process waits for guest to release the vcpu-mutex and a
hang state is reached.
Now using seprate lock for exit timing stats.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
Acked-by: Alexander Graf ag...@suse.de
---
arch/powerpc
then it held the vcpu-mutx. While the
exiting timing process waits for guest to release the vcpu-mutex and
a hang state is reached.
Now using seprate lock for exit timing stats.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
Acked-by: Alexander Graf ag...@suse.de
---
rebased to head
The include/uapi/asm/kvm_para.h includes
include/uapi/asm/epapr_hcalls.h but the correct reference
should be include/asm/epapr_hcalls.h as this is the place
where make install_header installs the header files for
userspace.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch
Added a common requests handler which is called before returning to guest.
This returns non zero value when some request demands exit to userspace.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/booke.c | 45 +
1
IAC/DAC are defined as 32 bit while they are 64 bit wide. So ONE_REG
interface is added to set/get them.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm.h | 12
arch/powerpc/include/asm/kvm_host.h | 24 -
arch/powerpc
reset/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
[bharat.bhus...@freescale.com: reworked patch]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v8:
- clear REQ_WATCHDOG moved
for different handlers.
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- incorporated review comments
arch/powerpc/include/asm/kvm_ppc.h |2 -
arch/powerpc/kvm/booke.c| 13
for different handlers.
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- checkpatch error removed
arch/powerpc/include/asm/kvm_ppc.h |2 -
arch/powerpc/kvm/booke.c| 13
reset/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
[bharat.bhus...@freescale.com: reworked patch]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- checkpatch error removed
arch
Added a common requests handler which is called before returning to guest.
This returns non zero value when some request demands exit to userspace.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- checkpatch error removed
arch/powerpc/kvm/booke.c | 46
IAC/DAC are defined as 32 bit while they are 64 bit wide. So ONE_REG
interface is added to set/get them.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- checkpatch error removed
arch/powerpc/include/asm/kvm.h | 12
arch/powerpc/include/asm/kvm_host.h | 24
Patch to access the debug registers (IACx/DACx) using ONE_REG api
was sent earlier. But that missed the respective documentation.
Also corrected the index number referencing in section 4.69
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
Documentation/virtual/kvm/api.txt |9
Like other places, use thread_struct to get vcpu reference.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kernel/asm-offsets.c |2 +-
arch/powerpc/kvm/booke_interrupts.S |6 ++
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/arch/powerpc
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/reg_booke.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/asm/reg_booke.h
b/arch/powerpc/include/asm/reg_booke.h
index e07e6af..b417de3 100644
--- a/arch
This patch defines the interface parameter for KVM_SET_GUEST_DEBUG
ioctl support. Follow up patches will use this for setting up
hardware breakpoints, watchpoints and software breakpoints.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm.h | 33
This patch adds the debug stub support on booke/bookehv.
Now QEMU debug stub can use hw breakpoint, watchpoint and
software breakpoint to debug guest.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm.h| 29 ++-
arch/powerpc/include/asm
From: Bharat Bhushan bharat.bhus...@freescale.com
This patchset adds the QEMU debug stub support for powerpc (booke/bookehv).
[1/6] KVM: PPC: booke: use vcpu reference from thread_struct
- This is a cleanup patch to use vcpu reference from thread struct
[2/6] KVM: PPC: booke: Allow
Installed debug handler will be used for guest debug support
and debug facility emulation features (patches for these
features will follow this patch).
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus
for different handlers.
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_ppc.h |2 -
arch/powerpc/kvm/booke.c| 14
arch/powerpc/kvm
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/hw_irq.h |2 ++
arch/powerpc/kvm/booke.c | 21 +
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/asm/hw_irq.h
b/arch/powerpc/include/asm
Watchdog is taken at critical exception level. So this patch
is tested with host watchdog exception happening when guest
is running.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/booke_interrupts.S | 55 +--
1 files changed, 27
rfci instruction and CSRR0/1 registers are emulated.
Signed-off-by: Scott Wood scottw...@freescale.com
Signed-off-by: Stuart Yoder stuart.yo...@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/booke_emulate.c | 25 +
1 files
/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_host.h |2 +
arch/powerpc/include/asm/kvm_ppc.h |3
/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
-v2:
- Addressed the review comments
arch/powerpc/include/asm/kvm_book3s.h |5 ++
arch
/shutdown etc depending upon how
it is configured.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v3:
- Using KVM_REQ_WATCHDOG for userspace exit.
- TSR changes left for vcpu thread.
- Other review comments on v2
arch/powerpc/include/asm/kvm_host.h |3 +
arch/powerpc/include
/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v4:
- in v3 i forgot to add Scott Wood and Liu Yu signoff
v3:
- Using KVM_REQ_WATCHDOG
/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
[bharat.bhus...@freescale.com: reworked patch]
---
v5:
- Checking that TSR_ENW/TSR_WIS are still
/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
[bharat.bhus...@freescale.com: reworked patch]
---
v5:
- Checking that TSR_ENW/TSR_WIS are still
IAC/DAC are defined as 32 bit while they are 64 bit wide. So ONE_REG
interface is added to set/get them.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm.h | 12 ++
arch/powerpc/include/asm/kvm_host.h | 28 ++-
arch/powerpc/kvm
IAC/DAC are defined as 32 bit while they are 64 bit wide. So ONE_REG
interface is added to set/get them.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- Using copy_to/from_user() apis.
arch/powerpc/include/asm/kvm.h | 12 ++
arch/powerpc/include/asm/kvm_host.h
IAC/DAC are defined as 32 bit while they are 64 bit wide. So ONE_REG
interface is added to set/get them.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v3:
- IAC3/4 defined on non-fsl booke
- kvmppc_debug_reg renamed to kvmppc_booke_debug_reg
v2:
- Using copy_to/from_user
reset/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
[bharat.bhus...@freescale.com: reworked patch]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v6:
- Added kvmppc_subarch_vcpu_unit
for different handlers.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_asm.h |2 ++
arch/powerpc/kvm/booke.c|9 +
arch/powerpc/kvm/booke.h|1 +
arch/powerpc/kvm
This patch adds:
1) KVM debug handler added for e500v2.
2) Guest debug by qemu gdb stub.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Varun Sethi varun.se...@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
for different handlers.
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_ppc.h |2 -
arch/powerpc/kvm/booke.c|9 ---
arch/powerpc/kvm/booke.h
Installed debug handler will be used for guest debug support and
debug facility emulation features (patches for these features
will follow this patch).
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus
reset/shutdown etc depending upon how
it is configured.
Signed-off-by: Liu Yu yu@freescale.com
Signed-off-by: Scott Wood scottw...@freescale.com
[bharat.bhus...@freescale.com: reworked patch]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v7:
- kvmppc_core_dequeue_watchdog
I am sending this as a separate patch for easiness on review.
Once reviewed I will merge this with watchdog patch.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/booke.c | 63 +++---
1 files changed, 37 insertions(+), 26
for different handlers.
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_ppc.h |2 -
arch/powerpc/kvm/booke.c|9 ---
arch/powerpc/kvm/booke.h
From: Bharat Bhushan bharat.bhus...@freescale.com
IAC/DAC are defined as 32 bit while they are 64 bit wide. So ONE_REG
interface is added to set/get them.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm.h | 12 ++
arch/powerpc/include/asm
Installed debug handler will be used for guest debug support and
debug facility emulation features (patches for these features
will follow this patch).
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus
No instruction which can change Condition Register (CR) should be executed
after Guest CR is loaded. So the guest CR is restored after the Exit Timing in
lightweight_exit executes cmpw, which can clobber CR.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
This patch is against
Keep track of minimum and maximum address mapped by tlb1.
This helps in TLBMISS handling in KVM to quick check whether the address lies
in mapped range.
If address does not lies in this range then no need to look in each tlb1 entry
of tlb1 array.
Signed-off-by: Bharat Bhushan bharat.bhus
-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/time.h |2 ++
arch/powerpc/kernel/time.c |6 ++
arch/powerpc/kvm/emulate.c |5 +++--
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/include/asm/time.h b/arch
-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- decrementer_clockevent is made non-static rather than a seprate API to get
mult/shift
arch/powerpc/include/asm/time.h |1 +
arch/powerpc/kernel/time.c |2 +-
arch/powerpc/kvm/emulate.c |5 +++--
3 files changed, 5
-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v3:
- decrementer_clockevent symbol exported.
arch/powerpc/include/asm/time.h |1 +
arch/powerpc/kernel/time.c |3 ++-
arch/powerpc/kvm/emulate.c |5 +++--
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git
-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v4:
- Added comment in emulate.c
arch/powerpc/include/asm/time.h |1 +
arch/powerpc/kernel/time.c |3 ++-
arch/powerpc/kvm/emulate.c |9 +++--
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/arch
klondike franxisco1988 at gmail.com writes:
/usr/src/redhat/BUILD/qemu-kvm-0.14.0/qemu-kvm.h:673:38: error: attempt to
use poisoned env
/usr/src/redhat/BUILD/qemu-kvm-0.14.0/qemu-kvm.h:690:37: error: attempt to
use poisoned TARGET_PAGE_BITS
defined
[6/8] booke: Added DBCR4 SPR number
[7/8] KVM: booke/bookehv: Add debug stub support
- Add the debug stub interface on booke/bookehv
[8/8] KVM:PPC:booke: Allow debug interrupt injection to guest
-- with this qemu can inject debug interrupt to guest
Bharat Bhushan (8):
KVM: PPC
From: Bharat Bhushan bharat.bhus...@freescale.com
Like other places, use thread_struct to get vcpu reference.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/reg.h |2 --
arch/powerpc/kernel/asm-offsets.c |2 +-
arch/powerpc/kvm
From: Bharat Bhushan bharat.bhus...@freescale.com
Current kvmppc_booke_handlers uses the same macro (KVM_HANDLER) and
all handlers are considered to be the same size. This will not be
the case if we want to use different macros for different handlers.
This patch improves the kvmppc_booke_handler
From: Bharat Bhushan bharat.bhus...@freescale.com
Installed debug handler will be used for guest debug support
and debug facility emulation features (patches for these
features will follow this patch).
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes
This patch defines the interface parameter for KVM_SET_GUEST_DEBUG
ioctl support. Follow up patches will use this for setting up
hardware breakpoints, watchpoints and software breakpoints.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/uapi/asm/kvm.h | 23
This patch adds the one_reg interface to get the special instruction
to be used for setting software breakpoint from userspace.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
Documentation/virtual/kvm/api.txt |1 +
arch/powerpc/include/asm/kvm_ppc.h |1 +
arch/powerpc
From: Bharat Bhushan bharat.bhus...@freescale.com
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/reg_booke.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/asm/reg_booke.h
b/arch/powerpc/include/asm
This patch adds the debug stub support on booke/bookehv.
Now QEMU debug stub can use hw breakpoint, watchpoint and
software breakpoint to debug guest.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_host.h |5 +
arch/powerpc/include/asm/kvm_ppc.h
Allow userspace to inject debug interrupt to guest. QEMU can
inject the debug interrupt to guest if it is not able to handle
the debug interrupt.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/booke.c | 32 +++-
arch/powerpc/kvm
) setting the TCR register. There are cases where we want to only
change TCR and not TSR. Although we can uses SREGS without
KVM_SREGS_E_UPDATE_TSR flag but I think one reg is better. I am open
if someone feels we should use SREGS only here.
Signed-off-by: Bharat Bhushan
This patchset adds the one_reg interface to get/set TSR and TCR registers.
This patchet also adds the one_reg interface to or/clear specific bits in
TSR register.
Bharat Bhushan (2):
move tsr update in a seprate function
Added one_reg interface for timer registers
arch/powerpc/include/uapi
This is done so that same function can be called from SREGS and
ONE_REG interface (follow up patch).
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/booke.c | 24 ++--
arch/powerpc/kvm/booke.h |1 +
2 files changed, 15 insertions(+), 10
register
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/uapi/asm/kvm.h |5 +
arch/powerpc/kvm/booke.c| 30 ++
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/uapi/asm/kvm.h
This patchset adds the one_reg interface to get/set TSR and TCR registers.
This patchet also adds the one_reg interface to or/clear specific bits in TSR
register.
v2:
-- Added Documentation
Bharat Bhushan (2):
move tsr update in a seprate function
Added one_reg interface for timer
This is done so that same function can be called from SREGS and
ONE_REG interface (follow up patch).
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
No Change
arch/powerpc/kvm/booke.c | 24 ++--
arch/powerpc/kvm/booke.h |1 +
2 files changed, 15
register
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- Added documentation
Documentation/virtual/kvm/api.txt |4
arch/powerpc/include/uapi/asm/kvm.h |5 +
arch/powerpc/kvm/booke.c| 30 ++
3 files changed, 39
This patchset adds the one_reg interface to get/set
TSR and TCR registers.This patchet also adds the one_reg
interface to or/clear specific bits in TSR register.
v3:
- kvmppc_set_tsr() marked static function as this is not called
outside of booke.c
v2:
- Added Documentation
Bharat Bhushan
This is done so that same function can be called from SREGS and
ONE_REG interface (follow up patch).
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v3:
- kvmppc_set_tsr() marked static function as this is not called
outside of booke.c
v2: No change
arch/powerpc/kvm/booke.c
register
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v3: No change
v2: Added Documentation
Documentation/virtual/kvm/api.txt |4
arch/powerpc/include/uapi/asm/kvm.h |5 +
arch/powerpc/kvm/booke.c| 30 ++
3 files
This patchset adds the userspace debug support for booke/bookehv.
this is tested on powerpc e500v2/e500mc devices.
Bharat Bhushan (7):
KVM: PPC: booke: Added debug handler
Added ONE_REG interface for debug instruction
KVM: PPC: debug stub interface parameter defined
booke: Save
with host_dbg_reg. No need to save guest
debug register as shadow_dbg_reg is having required values. If guest is not
using the debug resources then no need to restore h/w registers.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_host.h |5 ++
arch
is required for book3s. So this ioctl
behaviour will not change for book3s.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/uapi/asm/kvm.h | 23 +++
arch/powerpc/kvm/book3s.c |6 ++
arch/powerpc/kvm/booke.c|6
This patch adds the one_reg interface to get the special instruction
to be used for setting software breakpoint from userspace.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
Documentation/virtual/kvm/api.txt |1 +
arch/powerpc/include/asm/kvm_book3s.h |1 +
arch
Installed debug handler will be used for guest debug support
and debug facility emulation features (patches for these
features will follow this patch).
Signed-off-by: Liu Yu yu@freescale.com
[bharat.bhus...@freescale.com: Substantial changes]
Signed-off-by: Bharat Bhushan bharat.bhus
This patch adds the debug stub support on booke/bookehv.
Now QEMU debug stub can use hw breakpoint, watchpoint and
software breakpoint to debug guest.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/uapi/asm/kvm.h | 22 +-
arch/powerpc/kvm/booke.c
Instruction emulation return EMULATE_DO_PAPR when it requires
exit to userspace on book3s. Similar return is required
for booke. EMULATE_DO_PAPR reads out to be confusing so it is
renamed to EMULATE_EXIT_USER.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include
with host_dbg_reg. No need to save guest
debug register as shadow_dbg_reg is having required values. If guest is not
using the debug resources then no need to restore h/w registers.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/bookehv_interrupts.S | 145
either be handled by KVM.
This is tested on e500mc in 32 bit mode
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kernel/exceptions-64e.S | 54 ++
arch/powerpc/kernel/head_booke.h | 35 ++
2 files changed, 89
either be handled by KVM.
This is tested on e500mc in 32 bit mode
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v0:
- Do not apply this change for debug_crit as we do not know those chips have
issue or not.
- corrected 64bit case branching
arch/powerpc/kernel/exceptions-64e.S
From: Bharat Bhushan bharat.bhus...@freescale.com
This patchset adds the userspace debug support for booke/bookehv.
this is tested on powerpc e500v2/e500mc devices.
v1-v2
- Debug registers are save/restore in vcpu_put/vcpu_get.
Earlier the debug registers are saved/restored in guest entry
This patch adds the one_reg interface to get the special instruction
to be used for setting software breakpoint from userspace.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v2:
- Corrected trap tw always opcode.
Documentation/virtual/kvm/api.txt |1 +
arch/powerpc
From: Bharat Bhushan bharat.bhus...@freescale.com
This patch defines the interface parameter for KVM_SET_GUEST_DEBUG
ioctl support. Follow up patches will use this for setting up
hardware breakpoints, watchpoints and software breakpoints.
Also kvm_arch_vcpu_ioctl_set_guest_debug() is brought one
From: Bharat Bhushan bharat.bhus...@freescale.com
Instruction emulation return EMULATE_DO_PAPR when it requires
exit to userspace on book3s. Similar return is required
for booke. EMULATE_DO_PAPR reads out to be confusing so it is
renamed to EMULATE_EXIT_USER.
Signed-off-by: Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com
This patch adds the debug stub support on booke/bookehv.
Now QEMU debug stub can use hw breakpoint, watchpoint and
software breakpoint to debug guest.
Debug registers are saved/restored on vcpu_put()/vcpu_get().
Also the debug registers are saved
From: Bharat Bhushan bharat.bhus...@freescale.com
This patchset adds the userspace debug support for booke/bookehv.
this is tested on powerpc e500v2/e500mc devices.
We are now assuming that debug resource will not be used by
kernel for its own debugging. It will be used for only kernel
user
is required for book3s. So this ioctl
behaviour will not change for book3s.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/uapi/asm/kvm.h | 23 +++
arch/powerpc/kvm/book3s.c |6 ++
arch/powerpc/kvm/booke.c|6
Instruction emulation return EMULATE_DO_PAPR when it requires
exit to userspace on book3s. Similar return is required
for booke. EMULATE_DO_PAPR reads out to be confusing so it is
renamed to EMULATE_EXIT_USER.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include
From: Bharat Bhushan bharat.bhus...@freescale.com
Currently the instruction emulator code returns EMULATE_EXIT_USER
and common code initializes the run-exit_reason = .. and
vcpu-arch.hcall_needed = .. with one fixed reason.
But there can be different reasons when emulator need to exit
to user
From: Bharat Bhushan bharat.bhus...@freescale.com
This allows the exit to user space if emulator request by returning
EMULATE_EXIT_USER. This will be used in subsequent patches in list
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm/booke.c |3 +++
1 files
From: Bharat Bhushan bharat.bhus...@freescale.com
ehpriv instruction is used for setting software breakpoints
by user space. This patch adds support to exit to user space
with run-debug have relevant information.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kvm
From: Bharat Bhushan bharat.bhus...@freescale.com
KVM need this function when switching from vcpu to user-space
thread. My subsequent patch will use this function.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/switch_to.h |4
arch/powerpc
From: Bharat Bhushan bharat.bhus...@freescale.com
This patch adds the debug stub support on booke/bookehv.
Now QEMU debug stub can use hw breakpoint, watchpoint and software
breakpoint to debug guest.
Debug registers are saved/restored on vcpu_put()/vcpu_get().
Also the debug registers are saved
Kernel should only try flushing pages which are managed by kernel.
pfn_to_page will returns junk struct page for pages not managed by kernel,
so if kernel will try to flush direct mapped memory or direct assigned device
mapping then it will work on junk struct page.
Signed-off-by: Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com
Kernel can only access pages which maps as memory.
So flush only the valid kernel pages.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
v1-v2
- move pfn_valid() check in kvmppc_mmu_flush_icache
- Added comment to describe why
ePAPR defines the initial values of cpu registers. This patch initialize
the GPRs as per ePAPR specification.
This resolves the issue of guest reboot/reset (guest hang on reboot).
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
Signed-off-by: Stuart Yoder stuart.yo...@freescale.com
From: Bharat Bhushan bharat.bhus...@freescale.com
This patchset adds the userspace debug support for booke/bookehv.
this is tested on powerpc e500v2/e500mc devices.
We are now assuming that debug resource will not be used by kernel for
its own debugging. It will be used for only kernel user
exception or not. If this is
unexpected exception (breakpoint/watchpoint event not set by
userspace) then let us leave the action on user space. This
is similar to what it was before, only thing is that now we
have proper exit state available to user space.
Signed-off-by: Bharat Bhushan bharat.bhus
KVM need this function when switching from vcpu to user-space
thread. My subsequent patch will use this function.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/switch_to.h |4
arch/powerpc/kernel/process.c|3 ++-
2 files changed, 6
ehpriv instruction is used for setting software breakpoints
by user space. This patch adds support to exit to user space
with run-debug have relevant information.
As this is the first point we are using run-debug, also defined
the run-debug structure.
Signed-off-by: Bharat Bhushan bharat.bhus
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/kernel/process.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 59dd545..8779234 100644
--- a/arch/powerpc/kernel/process.c
This way we can use same data type struct with KVM and
also help in using other debug related function.
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/processor.h | 38 +
arch/powerpc/include/asm/reg_booke.h |8 +-
arch/powerpc/kernel/asm
For KVM also use the struct debug_reg defined in asm/processor.h
Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com
---
arch/powerpc/include/asm/kvm_host.h | 13 +
arch/powerpc/kvm/booke.c| 34 --
2 files changed, 25 insertions
1 - 100 of 493 matches
Mail list logo