[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 09/28] kvm/i8259.c: introduce TYPE_KVM_I8259 device
- To: pbonzini@xxxxxxxxxx, richard.henderson@xxxxxxxxxx, mst@xxxxxxxxxx, sstabellini@xxxxxxxxxx, anthony@xxxxxxxxxxxxxx, edgar.iglesias@xxxxxxxxx, qemu-devel@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Mark Cave-Ayland <mark.caveayland@xxxxxxxxxxx>
- Date: Mon, 19 Oct 2026 13:04:41 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ScSUOPYT2VXd+Q6cH3/bep7d5eWaNHxgYFZkUb/8ZEU=; b=hoya9K247r3pUTkN+x0wOwgBRPQA6qRlOzxpA7SB/4TnO2MouETRvv7Shm5XaHaIKTWZ+8z1bRLnfvfAmf8gYUONEHemGP+fiDYfkMufiYcWoQIpNez3C2BGaCqXy3Yhh4U7wjjTBeO3EbZSqs9praGW07CJJC55niyUBro4LUqRkZM983wVwLOa5xx9ep0Wtyeg2WnQVMPhxvojEmV00BquAbBj6Jk7giYfknn6ux1rsGYta6XHmnBvdCesGSYoWQywTmk6Bcwz+G+7VNAUfT9Pr1JxospL30vrHVM0XrM734N0fHOJNLy8Sullj3LSg8u5VCeUbU4MwePc/1WpXQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qlpz/UFe+RdS0FR6oJmhnRPpDF16mf8F3dwCcMJ6jL0VMY+HrW9zfKDJsDQiKn3zSDCCP5QLEsClQ/t1wgh5gu2EANi0RMjvhkdp6wFdRBNsPA647n3ySki23jHnYEbY0kaTNXiZsN+bSl9iOy8F1Fn/YxUiut0PCq/sGKbpJWjPeBoc6nh1Q7skH5Dn+UnuEOHVcCAF32wTe80FJ0u5tIzzA3EOsLfk12kPsldDSI+H606XIZxWcGokNevOhoSBQSlmNS21X22rybn5Faw2IkkE2gFgGW7puSQnmlh0Ye2hod/0h+rhYFZ8haXk1tInAIIr89p0+6iHZsx0nQ/M7A==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=proofpoint20171006 header.d=nutanix.com header.i="@nutanix.com" header.h="Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=selector1 header.d=nutanix.com header.i="@nutanix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nutanix.com;
- Delivery-date: Mon, 19 Oct 2026 12:05:58 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
This device represents a single KVM 8259 PIC and its associated class and
ensures that we can safely embed the device within a container device.
Signed-off-by: Mark Cave-Ayland <mark.caveayland@xxxxxxxxxxx>
Reviewed-by: Peter Maydell <peter.maydell@xxxxxxxxxx>
---
hw/i386/kvm/i8259.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/hw/i386/kvm/i8259.c b/hw/i386/kvm/i8259.c
index 85176dcf80..8ae5dd39b5 100644
--- a/hw/i386/kvm/i8259.c
+++ b/hw/i386/kvm/i8259.c
@@ -20,9 +20,11 @@
#include "qom/object.h"
#define TYPE_KVM_I8259 "kvm-i8259"
-typedef struct KVMI8259Class KVMI8259Class;
-DECLARE_CLASS_CHECKERS(KVMI8259Class, KVM_I8259,
- TYPE_KVM_I8259)
+OBJECT_DECLARE_TYPE(KVMI8259State, KVMI8259Class, KVM_I8259)
+
+struct KVMI8259State {
+ I8259CommonState parent_obj;
+};
/**
* KVMI8259Class:
@@ -154,7 +156,7 @@ static void kvm_i8259_class_init(ObjectClass *klass, const
void *data)
static const TypeInfo kvm_i8259_info = {
.name = TYPE_KVM_I8259,
.parent = TYPE_I8259_COMMON,
- .instance_size = sizeof(I8259CommonState),
+ .instance_size = sizeof(KVMI8259State),
.class_init = kvm_i8259_class_init,
.class_size = sizeof(KVMI8259Class),
};
--
2.43.0
|