|
From: | Mark Cave-Ayland |
Subject: | Re: [Qemu-devel] [PATCH 2/2] fw_cfg: set the get_boot_devices_list() ignore_suffixes parameter from machine property |
Date: | Wed, 8 Aug 2018 20:11:33 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 07/08/18 20:45, Eduardo Habkost wrote:
Is this sufficient, or are the compat properties supposed to be versioned according to the QEMU machine version?I never saw compat_properties being used for non-versioned machines, but it should work for this use case as well. But, I'm not sure this is the best option. If the machine type is not versioned, you can simply manually set the device property to the desired value when creating the device inside your machine init function. See how the "data_width" and "dma_enabled" properties are set by existing machines, for an example.
After some more digging, I can see that you are right and that we can actually get away with a standard qdev property for the fw_cfg device rather than a machine property after all - it's just that I need to convert both machines away from using the old fw_cfg_init() functions first. I'll send over what I have shortly.
ATB, Mark.
[Prev in Thread] | Current Thread | [Next in Thread] |