On 28/02/2024 17.43, Zhao Liu wrote:
Hi Philippe,

+/*
+ * Real ICH9 contains a single SMI output line and doesn't broadcast CPUs.
+ * Virtualized ICH9 allows broadcasting upon negatiation with guest, see
+ * commit 5ce45c7a2b.
+ */
+enum {
+    ICH9_VIRT_SMI_BROADCAST,
+    ICH9_VIRT_SMI_CURRENT,
+#define ICH9_VIRT_SMI_COUNT 2
+};
+

Just quick look here. Shouldn't ICH9_VIRT_SMI_COUNT be defined outside of
enum {}?

Or even better, do it without a #define:

enum {
    ICH9_VIRT_SMI_BROADCAST,
    ICH9_VIRT_SMI_CURRENT,
    ICH9_VIRT_SMI_COUNT
};

 Thomas


Reply via email to