* Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:00 ` [Xen-devel] " Sander Eikelenboom
@ 2015-12-09 15:15 ` Boris Ostrovsky
2015-12-09 15:27 ` Jan Beulich
2015-12-09 15:27 ` [Xen-devel] " Jan Beulich
2015-12-09 15:15 ` Boris Ostrovsky
` (2 subsequent siblings)
3 siblings, 2 replies; 14+ messages in thread
From: Boris Ostrovsky @ 2015-12-09 15:15 UTC (permalink / raw)
To: Sander Eikelenboom, Jan Beulich
Cc: David Vrabel, x86, tglx, xen-devel, mingo, vkuznets, linux-kernel,
stable, hpa
On 12/09/2015 10:00 AM, Sander Eikelenboom wrote:
> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>> --- a/arch/x86/kernel/rtc.c
>>> +++ b/arch/x86/kernel/rtc.c
>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>> }
>>> #endif
>>>
>>> + if (paravirt_enabled())
>>> + return -ENODEV;
>>
>> What about Xen Dom0?
>>
>> Jan
>
> Checked that in my testing and that still worked:
> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
> nvram
> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
> 08:43:48 UTC (1449650628)
>
> and /dev/rtc and /dev/rtc0 both exist.
>
> But i don't know the nitty gritty details about why ...
That's because it is discovered by ACPI earlier. I don't know though
whether we can always assume this will be the case.
-boris
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:15 ` Boris Ostrovsky
@ 2015-12-09 15:27 ` Jan Beulich
2015-12-09 15:27 ` [Xen-devel] " Jan Beulich
1 sibling, 0 replies; 14+ messages in thread
From: Jan Beulich @ 2015-12-09 15:27 UTC (permalink / raw)
To: Sander Eikelenboom, Boris Ostrovsky
Cc: x86, linux-kernel, stable, mingo, David Vrabel, hpa, xen-devel,
tglx, vkuznets
>>> On 09.12.15 at 16:15, <boris.ostrovsky@oracle.com> wrote:
> On 12/09/2015 10:00 AM, Sander Eikelenboom wrote:
>> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>>> --- a/arch/x86/kernel/rtc.c
>>>> +++ b/arch/x86/kernel/rtc.c
>>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>>> }
>>>> #endif
>>>>
>>>> + if (paravirt_enabled())
>>>> + return -ENODEV;
>>>
>>> What about Xen Dom0?
>>>
>>> Jan
>>
>> Checked that in my testing and that still worked:
>> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
>> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
>> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
>> nvram
>> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
>> 08:43:48 UTC (1449650628)
>>
>> and /dev/rtc and /dev/rtc0 both exist.
>>
>> But i don't know the nitty gritty details about why ...
>
>
> That's because it is discovered by ACPI earlier. I don't know though
> whether we can always assume this will be the case.
I don't think we should - Dom0 should (device-wise) behave just
like a native kernel.
Jan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:15 ` Boris Ostrovsky
2015-12-09 15:27 ` Jan Beulich
@ 2015-12-09 15:27 ` Jan Beulich
2015-12-09 18:18 ` Boris Ostrovsky
2015-12-09 18:18 ` Boris Ostrovsky
1 sibling, 2 replies; 14+ messages in thread
From: Jan Beulich @ 2015-12-09 15:27 UTC (permalink / raw)
To: Sander Eikelenboom, Boris Ostrovsky
Cc: David Vrabel, x86, tglx, xen-devel, mingo, vkuznets, linux-kernel,
stable, hpa
>>> On 09.12.15 at 16:15, <boris.ostrovsky@oracle.com> wrote:
> On 12/09/2015 10:00 AM, Sander Eikelenboom wrote:
>> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>>> --- a/arch/x86/kernel/rtc.c
>>>> +++ b/arch/x86/kernel/rtc.c
>>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>>> }
>>>> #endif
>>>>
>>>> + if (paravirt_enabled())
>>>> + return -ENODEV;
>>>
>>> What about Xen Dom0?
>>>
>>> Jan
>>
>> Checked that in my testing and that still worked:
>> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
>> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
>> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
>> nvram
>> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
>> 08:43:48 UTC (1449650628)
>>
>> and /dev/rtc and /dev/rtc0 both exist.
>>
>> But i don't know the nitty gritty details about why ...
>
>
> That's because it is discovered by ACPI earlier. I don't know though
> whether we can always assume this will be the case.
I don't think we should - Dom0 should (device-wise) behave just
like a native kernel.
Jan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:27 ` [Xen-devel] " Jan Beulich
@ 2015-12-09 18:18 ` Boris Ostrovsky
2015-12-09 18:18 ` Boris Ostrovsky
1 sibling, 0 replies; 14+ messages in thread
From: Boris Ostrovsky @ 2015-12-09 18:18 UTC (permalink / raw)
To: Jan Beulich, Sander Eikelenboom
Cc: David Vrabel, x86, tglx, xen-devel, mingo, vkuznets, linux-kernel,
stable, hpa
On 12/09/2015 10:27 AM, Jan Beulich wrote:
>>>> On 09.12.15 at 16:15, <boris.ostrovsky@oracle.com> wrote:
>> On 12/09/2015 10:00 AM, Sander Eikelenboom wrote:
>>> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>>>> --- a/arch/x86/kernel/rtc.c
>>>>> +++ b/arch/x86/kernel/rtc.c
>>>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>>>> }
>>>>> #endif
>>>>>
>>>>> + if (paravirt_enabled())
>>>>> + return -ENODEV;
>>>> What about Xen Dom0?
>>>>
>>>> Jan
>>> Checked that in my testing and that still worked:
>>> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
>>> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
>>> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
>>> nvram
>>> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
>>> 08:43:48 UTC (1449650628)
>>>
>>> and /dev/rtc and /dev/rtc0 both exist.
>>>
>>> But i don't know the nitty gritty details about why ...
>>
>> That's because it is discovered by ACPI earlier. I don't know though
>> whether we can always assume this will be the case.
> I don't think we should - Dom0 should (device-wise) behave just
> like a native kernel.
So maybe then this is the case for having a feature flag (probably in
pv_info) that marks which features are paravirtualized.
Vitaly suggested it earlier but I thought we won't have use for it until
we get to HVMlite with variable set of fetures.
-boris
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:27 ` [Xen-devel] " Jan Beulich
2015-12-09 18:18 ` Boris Ostrovsky
@ 2015-12-09 18:18 ` Boris Ostrovsky
1 sibling, 0 replies; 14+ messages in thread
From: Boris Ostrovsky @ 2015-12-09 18:18 UTC (permalink / raw)
To: Jan Beulich, Sander Eikelenboom
Cc: x86, linux-kernel, stable, mingo, David Vrabel, hpa, xen-devel,
tglx, vkuznets
On 12/09/2015 10:27 AM, Jan Beulich wrote:
>>>> On 09.12.15 at 16:15, <boris.ostrovsky@oracle.com> wrote:
>> On 12/09/2015 10:00 AM, Sander Eikelenboom wrote:
>>> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>>>> --- a/arch/x86/kernel/rtc.c
>>>>> +++ b/arch/x86/kernel/rtc.c
>>>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>>>> }
>>>>> #endif
>>>>>
>>>>> + if (paravirt_enabled())
>>>>> + return -ENODEV;
>>>> What about Xen Dom0?
>>>>
>>>> Jan
>>> Checked that in my testing and that still worked:
>>> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
>>> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
>>> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
>>> nvram
>>> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
>>> 08:43:48 UTC (1449650628)
>>>
>>> and /dev/rtc and /dev/rtc0 both exist.
>>>
>>> But i don't know the nitty gritty details about why ...
>>
>> That's because it is discovered by ACPI earlier. I don't know though
>> whether we can always assume this will be the case.
> I don't think we should - Dom0 should (device-wise) behave just
> like a native kernel.
So maybe then this is the case for having a feature flag (probably in
pv_info) that marks which features are paravirtualized.
Vitaly suggested it earlier but I thought we won't have use for it until
we get to HVMlite with variable set of fetures.
-boris
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:00 ` [Xen-devel] " Sander Eikelenboom
2015-12-09 15:15 ` Boris Ostrovsky
@ 2015-12-09 15:15 ` Boris Ostrovsky
2015-12-09 15:23 ` [Xen-devel] " Vitaly Kuznetsov
2015-12-09 15:23 ` Vitaly Kuznetsov
3 siblings, 0 replies; 14+ messages in thread
From: Boris Ostrovsky @ 2015-12-09 15:15 UTC (permalink / raw)
To: Sander Eikelenboom, Jan Beulich
Cc: x86, linux-kernel, stable, mingo, David Vrabel, hpa, xen-devel,
tglx, vkuznets
On 12/09/2015 10:00 AM, Sander Eikelenboom wrote:
> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>> --- a/arch/x86/kernel/rtc.c
>>> +++ b/arch/x86/kernel/rtc.c
>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>> }
>>> #endif
>>>
>>> + if (paravirt_enabled())
>>> + return -ENODEV;
>>
>> What about Xen Dom0?
>>
>> Jan
>
> Checked that in my testing and that still worked:
> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
> nvram
> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
> 08:43:48 UTC (1449650628)
>
> and /dev/rtc and /dev/rtc0 both exist.
>
> But i don't know the nitty gritty details about why ...
That's because it is discovered by ACPI earlier. I don't know though
whether we can always assume this will be the case.
-boris
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:00 ` [Xen-devel] " Sander Eikelenboom
2015-12-09 15:15 ` Boris Ostrovsky
2015-12-09 15:15 ` Boris Ostrovsky
@ 2015-12-09 15:23 ` Vitaly Kuznetsov
2015-12-09 15:23 ` Vitaly Kuznetsov
3 siblings, 0 replies; 14+ messages in thread
From: Vitaly Kuznetsov @ 2015-12-09 15:23 UTC (permalink / raw)
To: Sander Eikelenboom
Cc: Jan Beulich, Boris Ostrovsky, David Vrabel, x86, tglx, xen-devel,
mingo, linux-kernel, stable, hpa
Sander Eikelenboom <linux@eikelenboom.it> writes:
> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>> --- a/arch/x86/kernel/rtc.c
>>> +++ b/arch/x86/kernel/rtc.c
>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>> }
>>> #endif
>>>
>>> + if (paravirt_enabled())
>>> + return -ENODEV;
>>
>> What about Xen Dom0?
>>
>> Jan
>
> Checked that in my testing and that still worked:
> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
> nvram
> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
> 08:43:48 UTC (1449650628)
>
> and /dev/rtc and /dev/rtc0 both exist.
>
> But i don't know the nitty gritty details about why ...
As far as I can see in Dom0 the device is present in ACPI as PNP0B00 so
a different path is probably in use.
--
Vitaly
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
2015-12-09 15:00 ` [Xen-devel] " Sander Eikelenboom
` (2 preceding siblings ...)
2015-12-09 15:23 ` [Xen-devel] " Vitaly Kuznetsov
@ 2015-12-09 15:23 ` Vitaly Kuznetsov
3 siblings, 0 replies; 14+ messages in thread
From: Vitaly Kuznetsov @ 2015-12-09 15:23 UTC (permalink / raw)
To: Sander Eikelenboom
Cc: x86, linux-kernel, stable, mingo, David Vrabel, Jan Beulich, hpa,
xen-devel, Boris Ostrovsky, tglx
Sander Eikelenboom <linux@eikelenboom.it> writes:
> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>> --- a/arch/x86/kernel/rtc.c
>>> +++ b/arch/x86/kernel/rtc.c
>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>> }
>>> #endif
>>>
>>> + if (paravirt_enabled())
>>> + return -ENODEV;
>>
>> What about Xen Dom0?
>>
>> Jan
>
> Checked that in my testing and that still worked:
> [ 16.733837] rtc_cmos 00:02: RTC can wake from S4
> [ 16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
> [ 16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes
> nvram
> [ 17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09
> 08:43:48 UTC (1449650628)
>
> and /dev/rtc and /dev/rtc0 both exist.
>
> But i don't know the nitty gritty details about why ...
As far as I can see in Dom0 the device is present in ACPI as PNP0B00 so
a different path is probably in use.
--
Vitaly
^ permalink raw reply [flat|nested] 14+ messages in thread