<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/include/hw/ide, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/include/hw/ide?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/include/hw/ide?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-10-31T10:32:07+00:00</updated>
<entry>
<title>hw/ide/piix: Introduce TYPE_ macros for PIIX IDE controllers</title>
<updated>2022-10-31T10:32:07+00:00</updated>
<author>
<name>Bernhard Beschow</name>
</author>
<published>2022-10-22T15:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bb2e9b1d660a4bf11c169388b577c851c51ffe24'/>
<id>urn:sha1:bb2e9b1d660a4bf11c169388b577c851c51ffe24</id>
<content type='text'>
Suggested-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Signed-off-by: Bernhard Beschow &lt;shentey@gmail.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-Id: &lt;20221022150508.26830-9-shentey@gmail.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/ide/core.c: Implement ATA INITIALIZE_DEVICE_PARAMETERS command</title>
<updated>2022-09-30T16:43:44+00:00</updated>
<author>
<name>Lev Kujawski</name>
</author>
<published>2022-07-07T03:11:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=176e4961bb33d559da1af441fb0ee2e0cb8245ae'/>
<id>urn:sha1:176e4961bb33d559da1af441fb0ee2e0cb8245ae</id>
<content type='text'>
CHS-based disk utilities and operating systems may adjust the logical
geometry of a hard drive to cope with the expectations or limitations
of software using the ATA INITIALIZE_DEVICE_PARAMETERS command.

Prior to this patch, INITIALIZE_DEVICE_PARAMETERS was a nop that
always returned success, raising the possibility of data loss or
corruption if the CHS&lt;-&gt;LBA translation redirected a write to the
wrong sector.

* hw/ide/core.c
ide_reset():
  Reset the logical CHS geometry of the hard disk when the power-on
  defaults feature is enabled.
cmd_specify():
  a) New function implementing INITIALIZE_DEVICE_PARAMETERS.
  b) Ignore calls for empty or ATAPI devices.
cmd_set_features():
  Implement the power-on defaults enable and disable features.
struct ide_cmd_table:
  Switch WIN_SPECIFY from cmd_nop() to cmd_specify().
ide_init_drive():
  Set new fields 'drive_heads' and 'drive_sectors' based upon the
  actual disk geometry.

* include/hw/ide/internal.h
struct IDEState:
a) Store the actual drive CHS values within the new fields
   'drive_heads' and 'drive_sectors.'
b) Track whether a soft IDE reset should also reset the logical CHS
   geometry of the hard disk within the new field 'reset_reverts'.

Signed-off-by: Lev Kujawski &lt;lkujaw@member.fsf.org&gt;
Message-Id: &lt;20220707031140.158958-7-lkujaw@member.fsf.org&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>ide: Rename ide_bus_new() to ide_bus_init()</title>
<updated>2021-09-30T12:44:13+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2021-09-23T12:11:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=82c74ac42e1b9e564a3c011dca6215d130b7e6a0'/>
<id>urn:sha1:82c74ac42e1b9e564a3c011dca6215d130b7e6a0</id>
<content type='text'>
The function ide_bus_new() does an in-place initialization.  Rename
it to ide_bus_init() to follow our _init vs _new convention.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Corey Minyard &lt;cminyard@mvista.com&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Acked-by: John Snow &lt;jsnow@redhat.com&gt; (Feel free to merge.)
Message-id: 20210923121153.23754-7-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>hw/ide: Fix crash when plugging a piix3-ide device into the x-remote machine</title>
<updated>2021-07-19T08:08:45+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2021-04-16T12:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9405d87be25db6dff4d7b5ab48a81bbf6d083e47'/>
<id>urn:sha1:9405d87be25db6dff4d7b5ab48a81bbf6d083e47</id>
<content type='text'>
QEMU currently crashes when the user tries to do something like:

 qemu-system-x86_64 -M x-remote -device piix3-ide

This happens because the "isabus" variable is not initialized with
the x-remote machine yet. Add a proper check for this condition
and propagate the error to the caller, so we can fail there gracefully.

Message-Id: &lt;20210416125256.2039734-1-thuth@redhat.com&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>nomaintainer: Fix Lesser GPL version number</title>
<updated>2020-11-15T16:04:40+00:00</updated>
<author>
<name>Chetan Pant</name>
</author>
<published>2020-10-23T12:44:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=61f3c91a67c4695dee6904d841b393ea21003969'/>
<id>urn:sha1:61f3c91a67c4695dee6904d841b393ea21003969</id>
<content type='text'>
There is no "version 2" of the "Lesser" General Public License.
It is either "GPL version 2.0" or "Lesser GPL version 2.1".
This patch replaces all occurrences of "Lesser GPL version 2" with
"Lesser GPL version 2.1" in comment section.

This patch contains all the files, whose maintainer I could not get
from ‘get_maintainer.pl’ script.

Signed-off-by: Chetan Pant &lt;chetan4windows@gmail.com&gt;
Message-Id: &lt;20201023124424.20177-1-chetan4windows@gmail.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
[thuth: Adapted exec.c and qdev-monitor.c to new location]
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>ide: remove magic constants from the device register</title>
<updated>2020-10-01T17:04:16+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2020-07-24T05:22:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0c7515e1c47372ae5d53f2e281b2ccd425ebbcc6'/>
<id>urn:sha1:0c7515e1c47372ae5d53f2e281b2ccd425ebbcc6</id>
<content type='text'>
(In QEMU, we call this the "select" register.)

My memory isn't good enough to memorize what these magic runes
do. Label them to prevent mixups from happening in the future.

Side note: I assume it's safe to always set 0xA0 even though ATA2 claims
these bits are reserved, because ATA3 immediately reinstated that these
bits should be always on. ATA4 and subsequent specs only claim that the
fields are obsolete, so I assume it's safe to leave these set and that
it should work with the widest array of guests.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>ide: model HOB correctly</title>
<updated>2020-10-01T17:04:16+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2020-07-24T05:22:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=be8c9423dec7bd0a0af7f57ecbbcb2718db72555'/>
<id>urn:sha1:be8c9423dec7bd0a0af7f57ecbbcb2718db72555</id>
<content type='text'>
I have been staring at this FIXME for years and I never knew what it
meant. I finally stumbled across it!

When writing to the command registers, the old value is shifted into a
HOB copy of the register and the new value is written into the primary
register. When reading registers, the value retrieved is dependent on
the HOB bit in the CONTROL register.

By setting bit 7 (0x80) in CONTROL, any register read will, if it has
one, yield the HOB value for that register instead.

Our code has a problem: We were using bit 7 of the DEVICE register to
model this. We use bus-&gt;cmd roughly as the control register already, as
it stores the value from ide_ctrl_write.

Lastly, all command register writes reset the HOB, so fix that, too.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>ide: rename cmd_write to ctrl_write</title>
<updated>2020-10-01T17:04:16+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2020-07-24T05:22:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=98d98912238d9f4f4c41bda0a3d944d0cff934ce'/>
<id>urn:sha1:98d98912238d9f4f4c41bda0a3d944d0cff934ce</id>
<content type='text'>
It's the Control register, part of the Control block -- Command is
misleading here. Rename all related functions and constants.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>Use OBJECT_DECLARE_SIMPLE_TYPE when possible</title>
<updated>2020-09-18T18:12:32+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2020-09-16T18:25:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8063396bf3459a810d24e3efd6110b8480f0de5b'/>
<id>urn:sha1:8063396bf3459a810d24e3efd6110b8480f0de5b</id>
<content type='text'>
This converts existing DECLARE_INSTANCE_CHECKER usage to
OBJECT_DECLARE_SIMPLE_TYPE when possible.

$ ./scripts/codeconverter/converter.py -i \
  --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]')

Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Acked-by: Paul Durrant &lt;paul@xen.org&gt;
Message-Id: &lt;20200916182519.415636-6-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>Use OBJECT_DECLARE_TYPE when possible</title>
<updated>2020-09-18T18:12:32+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2020-09-16T18:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a489d1951cd9cc91c5954214fcf6ae0f9d2d4292'/>
<id>urn:sha1:a489d1951cd9cc91c5954214fcf6ae0f9d2d4292</id>
<content type='text'>
This converts existing DECLARE_OBJ_CHECKERS usage to
OBJECT_DECLARE_TYPE when possible.

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=AddObjectDeclareType $(git grep -l '' -- '*.[ch]')

Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Reviewed-by: Cédric Le Goater &lt;clg@kaod.org&gt;
Acked-by: Paul Durrant &lt;paul@xen.org&gt;
Message-Id: &lt;20200916182519.415636-5-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
</feed>
