Re: [Xen-devel] [PATCH v3] arch/x86: Add registers to vm_event

2018-10-25 Thread Jan Beulich
>>> On 25.10.18 at 15:10, wrote: > On 25.10.2018 14:55, Jan Beulich wrote: > On 18.10.18 at 11:02, wrote: >>> @@ -157,6 +157,19 @@ >>> #define VM_EVENT_X86_CR42 >>> #define VM_EVENT_X86_XCR0 3 >>> >>> +struct x86_selector_reg { >>> +union >>> +{ >>> +uint64_t byte

Re: [Xen-devel] [PATCH v3] arch/x86: Add registers to vm_event

2018-10-25 Thread Razvan Cojocaru
On 10/25/18 4:10 PM, Alexandru Stefan ISAILA wrote: > On 25.10.2018 14:55, Jan Beulich wrote: > On 18.10.18 at 11:02, wrote: >>> +struct x86_selector_reg { >>> +union >>> +{ >>> +uint64_t bytes; >>> +struct >>> +{ >>> +uint32_t base; >>> +

Re: [Xen-devel] [PATCH v3] arch/x86: Add registers to vm_event

2018-10-25 Thread Alexandru Stefan ISAILA
On 25.10.2018 14:55, Jan Beulich wrote: On 18.10.18 at 11:02, wrote: >> --- a/xen/arch/x86/vm_event.c >> +++ b/xen/arch/x86/vm_event.c >> @@ -122,11 +122,60 @@ void vm_event_monitor_next_interrupt(struct vcpu *v) >> v->arch.monitor.next_interrupt_enabled = true; >> } >> >> +stati

Re: [Xen-devel] [PATCH v3] arch/x86: Add registers to vm_event

2018-10-25 Thread Jan Beulich
>>> On 18.10.18 at 11:02, wrote: > --- a/xen/arch/x86/vm_event.c > +++ b/xen/arch/x86/vm_event.c > @@ -122,11 +122,60 @@ void vm_event_monitor_next_interrupt(struct vcpu *v) > v->arch.monitor.next_interrupt_enabled = true; > } > > +static void vm_event_pack_segment_register(enum x86_segmen

Re: [Xen-devel] [PATCH v3] arch/x86: Add registers to vm_event

2018-10-18 Thread Tamas K Lengyel
On Thu, Oct 18, 2018 at 3:02 AM Alexandru Stefan ISAILA wrote: > > This patch adds a couple of regs to the vm_event that are used by > the introspection. The base, limit and ar > bits are compressed into a uint64_t union so as not to enlarge the > vm_event. > > Signed-off-by: Alexandru Isaila LG

[Xen-devel] [PATCH v3] arch/x86: Add registers to vm_event

2018-10-18 Thread Alexandru Stefan ISAILA
This patch adds a couple of regs to the vm_event that are used by the introspection. The base, limit and ar bits are compressed into a uint64_t union so as not to enlarge the vm_event. Signed-off-by: Alexandru Isaila --- Changes since V2: - Keep fs/gs_base in 64bit long format -