[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callba
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback |
Date: |
Tue, 03 Dec 2013 10:11:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Alexey Kardashevskiy <address@hidden> writes:
> On 11/26/2013 03:55 PM, Alexey Kardashevskiy wrote:
>> Hi!
>>
>> btw there is a problem with this patch - it does not compile for
>> "linux-user" as there is no current-machine global variable defined in vl.c
>> which is not compiled for linux-user.
>>
>> How to solve this problem correctly?
[...]
> Anyone, please?
>
> The only easy fix for this I can think of would be this:
>
> extern QEMUMachine *current_machine __attribute__((weak));
>
>
> But I suspect this is disgusting? :)
Absolutely not. It's merely not portable to machines with object file
formats and linkers stuck in the 80s. However, we routinely twist
ourselves into knots for portability (observation, not endorsement), and
at least one previous attempt[*] to introduce weak symbols got nowhere.
[*] https://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg03853.html
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Alexey Kardashevskiy, 2013/12/02
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Paolo Bonzini, 2013/12/03
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Andreas Färber, 2013/12/03
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Paolo Bonzini, 2013/12/03
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Andreas Färber, 2013/12/03
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Paolo Bonzini, 2013/12/03
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Alexey Kardashevskiy, 2013/12/11
- Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback, Paolo Bonzini, 2013/12/11