mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:50:54 +07:00
staging: unisys: refactor SPAR_CONTROLVM_CHANNEL_PROTOCOL
Get rid of the typedef for SPAR_CONTROLVM_CHANNEL_PROTOCOL and replace it with struct spar_controlvm_channel_protocol. Fix CamelCase members of the structure and update all references to changed names. Header => header gpControlVm => gp_control_vm gpPartitionTables => gp_partition_tables gpDiagGuest => gp_diag_guest gpBootRomDisk => gp_boot_romdisk gpBootRamDisk => gp_boot_ramdisk gpAcpiTable => gp_acpi_table gpControlChannel => gp_control_channel gpdiagRomDisk => gp_diag_romdisk gpNvram => gp_nvram RequestPayloadOffset => request_payload_offset EventPayloadOffset => event_payload_offset RequestPayloadBytes => request_payload_bytes EventPayloadBytes => event_payload_bytes ControlChannelBytes => control_channel_bytes NvramChannelBytes => nvram_channel_bytes MessageBytes => message_bytes MessageCount => message_count gpSmbiosTable => gp_smbios_table gpPhysicalSmbiosTable => gp_physical_smbios_table gpobsoleteGuestDevices => gp_obsolete_guest_devices VirtualGuestFirmwareImageBase => virtual_guest_firmware_image_base VirtualGuestFirmwareEntryPoint => virtual_guest_firmware_entry_point VirtualGuestFirmwareImageSize => virtual_guest_firmware_image_size VirtualGuestFirmwareBootBase => virtual_guest_firmware_boot_base VirtualGuestImageBase => virtual_guest_image_base VirtualGuestImageSize => virtual_guest_image_size PrototypeControlChannelOffset => prototype_control_channel_offset VirtualGuestPartitionHandle => virtual_guest_partition_handle RestoreAction => restore_action DumpAction => dump_action NvramFailCount => nvram_fail_count SavedCrashMsgCount => saved_crash_message_count SavedCrashMsgOffset => saved_crash_message_offset InstallationError => installation_error InstallationTextId => installation_text_id InstallationRemainingSteps => installation_remaining_steps ToolAction => tool_action Reserved => reserved EfiSparIndication => efi_spar_ind EfiSparIndicationSupported => efi_spar_ind_supported SPReserved => sp_reserved Reserved2 => reserved2 RequestQueue => request_queue ResponseQueue => response_queue EventQueue => event_queue EventAckQueue => event_ack_queue RequestMsg => request_msg ResponseMsg => response_msg EventMsg => event_msg EventAckMsg => event_ack_msg SavedCrashMsg => saved_crash_msg Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6f5a5b7b50
commit
d19642f656
@ -49,7 +49,7 @@ static const uuid_le spar_controlvm_channel_protocol_uuid =
|
||||
spar_check_channel_client(ch, \
|
||||
spar_controlvm_channel_protocol_uuid, \
|
||||
"controlvm", \
|
||||
sizeof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL), \
|
||||
sizeof(struct spar_controlvm_channel_protocol), \
|
||||
ULTRA_CONTROLVM_CHANNEL_PROTOCOL_VERSIONID, \
|
||||
ULTRA_CONTROLVM_CHANNEL_PROTOCOL_SIGNATURE)
|
||||
|
||||
@ -360,127 +360,127 @@ struct guest_devices {
|
||||
u32 pad;
|
||||
};
|
||||
|
||||
typedef struct _ULTRA_CONTROLVM_CHANNEL_PROTOCOL {
|
||||
struct channel_header Header;
|
||||
GUEST_PHYSICAL_ADDRESS gpControlVm; /* guest physical address of
|
||||
struct spar_controlvm_channel_protocol {
|
||||
struct channel_header header;
|
||||
GUEST_PHYSICAL_ADDRESS gp_controlvm; /* guest physical address of
|
||||
* this channel */
|
||||
GUEST_PHYSICAL_ADDRESS gpPartitionTables; /* guest physical address of
|
||||
GUEST_PHYSICAL_ADDRESS gp_partition_tables;/* guest physical address of
|
||||
* partition tables */
|
||||
GUEST_PHYSICAL_ADDRESS gpDiagGuest; /* guest physical address of
|
||||
GUEST_PHYSICAL_ADDRESS gp_diag_guest; /* guest physical address of
|
||||
* diagnostic channel */
|
||||
GUEST_PHYSICAL_ADDRESS gpBootRomDisk; /* guest phys addr of (read
|
||||
GUEST_PHYSICAL_ADDRESS gp_boot_romdisk;/* guest phys addr of (read
|
||||
* only) Boot ROM disk */
|
||||
GUEST_PHYSICAL_ADDRESS gpBootRamDisk; /* guest phys addr of writable
|
||||
GUEST_PHYSICAL_ADDRESS gp_boot_ramdisk;/* guest phys addr of writable
|
||||
* Boot RAM disk */
|
||||
GUEST_PHYSICAL_ADDRESS gpAcpiTable; /* guest phys addr of acpi
|
||||
GUEST_PHYSICAL_ADDRESS gp_acpi_table; /* guest phys addr of acpi
|
||||
* table */
|
||||
GUEST_PHYSICAL_ADDRESS gpControlChannel; /* guest phys addr of control
|
||||
GUEST_PHYSICAL_ADDRESS gp_control_channel;/* guest phys addr of control
|
||||
* channel */
|
||||
GUEST_PHYSICAL_ADDRESS gpDiagRomDisk; /* guest phys addr of diagnostic
|
||||
GUEST_PHYSICAL_ADDRESS gp_diag_romdisk;/* guest phys addr of diagnostic
|
||||
* ROM disk */
|
||||
GUEST_PHYSICAL_ADDRESS gpNvram; /* guest phys addr of NVRAM
|
||||
GUEST_PHYSICAL_ADDRESS gp_nvram; /* guest phys addr of NVRAM
|
||||
* channel */
|
||||
u64 RequestPayloadOffset; /* Offset to request payload area */
|
||||
u64 EventPayloadOffset; /* Offset to event payload area */
|
||||
u32 RequestPayloadBytes; /* Bytes available in request payload
|
||||
u64 request_payload_offset; /* Offset to request payload area */
|
||||
u64 event_payload_offset; /* Offset to event payload area */
|
||||
u32 request_payload_bytes; /* Bytes available in request payload
|
||||
* area */
|
||||
u32 EventPayloadBytes; /* Bytes available in event payload area */
|
||||
u32 ControlChannelBytes;
|
||||
u32 NvramChannelBytes; /* Bytes in PartitionNvram segment */
|
||||
u32 MessageBytes; /* sizeof(CONTROLVM_MESSAGE) */
|
||||
u32 MessageCount; /* CONTROLVM_MESSAGE_MAX */
|
||||
GUEST_PHYSICAL_ADDRESS gpSmbiosTable; /* guest phys addr of SMBIOS
|
||||
u32 event_payload_bytes;/* Bytes available in event payload area */
|
||||
u32 control_channel_bytes;
|
||||
u32 nvram_channel_bytes; /* Bytes in PartitionNvram segment */
|
||||
u32 message_bytes; /* sizeof(CONTROLVM_MESSAGE) */
|
||||
u32 message_count; /* CONTROLVM_MESSAGE_MAX */
|
||||
GUEST_PHYSICAL_ADDRESS gp_smbios_table;/* guest phys addr of SMBIOS
|
||||
* tables */
|
||||
GUEST_PHYSICAL_ADDRESS gpPhysicalSmbiosTable; /* guest phys addr of
|
||||
GUEST_PHYSICAL_ADDRESS gp_physical_smbios_table;/* guest phys addr of
|
||||
* SMBIOS table */
|
||||
/* ULTRA_MAX_GUESTS_PER_SERVICE */
|
||||
struct guest_devices gpObsoleteGuestDevices[16];
|
||||
struct guest_devices gp_obsolete_guest_devices[16];
|
||||
|
||||
/* guest physical address of EFI firmware image base */
|
||||
GUEST_PHYSICAL_ADDRESS VirtualGuestFirmwareImageBase;
|
||||
GUEST_PHYSICAL_ADDRESS virtual_guest_firmware_image_base;
|
||||
|
||||
/* guest physical address of EFI firmware entry point */
|
||||
GUEST_PHYSICAL_ADDRESS VirtualGuestFirmwareEntryPoint;
|
||||
GUEST_PHYSICAL_ADDRESS virtual_guest_firmware_entry_point;
|
||||
|
||||
/* guest EFI firmware image size */
|
||||
u64 VirtualGuestFirmwareImageSize;
|
||||
u64 virtual_guest_firmware_image_size;
|
||||
|
||||
/* GPA = 1MB where EFI firmware image is copied to */
|
||||
GUEST_PHYSICAL_ADDRESS VirtualGuestFirmwareBootBase;
|
||||
GUEST_PHYSICAL_ADDRESS VirtualGuestImageBase;
|
||||
GUEST_PHYSICAL_ADDRESS VirtualGuestImageSize;
|
||||
u64 PrototypeControlChannelOffset;
|
||||
GUEST_PHYSICAL_ADDRESS VirtualGuestPartitionHandle;
|
||||
GUEST_PHYSICAL_ADDRESS virtual_guest_firmware_boot_base;
|
||||
GUEST_PHYSICAL_ADDRESS virtual_guest_image_base;
|
||||
GUEST_PHYSICAL_ADDRESS virtual_guest_image_size;
|
||||
u64 prototype_control_channel_offset;
|
||||
GUEST_PHYSICAL_ADDRESS virtual_guest_partition_handle;
|
||||
|
||||
u16 RestoreAction; /* Restore Action field to restore the guest
|
||||
u16 restore_action; /* Restore Action field to restore the guest
|
||||
* partition */
|
||||
u16 DumpAction; /* For Windows guests it shows if the visordisk
|
||||
u16 dump_action; /* For Windows guests it shows if the visordisk
|
||||
* is running in dump mode */
|
||||
u16 NvramFailCount;
|
||||
u16 SavedCrashMsgCount; /* = CONTROLVM_CRASHMSG_MAX */
|
||||
u32 SavedCrashMsgOffset; /* Offset to request payload area needed
|
||||
u16 nvram_fail_count;
|
||||
u16 saved_crash_message_count; /* = CONTROLVM_CRASHMSG_MAX */
|
||||
u32 saved_crash_message_offset; /* Offset to request payload area needed
|
||||
* for crash dump */
|
||||
u32 InstallationError; /* Type of error encountered during
|
||||
u32 installation_error; /* Type of error encountered during
|
||||
* installation */
|
||||
u32 InstallationTextId; /* Id of string to display */
|
||||
u16 InstallationRemainingSteps; /* Number of remaining installation
|
||||
u32 installation_text_id; /* Id of string to display */
|
||||
u16 installation_remaining_steps;/* Number of remaining installation
|
||||
* steps (for progress bars) */
|
||||
u8 ToolAction; /* ULTRA_TOOL_ACTIONS Installation Action
|
||||
u8 tool_action; /* ULTRA_TOOL_ACTIONS Installation Action
|
||||
* field */
|
||||
u8 Reserved; /* alignment */
|
||||
struct efi_spar_indication EfiSparIndication;
|
||||
struct efi_spar_indication EfiSparIndicationSupported;
|
||||
u32 SPReserved;
|
||||
u8 Reserved2[28]; /* Force signals to begin on 128-byte cache
|
||||
u8 reserved; /* alignment */
|
||||
struct efi_spar_indication efi_spar_ind;
|
||||
struct efi_spar_indication efi_spar_ind_supported;
|
||||
u32 sp_reserved;
|
||||
u8 reserved2[28]; /* Force signals to begin on 128-byte cache
|
||||
* line */
|
||||
struct signal_queue_header RequestQueue;/* Service or guest partition
|
||||
struct signal_queue_header request_queue;/* Service or guest partition
|
||||
* uses this queue to send
|
||||
* requests to Control */
|
||||
struct signal_queue_header ResponseQueue;/* Control uses this queue to
|
||||
struct signal_queue_header response_queue;/* Control uses this queue to
|
||||
* respond to service or guest
|
||||
* partition requests */
|
||||
struct signal_queue_header EventQueue; /* Control uses this queue to
|
||||
struct signal_queue_header event_queue; /* Control uses this queue to
|
||||
* send events to service or
|
||||
* guest partition */
|
||||
struct signal_queue_header EventAckQueue;/* Service or guest partition
|
||||
struct signal_queue_header event_ack_queue;/* Service or guest partition
|
||||
* uses this queue to ack
|
||||
* Control events */
|
||||
|
||||
/* Request fixed-size message pool - does not include payload */
|
||||
struct controlvm_message RequestMsg[CONTROLVM_MESSAGE_MAX];
|
||||
struct controlvm_message request_msg[CONTROLVM_MESSAGE_MAX];
|
||||
|
||||
/* Response fixed-size message pool - does not include payload */
|
||||
struct controlvm_message ResponseMsg[CONTROLVM_MESSAGE_MAX];
|
||||
struct controlvm_message response_msg[CONTROLVM_MESSAGE_MAX];
|
||||
|
||||
/* Event fixed-size message pool - does not include payload */
|
||||
struct controlvm_message EventMsg[CONTROLVM_MESSAGE_MAX];
|
||||
struct controlvm_message event_msg[CONTROLVM_MESSAGE_MAX];
|
||||
|
||||
/* Ack fixed-size message pool - does not include payload */
|
||||
struct controlvm_message EventAckMsg[CONTROLVM_MESSAGE_MAX];
|
||||
struct controlvm_message event_ack_msg[CONTROLVM_MESSAGE_MAX];
|
||||
|
||||
/* Message stored during IOVM creation to be reused after crash */
|
||||
struct controlvm_message SavedCrashMsg[CONTROLVM_CRASHMSG_MAX];
|
||||
} ULTRA_CONTROLVM_CHANNEL_PROTOCOL;
|
||||
struct controlvm_message saved_crash_msg[CONTROLVM_CRASHMSG_MAX];
|
||||
};
|
||||
|
||||
/* Offsets for VM channel attributes... */
|
||||
#define VM_CH_REQ_QUEUE_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, RequestQueue)
|
||||
offsetof(struct spar_controlvm_channel_protocol, request_queue)
|
||||
#define VM_CH_RESP_QUEUE_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, ResponseQueue)
|
||||
offsetof(struct spar_controlvm_channel_protocol, response_queue)
|
||||
#define VM_CH_EVENT_QUEUE_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, EventQueue)
|
||||
offsetof(struct spar_controlvm_channel_protocol, event_queue)
|
||||
#define VM_CH_ACK_QUEUE_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, EventAckQueue)
|
||||
offsetof(struct spar_controlvm_channel_protocol, event_ack_queue)
|
||||
#define VM_CH_REQ_MSG_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, RequestMsg)
|
||||
offsetof(struct spar_controlvm_channel_protocol, request_msg)
|
||||
#define VM_CH_RESP_MSG_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, ResponseMsg)
|
||||
offsetof(struct spar_controlvm_channel_protocol, response_msg)
|
||||
#define VM_CH_EVENT_MSG_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, EventMsg)
|
||||
offsetof(struct spar_controlvm_channel_protocol, event_msg)
|
||||
#define VM_CH_ACK_MSG_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, EventAckMsg)
|
||||
offsetof(struct spar_controlvm_channel_protocol, event_ack_msg)
|
||||
#define VM_CH_CRASH_MSG_OFFSET \
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, SavedCrashMsg)
|
||||
offsetof(struct spar_controlvm_channel_protocol, saved_crash_msg)
|
||||
|
||||
/* The following header will be located at the beginning of PayloadVmOffset for
|
||||
* various ControlVm commands. The receiver of a ControlVm command with a
|
||||
|
@ -1564,8 +1564,8 @@ uislib_mod_init(void)
|
||||
(ulong) sizeof(struct uiscmdrsp_net));
|
||||
LOGINF("sizeof(CONTROLVM_MESSAGE):%lu bytes\n",
|
||||
(ulong) sizeof(struct controlvm_message));
|
||||
LOGINF("sizeof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL):%lu bytes\n",
|
||||
(ulong) sizeof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL));
|
||||
LOGINF("sizeof(struct spar_controlvm_channel_protocol):%lu bytes\n",
|
||||
(ulong) sizeof(struct spar_controlvm_channel_protocol));
|
||||
LOGINF("sizeof(CHANNEL_HEADER):%lu bytes\n",
|
||||
(ulong) sizeof(struct channel_header));
|
||||
LOGINF("sizeof(ULTRA_IO_CHANNEL_PROTOCOL):%lu bytes\n",
|
||||
|
@ -155,9 +155,9 @@ visorchipset_mmap(struct file *file, struct vm_area_struct *vma)
|
||||
return -ENXIO;
|
||||
}
|
||||
visorchannel_read(*PControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
gpControlChannel), &addr,
|
||||
sizeof(addr));
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
gp_control_channel),
|
||||
&addr, sizeof(addr));
|
||||
if (addr == 0) {
|
||||
ERRDRV("%s control channel address is 0", __func__);
|
||||
return -ENXIO;
|
||||
|
@ -360,8 +360,8 @@ static ssize_t toolaction_show(struct device *dev,
|
||||
u8 toolAction;
|
||||
|
||||
visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
ToolAction), &toolAction, sizeof(u8));
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
tool_action), &toolAction, sizeof(u8));
|
||||
return scnprintf(buf, PAGE_SIZE, "%u\n", toolAction);
|
||||
}
|
||||
|
||||
@ -376,7 +376,7 @@ static ssize_t toolaction_store(struct device *dev,
|
||||
return -EINVAL;
|
||||
|
||||
ret = visorchannel_write(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL, ToolAction),
|
||||
offsetof(struct spar_controlvm_channel_protocol, tool_action),
|
||||
&toolAction, sizeof(u8));
|
||||
|
||||
if (ret)
|
||||
@ -391,8 +391,8 @@ static ssize_t boottotool_show(struct device *dev,
|
||||
struct efi_spar_indication efiSparIndication;
|
||||
|
||||
visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
EfiSparIndication), &efiSparIndication,
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
efi_spar_ind), &efiSparIndication,
|
||||
sizeof(struct efi_spar_indication));
|
||||
return scnprintf(buf, PAGE_SIZE, "%u\n",
|
||||
efiSparIndication.boot_to_tool);
|
||||
@ -410,8 +410,8 @@ static ssize_t boottotool_store(struct device *dev,
|
||||
|
||||
efiSparIndication.boot_to_tool = val;
|
||||
ret = visorchannel_write(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
EfiSparIndication),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
efi_spar_ind),
|
||||
&(efiSparIndication),
|
||||
sizeof(struct efi_spar_indication));
|
||||
|
||||
@ -426,7 +426,7 @@ static ssize_t error_show(struct device *dev, struct device_attribute *attr,
|
||||
u32 error;
|
||||
|
||||
visorchannel_read(ControlVm_channel, offsetof(
|
||||
ULTRA_CONTROLVM_CHANNEL_PROTOCOL, InstallationError),
|
||||
struct spar_controlvm_channel_protocol, installation_error),
|
||||
&error, sizeof(u32));
|
||||
return scnprintf(buf, PAGE_SIZE, "%i\n", error);
|
||||
}
|
||||
@ -441,8 +441,8 @@ static ssize_t error_store(struct device *dev, struct device_attribute *attr,
|
||||
return -EINVAL;
|
||||
|
||||
ret = visorchannel_write(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
InstallationError),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
installation_error),
|
||||
&error, sizeof(u32));
|
||||
if (ret)
|
||||
return ret;
|
||||
@ -455,7 +455,7 @@ static ssize_t textid_show(struct device *dev, struct device_attribute *attr,
|
||||
u32 textId;
|
||||
|
||||
visorchannel_read(ControlVm_channel, offsetof(
|
||||
ULTRA_CONTROLVM_CHANNEL_PROTOCOL, InstallationTextId),
|
||||
struct spar_controlvm_channel_protocol, installation_text_id),
|
||||
&textId, sizeof(u32));
|
||||
return scnprintf(buf, PAGE_SIZE, "%i\n", textId);
|
||||
}
|
||||
@ -470,8 +470,8 @@ static ssize_t textid_store(struct device *dev, struct device_attribute *attr,
|
||||
return -EINVAL;
|
||||
|
||||
ret = visorchannel_write(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
InstallationTextId),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
installation_text_id),
|
||||
&textId, sizeof(u32));
|
||||
if (ret)
|
||||
return ret;
|
||||
@ -485,8 +485,8 @@ static ssize_t remaining_steps_show(struct device *dev,
|
||||
u16 remainingSteps;
|
||||
|
||||
visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
InstallationRemainingSteps),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
installation_remaining_steps),
|
||||
&remainingSteps,
|
||||
sizeof(u16));
|
||||
return scnprintf(buf, PAGE_SIZE, "%hu\n", remainingSteps);
|
||||
@ -502,8 +502,8 @@ static ssize_t remaining_steps_store(struct device *dev,
|
||||
return -EINVAL;
|
||||
|
||||
ret = visorchannel_write(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
InstallationRemainingSteps),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
installation_remaining_steps),
|
||||
&remainingSteps, sizeof(u16));
|
||||
if (ret)
|
||||
return ret;
|
||||
@ -767,8 +767,8 @@ visorchipset_save_message(struct controlvm_message *msg, CRASH_OBJ_TYPE type)
|
||||
|
||||
/* get saved message count */
|
||||
if (visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
SavedCrashMsgCount),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
saved_crash_message_count),
|
||||
&localSavedCrashMsgCount, sizeof(u16)) < 0) {
|
||||
LOGERR("failed to get Saved Message Count");
|
||||
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC,
|
||||
@ -787,8 +787,8 @@ visorchipset_save_message(struct controlvm_message *msg, CRASH_OBJ_TYPE type)
|
||||
|
||||
/* get saved crash message offset */
|
||||
if (visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
SavedCrashMsgOffset),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
saved_crash_message_offset),
|
||||
&localSavedCrashMsgOffset, sizeof(u32)) < 0) {
|
||||
LOGERR("failed to get Saved Message Offset");
|
||||
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC,
|
||||
@ -1389,7 +1389,7 @@ initialize_controlvm_payload_info(HOSTADDRESS phys_addr, u64 offset, u32 bytes,
|
||||
}
|
||||
memset(info, 0, sizeof(CONTROLVM_PAYLOAD_INFO));
|
||||
if ((offset == 0) || (bytes == 0)) {
|
||||
LOGERR("CONTROLVM_PAYLOAD_INIT Failed: RequestPayloadOffset=%llu RequestPayloadBytes=%llu!",
|
||||
LOGERR("CONTROLVM_PAYLOAD_INIT Failed: request_payload_offset=%llu request_payload_bytes=%llu!",
|
||||
(u64) offset, (u64) bytes);
|
||||
rc = -CONTROLVM_RESP_ERROR_PAYLOAD_INVALID;
|
||||
goto Away;
|
||||
@ -1436,8 +1436,8 @@ initialize_controlvm_payload(void)
|
||||
u32 payloadBytes = 0;
|
||||
|
||||
if (visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
RequestPayloadOffset),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
request_payload_offset),
|
||||
&payloadOffset, sizeof(payloadOffset)) < 0) {
|
||||
LOGERR("CONTROLVM_PAYLOAD_INIT Failed to read controlvm channel!");
|
||||
POSTCODE_LINUX_2(CONTROLVM_INIT_FAILURE_PC,
|
||||
@ -1445,8 +1445,8 @@ initialize_controlvm_payload(void)
|
||||
return;
|
||||
}
|
||||
if (visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
RequestPayloadBytes),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
request_payload_bytes),
|
||||
&payloadBytes, sizeof(payloadBytes)) < 0) {
|
||||
LOGERR("CONTROLVM_PAYLOAD_INIT Failed to read controlvm channel!");
|
||||
POSTCODE_LINUX_2(CONTROLVM_INIT_FAILURE_PC,
|
||||
@ -2068,8 +2068,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
|
||||
|
||||
/* get saved message count */
|
||||
if (visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
SavedCrashMsgCount),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
saved_crash_message_count),
|
||||
&localSavedCrashMsgCount, sizeof(u16)) < 0) {
|
||||
LOGERR("failed to get Saved Message Count");
|
||||
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC,
|
||||
@ -2088,8 +2088,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
|
||||
|
||||
/* get saved crash message offset */
|
||||
if (visorchannel_read(ControlVm_channel,
|
||||
offsetof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL,
|
||||
SavedCrashMsgOffset),
|
||||
offsetof(struct spar_controlvm_channel_protocol,
|
||||
saved_crash_message_offset),
|
||||
&localSavedCrashMsgOffset, sizeof(u32)) < 0) {
|
||||
LOGERR("failed to get Saved Message Offset");
|
||||
POSTCODE_LINUX_2(CRASH_DEV_CTRL_RD_FAILURE_PC,
|
||||
@ -2385,7 +2385,7 @@ visorchipset_init(void)
|
||||
ControlVm_channel =
|
||||
visorchannel_create_with_lock
|
||||
(addr,
|
||||
sizeof(ULTRA_CONTROLVM_CHANNEL_PROTOCOL),
|
||||
sizeof(struct spar_controlvm_channel_protocol),
|
||||
spar_controlvm_channel_protocol_uuid);
|
||||
if (SPAR_CONTROLVM_CHANNEL_OK_CLIENT(
|
||||
visorchannel_get_header(ControlVm_channel))) {
|
||||
|
Loading…
Reference in New Issue
Block a user