[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 15/35] hw/i386/xen/xen-hvm: Emit warning when old code is used
- To: paul@xxxxxxx, qemu-devel@xxxxxxxxxx
- From: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
- Date: Mon, 8 Jun 2020 19:37:33 +0200
- Autocrypt: addr=philmd@xxxxxxxxxx; keydata= mQINBDXML8YBEADXCtUkDBKQvNsQA7sDpw6YLE/1tKHwm24A1au9Hfy/OFmkpzo+MD+dYc+7 bvnqWAeGweq2SDq8zbzFZ1gJBd6+e5v1a/UrTxvwBk51yEkadrpRbi+r2bDpTJwXc/uEtYAB GvsTZMtiQVA4kRID1KCdgLa3zztPLCj5H1VZhqZsiGvXa/nMIlhvacRXdbgllPPJ72cLUkXf z1Zu4AkEKpccZaJspmLWGSzGu6UTZ7UfVeR2Hcc2KI9oZB1qthmZ1+PZyGZ/Dy+z+zklC0xl XIpQPmnfy9+/1hj1LzJ+pe3HzEodtlVA+rdttSvA6nmHKIt8Ul6b/h1DFTmUT1lN1WbAGxmg CH1O26cz5nTrzdjoqC/b8PpZiT0kO5MKKgiu5S4PRIxW2+RA4H9nq7nztNZ1Y39bDpzwE5Sp bDHzd5owmLxMLZAINtCtQuRbSOcMjZlg4zohA9TQP9krGIk+qTR+H4CV22sWldSkVtsoTaA2 qNeSJhfHQY0TyQvFbqRsSNIe2gTDzzEQ8itsmdHHE/yzhcCVvlUzXhAT6pIN0OT+cdsTTfif MIcDboys92auTuJ7U+4jWF1+WUaJ8gDL69ThAsu7mGDBbm80P3vvUZ4fQM14NkxOnuGRrJxO qjWNJ2ZUxgyHAh5TCxMLKWZoL5hpnvx3dF3Ti9HW2dsUUWICSQARAQABtDJQaGlsaXBwZSBN YXRoaWV1LURhdWTDqSAoUGhpbCkgPHBoaWxtZEByZWRoYXQuY29tPokCVQQTAQgAPwIbDwYL CQgHAwIGFQgCCQoLBBYCAwECHgECF4AWIQSJweePYB7obIZ0lcuio/1u3q3A3gUCXsfWwAUJ KtymWgAKCRCio/1u3q3A3ircD/9Vjh3aFNJ3uF3hddeoFg1H038wZr/xi8/rX27M1Vj2j9VH 0B8Olp4KUQw/hyO6kUxqkoojmzRpmzvlpZ0cUiZJo2bQIWnvScyHxFCv33kHe+YEIqoJlaQc JfKYlbCoubz+02E2A6bFD9+BvCY0LBbEj5POwyKGiDMjHKCGuzSuDRbCn0Mz4kCa7nFMF5Jv piC+JemRdiBd6102ThqgIsyGEBXuf1sy0QIVyXgaqr9O2b/0VoXpQId7yY7OJuYYxs7kQoXI 6WzSMpmuXGkmfxOgbc/L6YbzB0JOriX0iRClxu4dEUg8Bs2pNnr6huY2Ft+qb41RzCJvvMyu gS32LfN0bTZ6Qm2A8ayMtUQgnwZDSO23OKgQWZVglGliY3ezHZ6lVwC24Vjkmq/2yBSLakZE 6DZUjZzCW1nvtRK05ebyK6tofRsx8xB8pL/kcBb9nCuh70aLR+5cmE41X4O+MVJbwfP5s/RW 9BFSL3qgXuXso/3XuWTQjJJGgKhB6xXjMmb1J4q/h5IuVV4juv1Fem9sfmyrh+Wi5V1IzKI7 RPJ3KVb937eBgSENk53P0gUorwzUcO+ASEo3Z1cBKkJSPigDbeEjVfXQMzNt0oDRzpQqH2vp apo2jHnidWt8BsckuWZpxcZ9+/9obQ55DyVQHGiTN39hkETy3Emdnz1JVHTU0Q==
- Cc: 'Peter Maydell' <peter.maydell@xxxxxxxxxx>, 'Sagar Karandikar' <sagark@xxxxxxxxxxxxxxxxx>, "'Michael S. Tsirkin'" <mst@xxxxxxxxxx>, 'Mark Cave-Ayland' <mark.cave-ayland@xxxxxxxxxxxx>, 'Max Filippov' <jcmvbkbc@xxxxxxxxx>, 'Alistair Francis' <Alistair.Francis@xxxxxxx>, 'Gerd Hoffmann' <kraxel@xxxxxxxxxx>, "'Edgar E. Iglesias'" <edgar.iglesias@xxxxxxxxx>, 'Stefano Stabellini' <sstabellini@xxxxxxxxxx>, 'Magnus Damm' <magnus.damm@xxxxxxxxx>, 'Markus Armbruster' <armbru@xxxxxxxxxx>, 'Marcel Apfelbaum' <marcel.apfelbaum@xxxxxxxxx>, 'Anthony Perard' <anthony.perard@xxxxxxxxxx>, 'Marc-André Lureau' <marcandre.lureau@xxxxxxxxxx>, 'David Gibson' <david@xxxxxxxxxxxxxxxxxxxxx>, 'Andrzej Zaborowski' <balrogg@xxxxxxxxx>, 'Eduardo Habkost' <ehabkost@xxxxxxxxxx>, 'Alistair Francis' <alistair@xxxxxxxxxxxxx>, qemu-arm@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, qemu-riscv@xxxxxxxxxx, 'Stafford Horne' <shorne@xxxxxxxxx>, 'Palmer Dabbelt' <palmer@xxxxxxxxxxx>, 'Richard Henderson' <rth@xxxxxxxxxxx>, "'Daniel P . Berrange'" <berrange@xxxxxxxxxx>, 'Thomas Huth' <huth@xxxxxxxxxxxxx>, 'Bastian Koppelmann' <kbastian@xxxxxxxxxxxxxxxxxxxxx>, 'Michael Walle' <michael@xxxxxxxx>, qemu-ppc@xxxxxxxxxx, 'Paolo Bonzini' <pbonzini@xxxxxxxxxx>, 'Aurelien Jarno' <aurelien@xxxxxxxxxxx>
- Delivery-date: Mon, 08 Jun 2020 17:37:45 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 6/8/20 6:54 PM, Paul Durrant wrote:
>> -----Original Message-----
>> From: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
>>
>> This code hasn't been QOM'ified yet. Warn the user.
>
> "Based on today's IRC chat, this is a trivial RFC series
> to anotate pre-qdev/QOM devices so developers using them
> without knowing they are not QOM'ified yet can realize
> it and convert them if they have time."
>
> So, how should this be coded then? The XenIOState doesn't really qualify as a
> 'device', does it?
There is a pending question whether Machines are Devices or not.
Xen is a tricky case, it is created as a Q35 machine overloaded with Xen
features.
>> @@ -1401,6 +1401,8 @@ void xen_hvm_init(PCMachineState *pcms, MemoryRegion
>> **ram_memory)
>> xen_pfn_t ioreq_pfn;
>> XenIOState *state;
>>
>> + qdev_warn_deprecated_function_used();
>> +
>> state = g_malloc0(sizeof (XenIOState));
XenIOState is indeed not a device, it is allocated once, we won't gain
anything making it a QOM object... so this patch is incorrect.
Sorry for the noise :S
Regards,
Phil.
>>
>> state->xce_handle = xenevtchn_open(NULL, 0);
>> --
>> 2.21.3
>
>
|