Skip to contentSkip to conversation

xen: Strip vcpu_switch_to_aarch64_mode() from PPC and RISC-V stubs

PATCH In review Andrew Cooper 2 participants 2 messages Feb 10 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Strip vcpu_switch_to_aarch64_mode() from PPC and RISC-V stubs

This is absolutely too much copy&paste from ARM. All other stubs look somewhat reasonable.

No functional change.

---
CC: Oleksii Kurochko <[email protected]>
CC: Timothy Pearson <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>

---
 xen/arch/ppc/stubs.c   | 5 -----
 xen/arch/riscv/stubs.c | 5 -----
 2 files changed, 10 deletions(-)
xen/arch/ppc/stubs.c +0 -5
index f7f6e7ed97af..a333f06119a0 100644
@@ -162,11 +162,6 @@ void arch_vcpu_destroy(struct vcpu *v)
     BUG_ON("unimplemented");
 }
 
-void vcpu_switch_to_aarch64_mode(struct vcpu *v)
-{
-    BUG_ON("unimplemented");
-}
-
 int arch_sanitise_domain_config(struct xen_domctl_createdomain *config)
 {
     BUG_ON("unimplemented");
xen/arch/riscv/stubs.c +0 -5
index acbfde79b5a7..d071c8b86d07 100644
@@ -126,11 +126,6 @@ void arch_vcpu_destroy(struct vcpu *v)
     BUG_ON("unimplemented");
 }
 
-void vcpu_switch_to_aarch64_mode(struct vcpu *v)
-{
-    BUG_ON("unimplemented");
-}
-
 int arch_sanitise_domain_config(struct xen_domctl_createdomain *config)
 {
     BUG_ON("unimplemented");

base-commit: 2fa468919c39aac189623b6c580ce4ff8592d799

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 41 lines · Andrew Cooper

This is absolutely too much copy&paste from ARM. All other stubs look somewhat reasonable.

No functional change.

---
CC: Oleksii Kurochko <[email protected]>
CC: Timothy Pearson <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>

---
  xen/arch/ppc/stubs.c   | 5 -----
  xen/arch/riscv/stubs.c | 5 -----
  2 files changed, 10 deletions(-)
xen/arch/ppc/stubs.c +0 -5
index f7f6e7ed97af..a333f06119a0 100644
@@ -162,11 +162,6 @@ void arch_vcpu_destroy(struct vcpu *v)
      BUG_ON("unimplemented");
  }
 
-void vcpu_switch_to_aarch64_mode(struct vcpu *v)
-{
-    BUG_ON("unimplemented");
-}
-
  int arch_sanitise_domain_config(struct xen_domctl_createdomain *config)
  {
      BUG_ON("unimplemented");
xen/arch/riscv/stubs.c +0 -0
index acbfde79b5a7..d071c8b86d07 100644

xen/arch/riscv/stubs.c void arch_vcpu_destroy(struct vcpu *v) · line 133

Quoted 8 lines
xen/arch/riscv/stubs.c +0 -5
@@ -126,11 +126,6 @@ void arch_vcpu_destroy(struct vcpu *v)
      BUG_ON("unimplemented");
  }
 
-void vcpu_switch_to_aarch64_mode(struct vcpu *v)
-{
-    BUG_ON("unimplemented");
-}
-

These changes looks good to me:

Thanks for cleaning it up.

~ Oleksii