Lines Matching +full:check +full:- +full:patch
9 * See the COPYING file in the top-level directory.
17 #include "hw/acpi/aml-build.h"
20 #include "hw/qdev-properties.h"
21 #include "hw/qdev-properties-system.h"
34 /* Fill in the GUID values. These need to be converted to little-endian in vmgenid_build_acpi()
37 g_array_set_size(guid, VMGENID_FW_CFG_SIZE - ARRAY_SIZE(guid_le.data)); in vmgenid_build_acpi()
38 guid_le = qemu_uuid_bswap(vms->guid); in vmgenid_build_acpi()
51 vgia_offset = table_data->len + in vmgenid_build_acpi()
52 build_append_named_dword(ssdt->buf, "VGIA"); in vmgenid_build_acpi()
59 /* Simple status method to check that address is linked and non-zero */ in vmgenid_build_acpi()
69 /* the ADDR method returns two 32-bit words representing the lower and in vmgenid_build_acpi()
93 g_array_append_vals(table_data, ssdt->buf->data, ssdt->buf->len); in vmgenid_build_acpi()
99 /* Patch address of GUID fw_cfg blob into the ADDR fw_cfg blob in vmgenid_build_acpi()
110 /* Patch address of GUID fw_cfg blob into the AML so OSPM can retrieve in vmgenid_build_acpi()
112 * the least-signficant 32 get patched into AML. in vmgenid_build_acpi()
125 /* Create a read-only fw_cfg file for GUID */ in vmgenid_add_fw_cfg()
126 fw_cfg_add_file(s, VMGENID_GUID_FW_CFG_FILE, guid->data, in vmgenid_add_fw_cfg()
128 /* Create a read-write fw_cfg file for Address */ in vmgenid_add_fw_cfg()
130 vms->vmgenid_addr_le, in vmgenid_add_fw_cfg()
131 ARRAY_SIZE(vms->vmgenid_addr_le), false); in vmgenid_add_fw_cfg()
142 memcpy(&vmgenid_addr, vms->vmgenid_addr_le, sizeof(vmgenid_addr)); in vmgenid_update_guest()
148 /* QemuUUID has the first three words as big-endian, and expect in vmgenid_update_guest()
150 * however, will expect the fields to be little-endian. in vmgenid_update_guest()
153 guid_le = qemu_uuid_bswap(vms->guid); in vmgenid_update_guest()
190 /* Clear the guest-allocated GUID address when the VM resets */ in vmgenid_handle_reset()
191 memset(vms->vmgenid_addr_le, 0, ARRAY_SIZE(vms->vmgenid_addr_le)); in vmgenid_handle_reset()
205 * device. Check if there are several. in vmgenid_realize()
225 dc->vmsd = &vmstate_vmgenid; in vmgenid_device_class_init()
226 dc->realize = vmgenid_realize; in vmgenid_device_class_init()
228 dc->hotpluggable = false; in vmgenid_device_class_init()
229 set_bit(DEVICE_CATEGORY_MISC, dc->categories); in vmgenid_device_class_init()