Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1674932 > unrolled thread
| Started by | Vitaly Kuznetsov <vkuznets@redhat.com> |
|---|---|
| First post | 2017-06-26 18:40 +0200 |
| Last post | 2017-06-29 09:10 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] xen/x86: Don't BUG on CPU0 offlining Vitaly Kuznetsov <vkuznets@redhat.com> - 2017-06-26 18:40 +0200
Re: [Xen-devel] [PATCH] xen/x86: Don't BUG on CPU0 offlining Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2017-06-28 17:50 +0200
Re: [Xen-devel] [PATCH] xen/x86: Don't BUG on CPU0 offlining Vitaly Kuznetsov <vkuznets@redhat.com> - 2017-06-28 20:00 +0200
Re: [Xen-devel] [PATCH] xen/x86: Don't BUG on CPU0 offlining Juergen Groß <jgross@suse.com> - 2017-06-29 09:10 +0200
| From | Vitaly Kuznetsov <vkuznets@redhat.com> |
|---|---|
| Date | 2017-06-26 18:40 +0200 |
| Subject | [PATCH] xen/x86: Don't BUG on CPU0 offlining |
| Message-ID | <tWFdo-4I2-23@gated-at.bofh.it> |
CONFIG_BOOTPARAM_HOTPLUG_CPU0 allows to offline CPU0 but Xen HVM guests
BUG() in xen_teardown_timer(). Remove the BUG_ON(), this is probably a
leftover from ancient times when CPU0 hotplug was impossible, it works
just fine for HVM.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
- CPU0 hotplug is currently broken on x86, see
https://lkml.org/lkml/2017/6/26/529
---
arch/x86/xen/time.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
index a1895a8..1ecb05d 100644
--- a/arch/x86/xen/time.c
+++ b/arch/x86/xen/time.c
@@ -309,7 +309,6 @@ static irqreturn_t xen_timer_interrupt(int irq, void *dev_id)
void xen_teardown_timer(int cpu)
{
struct clock_event_device *evt;
- BUG_ON(cpu == 0);
evt = &per_cpu(xen_clock_events, cpu).evt;
if (evt->irq >= 0) {
--
2.9.4
[toc] | [next] | [standalone]
| From | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> |
|---|---|
| Date | 2017-06-28 17:50 +0200 |
| Subject | Re: [Xen-devel] [PATCH] xen/x86: Don't BUG on CPU0 offlining |
| Message-ID | <tXno6-dY-11@gated-at.bofh.it> |
| In reply to | #1674932 |
On Mon, Jun 26, 2017 at 06:39:30PM +0200, Vitaly Kuznetsov wrote:
> CONFIG_BOOTPARAM_HOTPLUG_CPU0 allows to offline CPU0 but Xen HVM guests
> BUG() in xen_teardown_timer(). Remove the BUG_ON(), this is probably a
> leftover from ancient times when CPU0 hotplug was impossible, it works
> just fine for HVM.
>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Perhaps:
BUG_ON(cpu == 0 && xen_pv_domain());
?
> ---
> - CPU0 hotplug is currently broken on x86, see
> https://lkml.org/lkml/2017/6/26/529
> ---
> arch/x86/xen/time.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
> index a1895a8..1ecb05d 100644
> --- a/arch/x86/xen/time.c
> +++ b/arch/x86/xen/time.c
> @@ -309,7 +309,6 @@ static irqreturn_t xen_timer_interrupt(int irq, void *dev_id)
> void xen_teardown_timer(int cpu)
> {
> struct clock_event_device *evt;
> - BUG_ON(cpu == 0);
> evt = &per_cpu(xen_clock_events, cpu).evt;
>
> if (evt->irq >= 0) {
> --
> 2.9.4
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel
[toc] | [prev] | [next] | [standalone]
| From | Vitaly Kuznetsov <vkuznets@redhat.com> |
|---|---|
| Date | 2017-06-28 20:00 +0200 |
| Subject | Re: [Xen-devel] [PATCH] xen/x86: Don't BUG on CPU0 offlining |
| Message-ID | <tXpq5-t5-211@gated-at.bofh.it> |
| In reply to | #1676852 |
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> writes:
> On Mon, Jun 26, 2017 at 06:39:30PM +0200, Vitaly Kuznetsov wrote:
>> CONFIG_BOOTPARAM_HOTPLUG_CPU0 allows to offline CPU0 but Xen HVM guests
>> BUG() in xen_teardown_timer(). Remove the BUG_ON(), this is probably a
>> leftover from ancient times when CPU0 hotplug was impossible, it works
>> just fine for HVM.
>>
>> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
>
> Perhaps:
>
> BUG_ON(cpu == 0 && xen_pv_domain());
>
Linus says no BUG_ONs :-)
xen_pv_cpu_disable() has the following:
if (cpu == 0)
return -EBUSY;
as a protection so we won't get to xen_teardown_timer() but if you think
additional BUG_ON() protection is justified I'm definitely not against
adding it.
--
Vitaly
[toc] | [prev] | [next] | [standalone]
| From | Juergen Groß <jgross@suse.com> |
|---|---|
| Date | 2017-06-29 09:10 +0200 |
| Subject | Re: [Xen-devel] [PATCH] xen/x86: Don't BUG on CPU0 offlining |
| Message-ID | <tXBKq-4yb-21@gated-at.bofh.it> |
| In reply to | #1676988 |
On 06/28/2017 06:31 PM, Vitaly Kuznetsov wrote: > Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> writes: > >> On Mon, Jun 26, 2017 at 06:39:30PM +0200, Vitaly Kuznetsov wrote: >>> CONFIG_BOOTPARAM_HOTPLUG_CPU0 allows to offline CPU0 but Xen HVM guests >>> BUG() in xen_teardown_timer(). Remove the BUG_ON(), this is probably a >>> leftover from ancient times when CPU0 hotplug was impossible, it works >>> just fine for HVM. >>> >>> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> >> >> Perhaps: >> >> BUG_ON(cpu == 0 && xen_pv_domain()); >> > > Linus says no BUG_ONs :-) > > xen_pv_cpu_disable() has the following: > > if (cpu == 0) > return -EBUSY; > > as a protection so we won't get to xen_teardown_timer() but if you think > additional BUG_ON() protection is justified I'm definitely not against > adding it. No, I don't think its needed. This should be handled at the appropriate level, not down in the timer handling. So: Acked-by: Juergen Gross <jgross@suse.com> Juergen
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web