From: "Trolle Selander" Subject: [PATCH] [HVM] RTC_UIE/RTC_SET fix Date: Fri, 16 Nov 2007 10:07:48 -0800 Message-ID: <515922b50711161007nc5cbf84v6f3498ce160713bc@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_12447_13767984.1195236468698" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org ------=_Part_12447_13767984.1195236468698 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline This patch fixes a bug in the RTC code which appears to originate in having written the emuated device following an incorrect specification. VMware has (or had, at least, at the time we were still testing on both VMWare and Xen) the same issue. In the current code, when RTC_SET is set, RTC_UIE is cleared. This does not match the behavior of real hardware, where the case is simply that no update ended interrupts are sent as long as RTC_SET is set, but the UE ints will resume as soon as RTC_SET is cleared and the clock update is done. This little patch fixes this issue. In practicality, this means OS/2 can now set the time without having the clock stop. I don't know if any other guests have been affected by this issue. ------=_Part_12447_13767984.1195236468698 Content-Type: text/x-patch; name=xen-rtcuiefix.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_f930np490 Content-Disposition: attachment; filename=xen-rtcuiefix.patch ZGlmZiAtdU5yIHhlbi11bnN0YWJsZS5oZy1vcmlnL3hlbi9hcmNoL3g4Ni9odm0vcnRjLmMgeGVu LXVuc3RhYmxlLmhnLXJ0Y2ZpeC94ZW4vYXJjaC94ODYvaHZtL3J0Yy5jCi0tLSB4ZW4tdW5zdGFi bGUuaGctb3JpZy94ZW4vYXJjaC94ODYvaHZtL3J0Yy5jCTIwMDctMTEtMTUgMTA6Mzg6MTguMDAw MDAwMDAwIC0wODAwCisrKyB4ZW4tdW5zdGFibGUuaGctcnRjZml4L3hlbi9hcmNoL3g4Ni9odm0v cnRjLmMJMjAwNy0xMS0xNSAxMjo0ODoxMy4wMDAwMDAwMDAgLTA4MDAKQEAgLTEyOCw3ICsxMjgs NiBAQAogICAgICAgICB7CiAgICAgICAgICAgICAvKiBzZXQgbW9kZTogcmVzZXQgVUlQIG1vZGUg Ki8KICAgICAgICAgICAgIHMtPmh3LmNtb3NfZGF0YVtSVENfUkVHX0FdICY9IH5SVENfVUlQOwot ICAgICAgICAgICAgZGF0YSAmPSB+UlRDX1VJRTsKICAgICAgICAgfQogICAgICAgICBlbHNlCiAg ICAgICAgIHsKQEAgLTM1MCw3ICszNDksNyBAQAogICAgIH0KIAogICAgIC8qIHVwZGF0ZSBlbmRl ZCBpbnRlcnJ1cHQgKi8KLSAgICBpZiAoIHMtPmh3LmNtb3NfZGF0YVtSVENfUkVHX0JdICYgUlRD X1VJRSApCisgICAgaWYgKCAoIHMtPmh3LmNtb3NfZGF0YVtSVENfUkVHX0JdICYgUlRDX1VJRSAp ICYmICEocy0+aHcuY21vc19kYXRhW1JUQ19SRUdfQl0gJiBSVENfU0VUKSApCiAgICAgewogICAg ICAgICBzLT5ody5jbW9zX2RhdGFbUlRDX1JFR19DXSB8PSAweDkwOyAKICAgICAgICAgaHZtX2lz YV9pcnFfZGVhc3NlcnQoZCwgUlRDX0lSUSk7Cgo= ------=_Part_12447_13767984.1195236468698 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_Part_12447_13767984.1195236468698--