Skip to contentSkip to conversation

Add dbsr in kvm_vcpu_arch

PATCH In review Liu Yu 2 participants 3 messages Dec 11, 2008 – Dec 16, 2008

Subsystems (2)
lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 1/11 Add dbsr in kvm_vcpu_arch

Kernel for E500 will clear dbsr when startup.
So add dbsr register in kvm_vcpu_arch.

---
 arch/powerpc/include/asm/kvm_host.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/include/asm/kvm_host.h +1 -0
index 850c41e..63962fa 100644
@@ -163,6 +163,7 @@ struct kvm_vcpu_arch {
 	u32 ccr1;
 	u32 dbcr0;
 	u32 dbcr1;
+	u32 dbsr;
 
 #ifdef CONFIG_KVM_EXIT_TIMING
 	struct kvmppc_exit_timing timing_exit;
Signature · 1 line
1.5.4
#1 lore raw
Quoted 13 lines · Liu Yu

Kernel for E500 will clear dbsr when startup.
So add dbsr register in kvm_vcpu_arch.

---
 arch/powerpc/include/asm/kvm_host.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/include/asm/kvm_host.h +0 -0
index 850c41e..63962fa 100644

arch/powerpc/include/asm/kvm_host.h struct kvm_vcpu_arch { · line 169

Quoted 7 lines
arch/powerpc/include/asm/kvm_host.h +1 -0
@@ -163,6 +163,7 @@ struct kvm_vcpu_arch {
 	u32 ccr1;
 	u32 dbcr0;
 	u32 dbcr1;
+	u32 dbsr;
 
 #ifdef CONFIG_KVM_EXIT_TIMING
 	struct kvmppc_exit_timing timing_exit;

You should definitely add the emulation code for 440 to use dbsr in the same patch.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center
author
#2 lore raw
In reply to Liu Yu
Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hollis Blanchard
Sent: Tuesday, December 16, 2008 7:33 AM
To: Liu Yu-B13201
Cc: [email protected]
Subject: Re: [PATCH 01/11] Add dbsr in kvm_vcpu_arch

Review

Quoted 9 lines · Liu Yu

Kernel for E500 will clear dbsr when startup.
So add dbsr register in kvm_vcpu_arch.

---
 arch/powerpc/include/asm/kvm_host.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/arch/powerpc/include/asm/kvm_host.h

Quoted 9 lines

index 850c41e..63962fa 100644

arch/powerpc/include/asm/kvm_host.h +1 -0
@@ -163,6 +163,7 @@ struct kvm_vcpu_arch {
 	u32 ccr1;
 	u32 dbcr0;
 	u32 dbcr1;
+	u32 dbsr;
 
Quoted 6 lines

arch/powerpc/include/asm/kvm_host.h struct kvm_vcpu_arch { · line 169

Quoted 2 lines
arch/powerpc/include/asm/kvm_host.h +0 -0
 #ifdef CONFIG_KVM_EXIT_TIMING
 	struct kvmppc_exit_timing timing_exit;

You should definitely add the emulation code for 440 to use dbsr in the
same patch.

Added.