x86/vm_event: Added support for VM_EVENT_REASON_INTERRUPT
PATCH v5 1/1 x86/vm_event: Added support for VM_EVENT_REASON_INTERRUPT
Added support for a new event type, VM_EVENT_REASON_INTERRUPT, which is now fired in a one-shot manner when enabled via the new VM_EVENT_FLAG_GET_NEXT_INTERRUPT vm_event response flag. The patch also fixes the behaviour of the xc_hvm_inject_trap() hypercall, which would lead to non-architectural interrupts overwriting pending (specifically reinjected) architectural ones.
---
Changes since V4:
- Fixed typo in vm_event_monitor_next_interrupt()
( v->arch.monitor.next_interrupt_enabled should have been set to true, not false ).
Changes in V4 since V3:
- Const-ified struct vmcb_struct *vmcb in svm_get_pending_event().
- Made next_interrupt_enabled into a bool.
--- xen/arch/x86/hvm/hvm.c | 22 +++++++++++++++++++++- xen/arch/x86/hvm/monitor.c | 14 ++++++++++++++ xen/arch/x86/hvm/svm/svm.c | 15 +++++++++++++++ xen/arch/x86/hvm/vmx/vmx.c | 20 ++++++++++++++++++++ xen/arch/x86/vm_event.c | 5 +++++ xen/common/vm_event.c | 3 +++ xen/include/asm-arm/vm_event.h | 6 ++++++ xen/include/asm-x86/domain.h | 4 ++++ xen/include/asm-x86/hvm/hvm.h | 1 + xen/include/asm-x86/hvm/monitor.h | 2 ++ xen/include/asm-x86/monitor.h | 3 ++- xen/include/public/domctl.h | 1 + xen/include/public/vm_event.h | 18 ++++++++++++++++++ xen/include/xen/vm_event.h | 2 ++ 14 files changed, 114 insertions(+), 2 deletions(-)
xen/arch/x86/hvm/hvm.c +21 -1
@@ -469,6 +469,12 @@ void hvm_migrate_pirqs(struct vcpu *v)spin_unlock (&d->event_lock); } +static bool hvm_get_pending_event (struct vcpu *v,struct hvm_trap *info) +{ + info->cr2 = v->arch.hvm_vcpu.guest_cr[2 ]; +return hvm_funcs.get_pending_event (v, info); +} +void hvm_do_resume (struct vcpu *v) {check_wakeup_from_wait ();
@@ -535,9 +541,23 @@ void hvm_do_resume(struct vcpu *v)/* Inject pending hw/sw trap */ if ( v->arch.hvm_vcpu.inject_trap.vector !=-1 ) { -hvm_inject_trap (&v->arch.hvm_vcpu.inject_trap); +if ( !hvm_event_pending (v) ) +hvm_inject_trap (&v->arch.hvm_vcpu.inject_trap); + v->arch.hvm_vcpu.inject_trap.vector =-1 ; } + +if (unlikely (v->arch.vm_event) && v->arch.monitor.next_interrupt_enabled ) + { +struct hvm_trap info; + +if (hvm_get_pending_event (v, &info) ) + { +hvm_monitor_interrupt (info.vector, info.type, info.error_code, + info.cr2); + v->arch.monitor.next_interrupt_enabled = false; + } + } } static int hvm_print_line(
xen/arch/x86/hvm/monitor.c +14 -0
@@ -150,6 +150,20 @@ int hvm_monitor_cpuid(unsigned long insn_length, unsigned int leaf,return monitor_traps (curr,1 , &req); } +void hvm_monitor_interrupt (unsigned int vector,unsigned int type, +unsigned int err,uint64_t cr2) +{ +vm_event_request_t req = { + .reason =VM_EVENT_REASON_INTERRUPT , + .u.interrupt.x86.vector = vector, + .u.interrupt.x86.type = type, + .u.interrupt.x86.error_code = err, + .u.interrupt.x86.cr2 = cr2, + }; + +monitor_traps (current,1 , &req); +} +/* * Local variables: * mode: C
xen/arch/x86/hvm/svm/svm.c +15 -0
@@ -2222,6 +2222,20 @@ static void svm_invlpg(struct vcpu *v, unsigned long vaddr)svm_asid_g_invlpg (v, vaddr); } +static bool svm_get_pending_event (struct vcpu *v,struct hvm_trap *info) +{ +const struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb; + +if ( vmcb->eventinj.fields.v ) +return false; + + info->vector = vmcb->eventinj.fields.vector; + info->type = vmcb->eventinj.fields.type; + info->error_code = vmcb->eventinj.fields.errorcode; + +return true; +} +static struct hvm_function_table __initdata svm_function_table = { .name ="SVM" , .cpu_up_prepare = svm_cpu_up_prepare,
@@ -2252,6 +2266,7 @@ static struct hvm_function_table __initdata svm_function_table = { .inject_trap = svm_inject_trap, .init_hypercall_page = svm_init_hypercall_page, .event_pending = svm_event_pending, + .get_pending_event = svm_get_pending_event, .invlpg = svm_invlpg, .cpuid_intercept = svm_cpuid_intercept, .wbinvd_intercept = svm_wbinvd_intercept,
xen/arch/x86/hvm/vmx/vmx.c +20 -0
@@ -2134,6 +2134,25 @@ static int vmx_set_mode(struct vcpu *v, int mode)return 0 ; } +static bool vmx_get_pending_event (struct vcpu *v,struct hvm_trap *info) +{ +unsigned long intr_info, error_code; + +vmx_vmcs_enter (v); +__vmread (VM_ENTRY_INTR_INFO , &intr_info); +__vmread (VM_ENTRY_EXCEPTION_ERROR_CODE , &error_code); +vmx_vmcs_exit (v); + +if ( !(intr_info &INTR_INFO_VALID_MASK ) ) +return false; + + info->vector =MASK_EXTR (intr_info,INTR_INFO_VECTOR_MASK ); + info->type =MASK_EXTR (intr_info,INTR_INFO_INTR_TYPE_MASK ); + info->error_code = error_code; + +return true; +} +static struct hvm_function_table __initdata vmx_function_table = { .name ="VMX" , .cpu_up_prepare = vmx_cpu_up_prepare,
@@ -2163,6 +2182,7 @@ static struct hvm_function_table __initdata vmx_function_table = { .inject_trap = vmx_inject_trap, .init_hypercall_page = vmx_init_hypercall_page, .event_pending = vmx_event_pending, + .get_pending_event = vmx_get_pending_event, .invlpg = vmx_invlpg, .cpu_up = vmx_cpu_up, .cpu_down = vmx_cpu_down,
xen/arch/x86/vm_event.c +5 -0
@@ -134,6 +134,11 @@ void vm_event_set_registers(struct vcpu *v, vm_event_response_t *rsp) v->arch.user_regs.eip = rsp->data.regs.x86.rip; } +void vm_event_monitor_next_interrupt (struct vcpu *v) +{ + v->arch.monitor.next_interrupt_enabled = true; +} +void vm_event_fill_regs (vm_event_request_t *req) {const struct cpu_user_regs *regs =guest_cpu_user_regs ();
xen/common/vm_event.c +3 -0
@@ -433,6 +433,9 @@ void vm_event_resume(struct domain *d, struct vm_event_domain *ved)if ( rsp.flags &VM_EVENT_FLAG_SET_REGISTERS )vm_event_set_registers (v, &rsp); +if ( rsp.flags &VM_EVENT_FLAG_GET_NEXT_INTERRUPT ) +vm_event_monitor_next_interrupt (v); +if ( rsp.flags &VM_EVENT_FLAG_VCPU_PAUSED )vm_event_vcpu_unpause (v); }
xen/include/asm-arm/vm_event.h +6 -0
@@ -52,4 +52,10 @@ void vm_event_emulate_check(struct vcpu *v, vm_event_response_t *rsp) /* Not supported on ARM. */ } +static inline +void vm_event_monitor_next_interrupt (struct vcpu *v) +{ +/* Not supported on ARM. */ +} +#endif /* __ASM_ARM_VM_EVENT_H__ */
xen/include/asm-x86/domain.h +4 -0
@@ -576,6 +576,10 @@ struct arch_vcpuXEN_GUEST_HANDLE (vcpu_time_info_t) time_info_guest;struct arch_vm_event *vm_event; + +struct { +bool next_interrupt_enabled; + } monitor; }; smap_check_policy_t smap_policy_change(struct vcpu *v,
xen/include/asm-x86/hvm/hvm.h +1 -0
@@ -157,6 +157,7 @@ struct hvm_function_table {void (*init_hypercall_page)(struct domain *d,void *hypercall_page);int (*event_pending)(struct vcpu *v); +bool (*get_pending_event)(struct vcpu *v,struct hvm_trap *info);void (*invlpg)(struct vcpu *v,unsigned long vaddr);int (*cpu_up_prepare)(unsigned int cpu);
xen/include/asm-x86/hvm/monitor.h +2 -0
@@ -42,6 +42,8 @@ int hvm_monitor_debug(unsigned long rip, enum hvm_monitor_debug_type type, unsigned long trap_type, unsigned long insn_length);int hvm_monitor_cpuid (unsigned long insn_length,unsigned int leaf,unsigned int subleaf); +void hvm_monitor_interrupt (unsigned int vector,unsigned int type, +unsigned int err,uint64_t cr2);#endif /* __ASM_X86_HVM_MONITOR_H__ */
xen/include/asm-x86/monitor.h +2 -1
@@ -76,7 +76,8 @@ static inline uint32_t arch_monitor_get_capabilities(struct domain *d) (1U <<XEN_DOMCTL_MONITOR_EVENT_SOFTWARE_BREAKPOINT ) | (1U <<XEN_DOMCTL_MONITOR_EVENT_GUEST_REQUEST ) | (1U <<XEN_DOMCTL_MONITOR_EVENT_DEBUG_EXCEPTION ) | - (1U <<XEN_DOMCTL_MONITOR_EVENT_CPUID ); + (1U <<XEN_DOMCTL_MONITOR_EVENT_CPUID ) | + (1U <<XEN_DOMCTL_MONITOR_EVENT_INTERRUPT );/* Since we know this is on VMX, we can just call the hvm func */ if (hvm_is_singlestep_supported () )
xen/include/public/domctl.h +1 -0
@@ -1086,6 +1086,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_psr_cmt_op_t);#define XEN_DOMCTL_MONITOR_EVENT_DEBUG_EXCEPTION 5#define XEN_DOMCTL_MONITOR_EVENT_CPUID 6#define XEN_DOMCTL_MONITOR_EVENT_PRIVILEGED_CALL 7 +#define XEN_DOMCTL_MONITOR_EVENT_INTERRUPT 8struct xen_domctl_monitor_op {uint32_t op;/* XEN_DOMCTL_MONITOR_OP_* */
xen/include/public/vm_event.h +18 -0
@@ -105,6 +105,11 @@* if any of those flags are set, only those will be honored). */ #define VM_EVENT_FLAG_SET_EMUL_INSN_DATA (1 << 9) +/* +* Have a one-shot VM_EVENT_REASON_INTERRUPT event sent for the first +* interrupt pending after resuming the VCPU. +*/ +#define VM_EVENT_FLAG_GET_NEXT_INTERRUPT (1 << 10)/* * Reasons for the vm event request
@@ -139,6 +144,8 @@* These kinds of events will be filtered out in future versions. */ #define VM_EVENT_REASON_PRIVILEGED_CALL 11 +/* An interrupt has been delivered. */ +#define VM_EVENT_REASON_INTERRUPT 12/* Supported values for the vm_event_write_ctrlreg index. */ #define VM_EVENT_X86_CR0 0
@@ -259,6 +266,14 @@ struct vm_event_cpuid {uint32_t _pad; }; +struct vm_event_interrupt_x86 { +uint32_t vector; +uint32_t type; +uint32_t error_code; +uint32_t _pad; +uint64_t cr2; +}; +#define MEM_PAGING_DROP_PAGE (1 << 0)#define MEM_PAGING_EVICT_FAIL (1 << 1)
@@ -302,6 +317,9 @@ typedef struct vm_event_st {struct vm_event_debug software_breakpoint;struct vm_event_debug debug_exception;struct vm_event_cpuid cpuid; +union { +struct vm_event_interrupt_x86 x86; + } interrupt; } u;union {
xen/include/xen/vm_event.h +2 -0
@@ -78,6 +78,8 @@ void vm_event_vcpu_unpause(struct vcpu *v);void vm_event_fill_regs (vm_event_request_t *req);void vm_event_set_registers (struct vcpu *v,vm_event_response_t *rsp); +void vm_event_monitor_next_interrupt (struct vcpu *v); +#endif /* __VM_EVENT_H__ */ /*
Signature · 7 lines
1.9.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 11.11.16 at 17:09, <[email protected]> wrote:
Added support for a new event type,
VM_EVENT_REASON_INTERRUPT, which is now fired in a one-shot manner when enabled via the newVM_EVENT_FLAG_GET_NEXT_INTERRUPTvm_eventresponse flag. The patch also fixes the behaviour of thexc_hvm_inject_trap()hypercall, which would lead to non-architectural interrupts overwriting pending (specifically reinjected) architectural ones.Signed-off-by Razvan Cojocaru <[email protected]>Acked-by Tamas K Lengyel <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 158 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Saturday, November 12, 2016 12:09 AMAdded support for a new event type,
VM_EVENT_REASON_INTERRUPT, which is now fired in a one-shot manner when enabled via the newVM_EVENT_FLAG_GET_NEXT_INTERRUPTvm_eventresponse flag. The patch also fixes the behaviour of thexc_hvm_inject_trap()hypercall, which would lead to non-architectural interrupts overwriting pending (specifically reinjected) architectural ones.Signed-off-by Razvan Cojocaru <[email protected]>Acked-by Tamas K Lengyel <[email protected]>---
Changes since V4:
- Fixed typo invm_event_monitor_next_interrupt()
(v->arch.monitor.next_interrupt_enabledshould have been set to true, not false ).Changes in V4 since V3:
- Const-ified structvmcb_struct*vmcb insvm_get_pending_event().
- Madenext_interrupt_enabledinto a bool.--- xen/arch/x86/hvm/hvm.c | 22 +++++++++++++++++++++- xen/arch/x86/hvm/monitor.c | 14 ++++++++++++++ xen/arch/x86/hvm/svm/svm.c | 15 +++++++++++++++ xen/arch/x86/hvm/vmx/vmx.c | 20 ++++++++++++++++++++ xen/arch/x86/vm_event.c | 5 +++++ xen/common/vm_event.c | 3 +++ xen/include/asm-arm/vm_event.h | 6 ++++++ xen/include/asm-x86/domain.h | 4 ++++ xen/include/asm-x86/hvm/hvm.h | 1 + xen/include/asm-x86/hvm/monitor.h | 2 ++ xen/include/asm-x86/monitor.h | 3 ++- xen/include/public/domctl.h | 1 + xen/include/public/vm_event.h | 18 ++++++++++++++++++ xen/include/xen/vm_event.h | 2 ++ 14 files changed, 114 insertions(+), 2 deletions(-)xen/arch/x86/hvm/hvm.c +21
-1@@ -469,6 +469,12 @@ void hvm_migrate_pirqs(struct vcpu *v)spin_unlock (&d->event_lock); } +static bool hvm_get_pending_event (struct vcpu *v,struct hvm_trap *info) +{ + info->cr2 = v->arch.hvm_vcpu.guest_cr[2 ]; +return hvm_funcs.get_pending_event (v, info); +} +void hvm_do_resume (struct vcpu *v) {check_wakeup_from_wait ();@@ -535,9 +541,23 @@ void hvm_do_resume(struct vcpu *v)/* Inject pending hw/sw trap */ if ( v->arch.hvm_vcpu.inject_trap.vector !=-1 ) { -hvm_inject_trap (&v->arch.hvm_vcpu.inject_trap); +if ( !hvm_event_pending (v) ) +hvm_inject_trap (&v->arch.hvm_vcpu.inject_trap); + v->arch.hvm_vcpu.inject_trap.vector =-1 ; } + +if (unlikely (v->arch.vm_event) && v->arch.monitor.next_interrupt_enabled ) + { +struct hvm_trap info; + +if (hvm_get_pending_event (v, &info) ) + { +hvm_monitor_interrupt (info.vector, info.type, info.error_code, + info.cr2); + v->arch.monitor.next_interrupt_enabled = false; + } + } } static int hvm_print_line(xen/arch/x86/hvm/monitor.c +14
-0@@ -150,6 +150,20 @@ int hvm_monitor_cpuid(unsigned long insn_length, unsigned int leaf, return monitor_traps(curr, 1, &req); } +void hvm_monitor_interrupt (unsigned int vector,unsigned int type, +unsigned int err,uint64_t cr2) +{ +vm_event_request_t req = { + .reason =VM_EVENT_REASON_INTERRUPT , + .u.interrupt.x86.vector = vector, + .u.interrupt.x86.type = type, + .u.interrupt.x86.error_code = err, + .u.interrupt.x86.cr2 = cr2, + }; + +monitor_traps (current,1 , &req); +} +/* * Local variables: * mode: C
xen/arch/x86/hvm/svm/svm.c +15
-0@@ -2222,6 +2222,20 @@ static void svm_invlpg(struct vcpu *v, unsigned long vaddr)svm_asid_g_invlpg (v, vaddr); } +static bool svm_get_pending_event (struct vcpu *v,struct hvm_trap *info) +{ +const struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb; + +if ( vmcb->eventinj.fields.v ) +return false; + + info->vector = vmcb->eventinj.fields.vector; + info->type = vmcb->eventinj.fields.type; + info->error_code = vmcb->eventinj.fields.errorcode; + +return true; +} +static struct hvm_function_table __initdata svm_function_table = { .name ="SVM" , .cpu_up_prepare = svm_cpu_up_prepare,@@ -2252,6 +2266,7 @@ static struct hvm_function_table __initdata svm_function_table = { .inject_trap = svm_inject_trap, .init_hypercall_page = svm_init_hypercall_page, .event_pending = svm_event_pending, + .get_pending_event = svm_get_pending_event, .invlpg = svm_invlpg, .cpuid_intercept = svm_cpuid_intercept,.wbinvd_intercept =
svm_wbinvd_intercept,xen/arch/x86/hvm/vmx/vmx.c +9
-0@@ -2134,6 +2134,25 @@ static int vmx_set_mode(struct vcpu *v, int mode)return 0 ; } +static bool vmx_get_pending_event (struct vcpu *v,struct hvm_trap *info) +{ +unsigned long intr_info, error_code; + +vmx_vmcs_enter (v); +__vmread (VM_ENTRY_INTR_INFO , &intr_info); +__vmread (VM_ENTRY_EXCEPTION_ERROR_CODE , &error_code); +vmx_vmcs_exit (v); +
xen/arch/x86/hvm/vmx/vmx.c static int vmx_set_mode(struct vcpu *v, int mode) · line 2155
Quoted 10 lines
xen/arch/x86/hvm/vmx/vmx.c +10
-0+if ( !(intr_info &INTR_INFO_VALID_MASK ) ) +return false; + + info->vector =MASK_EXTR (intr_info,INTR_INFO_VECTOR_MASK ); + info->type =MASK_EXTR (intr_info,INTR_INFO_INTR_TYPE_MASK ); + info->error_code = error_code; + +return true; +} +
Looks not working with APICv virtual interrupt delivery...
Thanks
Kevin
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if xc_hvm_inject_trap() can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by the xc_hvm_inject_trap() hypercall).
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).
OK then. Acked-by: Kevin Tian <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 6 lines · Kevin
Quoted 6 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
Quoted 8 lines
Quoted 6 lines
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).OK then. Acked-by: Kevin Tian <[email protected]>
AFAIK this has been acked by everyone a while back, is further action required on my part, or is just low in the patch queue?
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 09:50, <[email protected]> wrote:
Quoted 13 lines · Kevin
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).
Quoted 3 lines
Quoted 1 line
OK then. Acked-by: Kevin Tian <[email protected]>
AFAIK this has been acked by everyone a while back,
Has it? I've meant to apply it the other day, but couldn't find any ARM or AMD SVM maintainer acks.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 09:50, <[email protected]> wrote:
Quoted 13 lines · Kevin
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
OK then. Acked-by: Kevin Tian <[email protected]>
AFAIK this has been acked by everyone a while back,
Has it? I've meant to apply it the other day, but couldn't find any ARM or AMD SVM maintainer acks.
Oh I see. At one point Julien came into the conversation but it was just a friendly discussion about spelling somewhere - I've misremembered that as an ack, I now see.
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Julien Grall
Acked-byHi Razvan,
Quoted 18 lines · Razvan Cojocaru
Quoted 17 lines · Jan Beulich
Quoted 17 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 09:50, <[email protected]> wrote:
Quoted 14 lines · Kevin
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).OK then. Acked-by: Kevin Tian <[email protected]>
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
AFAIK this has been acked by everyone a while back,
Has it? I've meant to apply it the other day, but couldn't find any ARM or AMD SVM maintainer acks.
Oh I see. At one point Julien came into the conversation but it was just a friendly discussion about spelling somewhere - I've misremembered that as an ack, I now see.
Thank you for reminding me:
Cheers,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Suravee Suthikulpanit
Acked-byQuoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 09:50, <[email protected]> wrote:
Quoted 13 lines · Kevin
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).
Quoted 9 lines
Quoted 3 lines
Quoted 1 line
OK then. Acked-by: Kevin Tian <[email protected]>
AFAIK this has been acked by everyone a while back,
Has it? I've meant to apply it the other day, but couldn't find any ARM or AMD SVM maintainer acks.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 09:50, <[email protected]> wrote:
Quoted 13 lines · Kevin
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).
Quoted 4 lines
Quoted 1 line
OK then. Acked-by: Kevin Tian <[email protected]>
AFAIK this has been acked by everyone a while back, is further action required on my part, or is just low in the patch queue?
Before asking, did you check the patch still applies and builds? I've taken the time to make it apply, but it really needs more than that. Please re-base.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 09:50, <[email protected]> wrote:
Quoted 13 lines · Kevin
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
OK then. Acked-by: Kevin Tian <[email protected]>
AFAIK this has been acked by everyone a while back, is further action required on my part, or is just low in the patch queue?
Before asking, did you check the patch still applies and builds? I've taken the time to make it apply, but it really needs more than that. Please re-base.
I did not. Will check ASAP.
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 09:50, <[email protected]> wrote:
Quoted 13 lines · Kevin
Quoted 12 lines
From: Razvan Cojocaru [mailto:[email protected]]
Sent: Wednesday, November 16, 2016 3:49 PMQuoted 1 line · Kevin
Looks not working with APICv virtual interrupt delivery...
It's only meant to work with "regular" injections (we'd like to be able to tell if
xc_hvm_inject_trap()can succeed). APICv support could be a later patch, if desirable (AFAICT, the two types shouldn't collide, i.e. impede trap delivery as done by thexc_hvm_inject_trap()hypercall).
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
OK then. Acked-by: Kevin Tian <[email protected]>
AFAIK this has been acked by everyone a while back, is further action required on my part, or is just low in the patch queue?
Before asking, did you check the patch still applies and builds? I've taken the time to make it apply, but it really needs more than that. Please re-base.
While re-basing the patch on staging, I've got this (unrelated) error while doing 'make dist':
make[9]: Entering directory `~/work/xen.git/tools/firmware/rombios/32bit'
gcc -m32 -march=i686 -DBUILD_ID -g -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -O0 -g3
-fno-omit-frame-pointer -D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF .util.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/home/red/work/xen.git/tools/firmware/rombios/32bit/../../../../tools/include -I.. -I../../../libacpi -c -o util.o util.cutil.c: In function ‘get_s3_waking_vector’:
util.c:453:23: error: dereferencing pointer to incomplete type
if (!fadt || (fadt->header.signature != ACPI_2_0_FADT_SIGNATURE))
^
util.c:453:45: error: ‘ACPI_2_0_FADT_SIGNATURE’ undeclared (first use in
this function)
if (!fadt || (fadt->header.signature != ACPI_2_0_FADT_SIGNATURE))
^
util.c:453:45: note: each undeclared identifier is reported only once
for each function it appears in
util.c:456:45: error: dereferencing pointer to incomplete type
facs = (struct acpi_20_facs *)(long)fadt->x_firmware_ctrl;
^make[9]: *** [util.o] Error 1
I'm not where this is best reported, but thought someone might like to know.
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
build issue on staging (was Re: [PATCH V5] x86/vm_event: Added support for VM_EVENT_REASON_INTERRUPT)
Quoted 29 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 15:17, <[email protected]> wrote:
While re-basing the patch on staging, I've got this (unrelated) error while doing 'make dist':
make[9]: Entering directory `~/work/xen.git/tools/firmware/rombios/32bit'
gcc -m32 -march=i686 -DBUILD_ID -g -fno-strict-aliasing -std=gnu99(quoted diff) +0
-4-Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -O0 -g3 -fno-omit-frame-pointer -D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF.util.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
(quoted diff) +0
-3-mno-tls-direct-seg-refs -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/home/red/work/xen.git/tools/firmware/rombios/32bit/../../../../tools/include
-I.. -I../../../libacpi -c -o util.outil.cutil.c: In function ‘get_s3_waking_vector’:
util.c:453:23: error: dereferencing pointer to incomplete typeif (!fadt || (fadt->header.signature != ACPI_2_0_FADT_SIGNATURE)) ^ util.c:453:45: error: ‘ACPI_2_0_FADT_SIGNATURE’ undeclared (first use in this function) if (!fadt || (fadt->header.signature != ACPI_2_0_FADT_SIGNATURE)) ^ util.c:453:45: note: each undeclared identifier is reported only once for each function it appears in util.c:456:45: error: dereferencing pointer to incomplete type facs = (struct acpi_20_facs *)(long)fadt->x_firmware_ctrl; ^
Quoted 1 line
make[9]: *** [util.o] Error 1
Roger, this indicates you didn't build everything that can be built with the libacpi changes which went in today. Please indicate whether you think a fix is easy to put together, or whether to revert.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: build issue on staging (was Re: [PATCH V5] x86/vm_event: Added support for VM_EVENT_REASON_INTERRUPT)
Quoted 27 lines · Jan Beulich
Quoted 27 lines
Quoted 1 line
Quoted 1 line · On 13.12.16 at 15:17, <[email protected]> wrote:
While re-basing the patch on staging, I've got this (unrelated) error while doing 'make dist':
make[9]: Entering directory `~/work/xen.git/tools/firmware/rombios/32bit'
gcc -m32 -march=i686 -DBUILD_ID -g -fno-strict-aliasing -std=gnu99(quoted diff) +0
-4-Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -O0 -g3 -fno-omit-frame-pointer -D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF.util.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
(quoted diff) +0
-3-mno-tls-direct-seg-refs -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/home/red/work/xen.git/tools/firmware/rombios/32bit/../../../../tools/include
-I.. -I../../../libacpi -c -o util.outil.cutil.c: In function ‘get_s3_waking_vector’:
util.c:453:23: error: dereferencing pointer to incomplete typeif (!fadt || (fadt->header.signature != ACPI_2_0_FADT_SIGNATURE)) ^ util.c:453:45: error: ‘ACPI_2_0_FADT_SIGNATURE’ undeclared (first use in this function) if (!fadt || (fadt->header.signature != ACPI_2_0_FADT_SIGNATURE)) ^util.c:453:45: note: each undeclared identifier is reported only once for each function it appears in
util.c:456:45: error: dereferencing pointer to incomplete type
Quoted 8 lines
Quoted 3 lines
facs = (struct acpi_20_facs *)(long)fadt->x_firmware_ctrl; ^make[9]: *** [util.o] Error 1
Roger, this indicates you didn't build everything that can be built with the libacpi changes which went in today. Please indicate whether you think a fix is easy to put together, or whether to revert.
Hello,
Sorry, rombios doesn't build on FreeBSD, neither I was expecting libacpi headers to leak into it (TBH it looks like a layering violantion). Just send a patch to fix the build.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel