|
From: | Paolo Bonzini |
Subject: | Re: [PATCH-for-6.2 2/2] hw/display: Do not allow multiple identical VGA devices |
Date: | Fri, 19 Nov 2021 10:20:20 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
On 11/18/21 20:20, Philippe Mathieu-Daudé wrote:
+ if (obj) { + const char *typename = object_get_typename(obj); + + /* + * make sure this device is not being added twice, + * if so exit without crashing qemu + */ + if (object_resolve_path_type("", typename, NULL)) { + error_setg(errp, "at most one %s device is permitted", typename); + return false; + } + } +
Wouldn't it give the same error with one ISA and one PCI VGA? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |