Skip to contentSkip to conversation

x86/pv: Drop unused switch_kernel_stack()

PATCH In review Andrew Cooper 3 participants 4 messages May 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/pv: Drop unused switch_kernel_stack()

---
CC: Jan Beulich <[email protected]>

---
 xen/arch/x86/domain.c | 4 ----
 1 file changed, 4 deletions(-)
xen/arch/x86/domain.c +0 -4
index ef8c05a..862a568 100644
@@ -1886,8 +1886,6 @@ static void save_segments(struct vcpu *v)
     this_cpu(dirty_segment_mask) = dirty_segment_mask;
 }
 
-#define switch_kernel_stack(v) ((void)0)
-
 static void paravirt_ctxt_switch_from(struct vcpu *v)
 {
     save_segments(v);
@@ -1906,8 +1904,6 @@ static void paravirt_ctxt_switch_to(struct vcpu *v)
 {
     unsigned long cr4;
 
-    switch_kernel_stack(v);
-
     cr4 = pv_guest_cr4_to_real_cr4(v);
     if ( unlikely(cr4 != read_cr4()) )
         write_cr4(cr4);
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#3 lore raw
Quoted 5 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 05.05.17 at 17:51, <[email protected]> wrote:

I too had this on my mental list for killing...

I have lost count of the number of times I've looked at it and decided that I really should get around to deleting it.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel