qemu-e2k/tests
Alex Horn 02c6ccc6dd rtc: Only call rtc_set_cmos when Register B SET flag is disabled.
This bug occurs when the SET flag of Register B is enabled. When an RTC
data register (i.e. any of the ten time/calender CMOS bytes) is set, the
data is (as expected) correctly stored in the cmos_data array. However,
since the SET flag is enabled, the function rtc_set_time is not invoked.
As a result, the field base_rtc in RTCState remains uninitialized. This
causes a problem on subsequent writes which can end up overwriting data.
To see this, consider writing data to Register A after having written
data to any of the RTC data registers; the following figure illustrates
the call stack for the Register A write operation:

 +- cmos_io_port_write
 +-- check_update_timer
 +---- get_next_alarm
 +------ rtc_update_time

In rtc_update_time, get_guest_rtc calculates the wrong time and
overwrites the previously written RTC data register values.

Signed-off-by: Alex Horn <alex.horn@cs.ox.ac.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-11-27 11:04:33 -06:00
..
qemu-iotests tests: allow qemu-iotests to be run against nbd backend 2012-11-14 18:19:21 +01:00
tcg tests/tcg: new test for i386 FPREM and FPREM1 2012-11-10 13:49:05 +00:00
.gitignore Add .gitignore for tests/ 2012-04-20 13:23:27 +01:00
check-block.sh
check-qdict.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qfloat.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qint.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qjson.c check-qjson: add test for large JSON objects 2012-08-16 13:41:15 -05:00
check-qlist.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qstring.c test makefile overhaul 2012-03-30 08:14:11 -05:00
fdc-test.c fdc-tests: add tests for VERIFY command 2012-11-14 18:19:22 +01:00
hd-geo-test.c qtest: Test we don't put hard disk info into CMOS for a CD-ROM 2012-07-17 16:48:31 +02:00
libqtest.c qtest: implement QTEST_STOP 2012-10-05 08:02:20 -05:00
libqtest.h qtest: Add function to send QMP commands 2012-05-10 10:32:11 +02:00
m48t59-test.c qtest: add m48t59 tests for Sparc 2012-04-21 07:10:25 +00:00
Makefile tests: add thread pool unit tests 2012-11-26 09:37:51 -06:00
qemu-iotests-quick.sh
rtc-test.c rtc: Only call rtc_set_cmos when Register B SET flag is disabled. 2012-11-27 11:04:33 -06:00
test-aio.c tests: add AioContext unit tests 2012-11-26 09:37:51 -06:00
test-coroutine.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-iov.c rewrite iov_send_recv() and move it to iov.c 2012-06-11 23:12:11 +04:00
test-qmp-commands.c qapi: add test case for deallocating traversal of incomplete structure 2012-07-23 11:55:17 +01:00
test-qmp-input-strict.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-qmp-input-visitor.c qapi: fix error propagation 2012-07-23 11:55:17 +01:00
test-qmp-output-visitor.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-string-input-visitor.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-string-output-visitor.c qapi: String visitor, use %f representation for floats 2012-06-08 16:11:14 +02:00
test-thread-pool.c tests: make threadpool cancellation test looser 2012-11-27 08:50:52 -06:00
test-visitor-serialization.c qapi: Add String visitor coverage to serialization unit tests 2012-06-08 16:11:14 +02:00