Skip to contentSkip to conversation

qemu/kvm: enable POWERPC_MMU_BOOKE_FSL when kvm is enabled.

PATCH In review Liu Yu 2 participants 4 messages Jan 9, 2009 – Jan 12, 2009

lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 1/5 qemu/kvm: enable POWERPC_MMU_BOOKE_FSL when kvm is enabled.

---
 target-ppc/helper.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
target-ppc/helper.c +2 -0
index 4676d50..970165d 100644
@@ -1939,6 +1939,8 @@ void ppc_tlb_invalidate_all (CPUPPCState *env)
         break;
     case POWERPC_MMU_BOOKE_FSL:
         /* XXX: TODO */
+	if (kvm_enabled())
+		break;
         cpu_abort(env, "BookE MMU model is not implemented\n");
         break;
     case POWERPC_MMU_32B:
Signature · 1 line
1.5.4
author
#1 lore raw

PATCH 1/5 qemu/kvm: enable POWERPC_MMU_BOOKE_FSL when kvm is enabled.

---
 target-ppc/helper.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
target-ppc/helper.c +2 -0
index 4676d50..970165d 100644
@@ -1939,6 +1939,8 @@ void ppc_tlb_invalidate_all (CPUPPCState *env)
         break;
     case POWERPC_MMU_BOOKE_FSL:
         /* XXX: TODO */
+	if (kvm_enabled())
+		break;
         cpu_abort(env, "BookE MMU model is not implemented\n");
         break;
     case POWERPC_MMU_32B:
Signature · 1 line
1.5.4
#2 lore raw

Re: [PATCH 1/5] qemu/kvm: enable POWERPC_MMU_BOOKE_FSL when kvm is

In reply to Liu Yu
Quoted 10 lines · Liu Yu
---
 target-ppc/helper.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
target-ppc/helper.c +0 -0
index 4676d50..970165d 100644

target-ppc/helper.c void ppc_tlb_invalidate_all (CPUPPCState *env) · line 1946

Quoted 8 lines
target-ppc/helper.c +2 -0
@@ -1939,6 +1939,8 @@ void ppc_tlb_invalidate_all (CPUPPCState *env)
         break;
     case POWERPC_MMU_BOOKE_FSL:
         /* XXX: TODO */
+	if (kvm_enabled())
+		break;
         cpu_abort(env, "BookE MMU model is not implemented\n");
         break;
     case POWERPC_MMU_32B:

This might better be written as:

	if (!kvm_enabled())
		cpu_abort(...)
	break;
Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center
author
#3 lore raw

RE: [PATCH 1/5] qemu/kvm: enable POWERPC_MMU_BOOKE_FSL when kvm isenabled.

In reply to Liu Yu
Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hollis Blanchard
Sent: Saturday, January 10, 2009 4:10 AM
To: Liu Yu-B13201
Cc: [email protected]
Subject: Re: [PATCH 1/5] qemu/kvm: enable POWERPC_MMU_BOOKE_FSL when kvm isenabled.

Quoted 10 lines · Liu Yu
---
 target-ppc/helper.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
target-ppc/helper.c +0 -0
index 4676d50..970165d 100644

target-ppc/helper.c void ppc_tlb_invalidate_all (CPUPPCState *env) · line 1946

Quoted 8 lines
target-ppc/helper.c +2 -0
@@ -1939,6 +1939,8 @@ void ppc_tlb_invalidate_all (CPUPPCState *env)
         break;
     case POWERPC_MMU_BOOKE_FSL:
         /* XXX: TODO */
+	if (kvm_enabled())
+		break;
         cpu_abort(env, "BookE MMU model is not implemented\n");
         break;
     case POWERPC_MMU_32B:

This might better be written as:

Quoted 4 lines
	if (!kvm_enabled())
		cpu_abort(...)
	break;

Fixed. Thanks.