On 8/14/19 4:39 AM, Pawel Wieczorkiewicz wrote:
#ifdef __XEN__
+typedef enum livepatch_func_state {
+ LIVEPATCH_FUNC_NOT_APPLIED = 0,
+ LIVEPATCH_FUNC_APPLIED = 1
+} livepatch_func_state_t;
+
struct livepatch_func {
const char *name; /* Name of function to be patched. */
void *new_addr;
@@ -834,6 +839,10 @@ struct livepatch_func {
uint32_t old_size;
uint8_t version; /* MUST be LIVEPATCH_PAYLOAD_VERSION. */
uint8_t opaque[31];
+#if defined CONFIG_X86
+ uint8_t applied;
+ uint8_t _pad[7];
+#endif
};
Three requests:
- Why does it have to be X86 specific?
- Can you also include the change in the documentation where the spec
resides?
- You are bumping the version to 2, but not making it backwards
compatible. If so ,you also need to update the documentation to mention
this.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel