]> git.proxmox.com Git - mirror_qemu.git/commit
fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy
authorPavel Hrdina <phrdina@redhat.com>
Thu, 24 May 2012 09:02:30 +0000 (11:02 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 May 2012 16:23:47 +0000 (18:23 +0200)
commit7cd331617a48785faaf2aafe36db5c06285bfed8
tree4481e826f89b0e0c4fbf11d28902fbb999d157e7
parentcfb08fbafcd946341bdf14103293887763802697
fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy

As default a guest has always one floppy drive so 0x10 byte in CMOS
has to have 0x40 value. Higher 4 bits means that the first floppy drive
is 1.44 Mb 3"5 drive and lower 4 bits means the second drive is not present.

After the guest starts DSKCHG bit in DIR register should be set. If there
is no media in drive, this bit should be set all the time.

Because we start the guest without media in drive, we have to swap
'eject' and 'change' in 'test_media_change'.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/fdc-test.c