Skip to content

xen: fix illegal rtc device usage of pv guests

Juergen Gross linux-pm lkml stable xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PM: base: power: don't try to use non-existing RTC for storing datadrivers/base/power/trace.c+10 -05 replies
2/2xen: reset legacy rtc flag for PV domUarch/x86/xen/enlighten_pv.c+7 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRafael J. WysockiBoris Ostrovsky
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] xen: fix illegal rtc device usage of pv guests

A recent change in mc146818_get_time() resulted in WARN splats when booting a Xen PV guest.

The main reason is that there is a code path resulting in accessing a RTC device which is not present, which has been made obvious by a call of WARN() in this case.

This small series is fixing this issue by:

- avoiding the RTC device access from drivers/base/power/trace.c in cast there is no legacy RTC device available
- resetting the availability flag of a legacy RTC device for Xen PV guests

Juergen Gross (2):
PM: base: power: don't try to use non-existing RTC for storing data
xen: reset legacy rtc flag for PV domU

 arch/x86/xen/enlighten_pv.c |  7 +++++++
 drivers/base/power/trace.c  | 10 ++++++++++
 2 files changed, 17 insertions(+)
Signature · 1 line
2.26.2