Move common option rom code to header file
We will have a linux boot option rom soon, so let's take all functionalitythat might be useful for both to a header file that both roms can include.
That way we only have to write fw_cfg access code once.
Signed-off-by: Alexander Graf <agraf@suse.de>...
Convert multiboot to fw_cfg backed data storage
Right now we load the guest kernel to RAM, fire off the BIOS, hope itdoesn't clobber memory and run an option rom that jumps into the kernel.
That breaks with SeaBIOS, as that clears memory. So let's read all...
Introduce rom_copy
We have several rom helpers currently, but none of them can get uscode that spans several roms into a pointer.
This patch introduces a function that copies over rom contents.
Signed-off-by: Alexander Graf <agraf@suse.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
fw_cfg: change cur_offset to 32 bits
Signed-off-by: Juan Quintela <quintela@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Provide marshalling mechanism for json
This introduces qobject_to_json which will convert a QObject to a JSON stringrepresentation.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Add test suite for json marshalling
By reusing the qjson test suite. After checking that we can demarshal, marshalagain and compared to the expected decoded value. This doesn't work so wellfor floats because they cannot be accurately represented in decimal but we...
Update SeaBIOS to latest
Add a QObject JSON wrapper
This provides a QObject interface for creating QObjects from a JSON expression.
Add a unit test for JSON support
QDict: Introduce qdict_iter()
This adds iterator support to QDict, it will be used by the(to be introduced) QError module.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
View all revisions | View revisions
Also available in: Atom