Re: [PATCH 06/12] rust: qom: move device_id to PL011 class side

2024-12-25 Thread Zhao Liu
On Fri, Dec 20, 2024 at 03:29:48PM +0100, Paolo Bonzini wrote: > Date: Fri, 20 Dec 2024 15:29:48 +0100 > From: Paolo Bonzini > Subject: [PATCH 06/12] rust: qom: move device_id to PL011 class side > X-Mailer: git-send-email 2.47.1 > > There is no need to monkeypatch DeviceId:

[PATCH 06/12] rust: qom: move device_id to PL011 class side

2024-12-20 Thread Paolo Bonzini
There is no need to monkeypatch DeviceId::Luminary into the already-initialized PL011State. Instead, now that we can define a class hierarchy, we can define PL011Class and make device_id a field in there. There is also no need anymore to have "Arm" as zero, so change DeviceId into a wrapper for t