Skip to contentSkip to conversation

Xen: Use native_pte_flags instead of native_pte_val for .pte_flags

PATCH Applied Eduardo Habkost 4 participants 9 messages Jul 24, 2008 – Jul 31, 2008

Subsystems (5)
lore
Share & tools
lore
#1 lore raw

PATCH 2/2 xen-netfront: call netif_start_queue() on xennet_open()

In reply to Eduardo Habkost

xen-netfront was waking the queue before calling netif_start_queue(), triggering the BUG_ON() on __netif_schedule().

---
 drivers/net/xen-netfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/xen-netfront.c +1 -1
index 902bbe7..c749bdb 100644
@@ -329,7 +329,7 @@ static int xennet_open(struct net_device *dev)
 	}
 	spin_unlock_bh(&np->rx_lock);
 
-	xennet_maybe_wake_tx(dev);
+	netif_start_queue(dev);
 
 	return 0;
 }
Signature · 1 line
1.5.5.GIT
#0 lore raw

PATCH 1/2 Xen: Use native_pte_flags instead of native_pte_val for .pte_flags

Using native_pte_val triggers the BUG_ON() in the paravirt_ops version of pte_flags().

---
 arch/x86/xen/enlighten.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/xen/enlighten.c +1 -1
index 3fc0c15..6b169b7 100644
@@ -1378,7 +1378,7 @@ static const struct pv_mmu_ops xen_mmu_ops __initdata = {
 	.ptep_modify_prot_commit = __ptep_modify_prot_commit,
 
 	.pte_val = xen_pte_val,
-	.pte_flags = native_pte_val,
+	.pte_flags = native_pte_flags,
 	.pgd_val = xen_pgd_val,
 
 	.make_pte = xen_make_pte,
Signature · 1 line
1.5.5.GIT
Acked-by on v1 1/2
#7 lore raw
Quoted 5 lines · Eduardo Habkost

Using native_pte_val triggers the BUG_ON() in the paravirt_ops version of pte_flags().

Good point.

J

Quoted 18 lines
---
 arch/x86/xen/enlighten.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/xen/enlighten.c +1 -1
index 3fc0c15..6b169b7 100644
@@ -1378,7 +1378,7 @@ static const struct pv_mmu_ops xen_mmu_ops __initdata = {
 	.ptep_modify_prot_commit = __ptep_modify_prot_commit,
 
 	.pte_val = xen_pte_val,
-	.pte_flags = native_pte_val,
+	.pte_flags = native_pte_flags,
 	.pgd_val = xen_pgd_val,
 
 	.make_pte = xen_make_pte,
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] xen-netfront: call netif_start_queue() on xennet_open()

In reply to Eduardo Habkost
Quoted 5 lines · Eduardo Habkost

xen-netfront was waking the queue before calling netif_start_queue(), triggering the BUG_ON() on __netif_schedule().

Ok,

but Ingo, do you want to pick this up? You're gathering a collection of these patches anyway, or should we kick it over to Dave/Jeff?

J

Quoted 18 lines
---
 drivers/net/xen-netfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/xen-netfront.c +1 -1
index 902bbe7..c749bdb 100644
@@ -329,7 +329,7 @@ static int xennet_open(struct net_device *dev)
 	}
 	spin_unlock_bh(&np->rx_lock);
 
-	xennet_maybe_wake_tx(dev);
+	netif_start_queue(dev);
 
 	return 0;
 }
#3 lore raw

Re: [PATCH 2/2] xen-netfront: call netif_start_queue() on xennet_open()

Quoted 25 lines · Jeremy Fitzhardinge
Quoted 5 lines · Eduardo Habkost

xen-netfront was waking the queue before calling netif_start_queue(), triggering the BUG_ON() on __netif_schedule().

Ok,

but Ingo, do you want to pick this up? You're gathering a collection of these patches anyway, or should we kick it over to Dave/Jeff?

J

Quoted 12 lines
---
 drivers/net/xen-netfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/xen-netfront.c +0 -0
index 902bbe7..c749bdb 100644
@@ -329,7 +329,7 @@ static int xennet_open(struct net_device *dev)
     }
     spin_unlock_bh(&np->rx_lock);
 
Quoted 2 lines

drivers/net/xen-netfront.c static int xennet_open(struct net_device *dev) · line 332

Quoted 2 lines
drivers/net/xen-netfront.c +1 -1
-    xennet_maybe_wake_tx(dev);
+    netif_start_queue(dev);

This is clearly a net driver change, it should go this way...

Jeff

#4 lore raw

Re: [PATCH 2/2] xen-netfront: call netif_start_queue() on xennet_open()

Quoted 26 lines · Jeff Garzik
Quoted 25 lines · Jeremy Fitzhardinge
Quoted 5 lines · Eduardo Habkost

xen-netfront was waking the queue before calling netif_start_queue(), triggering the BUG_ON() on __netif_schedule().

Ok,

but Ingo, do you want to pick this up? You're gathering a collection of these patches anyway, or should we kick it over to Dave/Jeff?

J

Quoted 12 lines
---
 drivers/net/xen-netfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/xen-netfront.c +0 -0
index 902bbe7..c749bdb 100644
@@ -329,7 +329,7 @@ static int xennet_open(struct net_device *dev)
     }
     spin_unlock_bh(&np->rx_lock);
 
Quoted 4 lines
Quoted 2 lines

drivers/net/xen-netfront.c static int xennet_open(struct net_device *dev) · line 332

Quoted 2 lines
drivers/net/xen-netfront.c +1 -1
-    xennet_maybe_wake_tx(dev);
+    netif_start_queue(dev);

This is clearly a net driver change, it should go this way...

OK, all your's.

J

#5 lore raw

Re: [PATCH 2/2] xen-netfront: call netif_start_queue() on xennet_open()

In reply to Jeremy Fitzhardinge
Quoted 32 lines · Jeremy Fitzhardinge
Quoted 19 lines · Jeff Garzik
Quoted 18 lines · Jeremy Fitzhardinge
Quoted 5 lines · Eduardo Habkost

xen-netfront was waking the queue before calling netif_start_queue(), triggering the BUG_ON() on __netif_schedule().

Ok,

but Ingo, do you want to pick this up? You're gathering a collection of these patches anyway, or should we kick it over to Dave/Jeff?

J

Quoted 4 lines
---
 drivers/net/xen-netfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 11 lines
Quoted 9 lines

drivers/net/xen-netfront.c static int xennet_open(struct net_device *dev) · line 332

Quoted 9 lines
drivers/net/xen-netfront.c +1 -0
index 902bbe7..c749bdb 100644
@@ -329,7 +329,7 @@ static int xennet_open(struct net_device *dev)
     }
     spin_unlock_bh(&np->rx_lock);
 -    xennet_maybe_wake_tx(dev);
+    netif_start_queue(dev);

This is clearly a net driver change, it should go this way...

Quoted 1 line

OK, all your's.

I didn't find it on any git repository. Is it queued somewhere? If not, should I resend?

Signature · 1 line
Eduardo
#6 lore raw

Re: [PATCH 2/2] xen-netfront: call netif_start_queue() on xennet_open()

Quoted 3 lines · Eduardo Habkost

I didn't find it on any git repository. Is it queued somewhere? If not, should I resend?

Yes, I think it fell through the cracks. Resend to Jeff.

J