Xen: Use native_pte_flags instead of native_pte_val for .pte_flags
Subsystems (5)
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
@@ -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
PATCH 2/2 xen-netfront: call netif_start_queue() on xennet_open()
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
@@ -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
Re: [PATCH 2/2] xen-netfront: call netif_start_queue() on xennet_open()
Quoted 5 lines · Eduardo Habkost
xen-netfront was waking the queue before calling
netif_start_queue(), triggering theBUG_ON()on__netif_schedule().Signed-off-by Eduardo Habkost <[email protected]>
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@@ -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 ; }
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 theBUG_ON()on__netif_schedule().Signed-off-by Eduardo Habkost <[email protected]>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@@ -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
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 theBUG_ON()on__netif_schedule().Signed-off-by Eduardo Habkost <[email protected]>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@@ -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
Re: [PATCH 2/2] xen-netfront: call netif_start_queue() on xennet_open()
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 theBUG_ON()on__netif_schedule().Signed-off-by Eduardo Habkost <[email protected]>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@@ -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
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
Quoted 5 lines · Eduardo Habkost
Using
native_pte_valtriggers theBUG_ON()in theparavirt_opsversion ofpte_flags().Signed-off-by Eduardo Habkost <[email protected]>
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@@ -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,
Ingo Molnar
AppliedQuoted 10 lines · Jeremy Fitzhardinge
Quoted 5 lines · Eduardo Habkost
Using
native_pte_valtriggers theBUG_ON()in theparavirt_opsversion ofpte_flags().Signed-off-by Eduardo Habkost <[email protected]>Good point.
applied to tip/x86/xen - thanks.
Ingo