Displaying 4 results from an estimated 4 matches for "rtc_reg_b".
2013 Jan 23
10
[PATCH 0/6] x86/HVM: miscellaneous RTC emulation adjustments
...my testing - don''t expose the reported
lockup; the 7th will need debugging to understand what''s wrong
there.
1: use RTC_* names instead of literal numbers
2: consolidate toggling of RTC IRQ
3: adjust rtc_timer_update()
4: fix RTC hour conversions
5: used cached original value in RTC_REG_B writing code
6: generalize IRQ raising on RTC_REG_B writes
Signed-off-by: Jan Beulich <jbeulich@suse.com>
2012 Aug 07
6
Big Bug:Time in VM running on xen goes slower
Dear all:
I have found a big bug on xen concerning time virtualization. Please let me show you the whole process:
1 Phenomenon
when I run a JVM based program in IE browser in my Virtual Machine, I have found clearly that time at the right bottom corner in my VM gets more slower and slower.
I studied the bug deeply, and found something below.
2 Xen
vmx_vmexit_handler --> ......... -->
2012 Feb 08
28
[PATCH v3 0/6] initial suspend support
This patch series makes suspend support in qemu alot more useful. Right
now the guest can put itself into s3, but qemu will wakeup the guest
instantly. With this patch series applied the guest will stay suspended
instead and there are a few events which can kick the guest out of
suspend state: A monitor command, ps/2 input, serial input, rtc. Not
much yet, but it''s a start with the
2012 Mar 05
6
[PATCH 3/5] RTC: Add UIP(update in progress) check logic
...f((x), struct domain, \
@@ -239,6 +241,22 @@ static void rtc_copy_date(RTCState *s)
s->hw.cmos_data[RTC_YEAR] = to_bcd(s, tm->tm_year % 100);
}
+static int update_in_progress(RTCState *s)
+{
+ uint64_t guest_usec;
+ struct domain *d = vrtc_domain(s);
+
+ if (s->hw.cmos_data[RTC_REG_B] & RTC_SET)
+ return 0;
+
+ guest_usec = get_localtime_us(d);
+ /* UIP bit will be set at last 244us of every second. */
+ if ((guest_usec % USEC_PER_SEC) >= (USEC_PER_SEC - 244))
+ return 1;
+
+ return 0;
+}
+
static uint32_t rtc_ioport_read(RTCState *s, uint32_t...