mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
xen-hvm: Clean up xen_hvm_init() error handling
xen_hvm_init() returns -1 without cleaning up on some errors (harmless long as the caller exit()s on error), dies with hw_error() on others. hw_error() isn't approprate here. Clean up to exit() on all errors. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
parent
ac0487e1d2
commit
dced4d2fcb
5 changed files with 38 additions and 38 deletions
|
@ -47,9 +47,8 @@ void xen_modified_memory(ram_addr_t start, ram_addr_t length)
|
|||
{
|
||||
}
|
||||
|
||||
int xen_hvm_init(PCMachineState *pcms, MemoryRegion **ram_memory)
|
||||
void xen_hvm_init(PCMachineState *pcms, MemoryRegion **ram_memory)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void qmp_xen_set_global_dirty_log(bool enable, Error **errp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue