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

2018-10-17 Thread Andrew Cooper
On 17/10/18 12:11, Alexandru Stefan ISAILA wrote: > >>> +uint16_t sel; >>> +union >>> +{ >>> +uint64_t bytes; >>> +struct >>> +{ >>> +uint64_t base :32; >> Better known as... ? > Sorry I don't follow here An aligned 32-bit bitfield of a uin64_t

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

2018-10-17 Thread Alexandru Stefan ISAILA
On 17.10.2018 12:49, Andrew Cooper wrote: > On 17/10/18 10:39, 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. >> >>

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

2018-10-17 Thread Andrew Cooper
On 17/10/18 10:39, 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 > > --- > Changes s

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

2018-10-17 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 V1: - Add helper function for packing - Chang