6ee0e3
Signed-off-by: Petre Pircalabu
Reviewed-by: Anthony PERARD
Release-acked-by: Juergen Gross
---
tools/ocaml/libs/xentoollog/xentoollog_stubs.c | 4 ++--
tools/ocaml/libs/xl/xenlight_stubs.c | 20 ++--
2 files changed, 12 insertions(+), 12 deletions(-)
diff -
_cb) ;
|^~~~
Signed-off-by: Petre Pircalabu
---
tools/ocaml/libs/xentoollog/xentoollog_stubs.c | 4 ++--
tools/ocaml/libs/xl/xenlight_stubs.c | 20 ++--
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/tools/ocaml/libs/xentool
Cleanup xen-access code in accordance with the XEN style guide.
Signed-off-by: Petre Pircalabu
---
tools/tests/xen-access/xen-access.c | 57 +
1 file changed, 33 insertions(+), 24 deletions(-)
diff --git a/tools/tests/xen-access/xen-access.c
b/tools/tests
To accommodate a second implementation of the vm_event subsystem, the
current one (ring) should be decoupled from the xen/vm_event.h interface.
Signed-off-by: Petre Pircalabu
---
xen/common/vm_event.c | 368 ++---
xen/include/xen/vm_event.h | 60
The vm_event_domain members are not accessed outside vm_event.c so it's
better to hide de implementation details.
Signed-off-by: Petre Pircalabu
Acked-by: Andrew Cooper
Acked-by: Tamas K Lengyel
---
xen/common/vm_event.c | 26 ++
xen/include/xen/sched.h
atch was split in 3 new ones:
* getopt_long for cmdline parsing
* code-cleanup according to the XEN style guide
* the vm_event_ng interface support
---
Petre Pircalabu (10):
vm_event: Define VM_EVENT type
vm_event: Remove "ring" suffix from vm_event_check_ring
vm_event: Add
Decouple implementation from interface to allow vm_event_check to be
used regardless of the vm_event underlying implementation.
Signed-off-by: Petre Pircalabu
Acked-by: Andrew Cooper
Acked-by: Tamas K Lengyel
---
xen/arch/arm/mem_access.c | 2 +-
xen/arch/x86/mm/mem_access.c | 4
: Petre Pircalabu
---
tools/libxc/include/xenctrl.h | 9 +
tools/libxc/xc_mem_paging.c | 9 +-
tools/libxc/xc_memshr.c | 9 +-
tools/libxc/xc_monitor.c | 23 +-
tools/libxc/xc_private.h | 12 +-
tools/libxc/xc_vm_event.c | 100 ++-
xen/arch/x86/mm.c
Split xen-access in order to accommodate both vm_event interfaces
(legacy and NG). By default, the legacy vm_event is selected but
this can be changed by adding the '-n' flag in the command line.
Signed-off-by: Petre Pircalabu
---
tools/tests/xen-access/Makefile | 7 +-
tools
Signed-off-by: Petre Pircalabu
---
xen/common/vm_event.c | 2 ++
xen/include/xen/sched.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c
index 515a917..787c61c 100644
--- a/xen/common/vm_event.c
+++ b/xen/common/vm_event.c
@@ -71,6 +71,8
Remove the domain reference from calls to vm_event interface function
and use the backpointer from vm_event_domain.
Affected functions:
- __vm_event_claim_slot / vm_event_claim_slot / vm_event_claim_slot_nosleep
- vm_event_cancel_slot
- vm_event_put_request
Signed-off-by: Petre Pircalabu
Define the type for each of the supported vm_event rings (paging,
monitor and sharing) and replace the ring param field with this type.
Replace XEN_DOMCTL_VM_EVENT_OP_ occurrences with their corresponding
XEN_VM_EVENT_TYPE_ counterpart.
Signed-off-by: Petre Pircalabu
---
tools/libxc/include
This simplifies the command line parsing logic and makes it easier to
add new test parameters.
Signed-off-by: Petre Pircalabu
---
tools/tests/xen-access/xen-access.c | 60 +
1 file changed, 35 insertions(+), 25 deletions(-)
diff --git a/tools/tests/xen
Signed-off-by: Petre Pircalabu
---
Changes in v2:
- Added designated reviewer after maintainer list
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index ab32e7f..0658bcc 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -413,6 +413,7 @@ F
Signed-off-by: Petre Pircalabu
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index ab32e7f..0151625 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -412,6 +412,7 @@ F: unmodified_drivers/linux-2.6/
VM EVENT, MEM ACCESS and MONITOR
M: Razvan
To accommodate a second implementation of the vm_event subsystem, the
current one (ring) should be decoupled from the xen/vm_event.h interface.
Signed-off-by: Petre Pircalabu
---
xen/common/vm_event.c | 407 ++---
xen/include/xen/vm_event.h | 56
ing's waitqueue logic is unnecessary in this case because the
vcpu sending the request is blocked until a response is received.
Petre Pircalabu (9):
tools/libxc: Consistent usage of xc_vm_event_* interface
vm_event: Define VM_EVENT type
vm_event: Make ‘local’ functions ‘static’
vm_eve
sleep
- vm_event_cancel_slot
- vm_event_put_request
Signed-off-by: Petre Pircalabu
---
xen/arch/x86/mm/mem_sharing.c | 5 ++---
xen/arch/x86/mm/p2m.c | 11 +--
xen/common/monitor.c | 4 ++--
xen/common/vm_event.c | 37 ++---
xen/includ
: Petre Pircalabu
---
tools/libxc/include/xenctrl.h | 6 +
tools/libxc/xc_monitor.c | 15 ++
tools/libxc/xc_private.h | 8 +
tools/libxc/xc_vm_event.c | 53 +
xen/arch/x86/mm.c | 5 +
xen/common/Makefile | 1 +
xen/common/domctl.c | 7
Define the type for each of the supported vm_event rings (paging,
monitor and sharing) and replace the ring param field with this type.
Replace XEN_DOMCTL_VM_EVENT_OP_ occurrences with their corresponding
XEN_VM_EVENT_TYPE_ counterpart.
Signed-off-by: Petre Pircalabu
---
tools/libxc/include
vm_event_get_response, vm_event_resume, and vm_event_mark_and_pause are
used only in xen/common/vm_event.c.
Signed-off-by: Petre Pircalabu
---
xen/common/vm_event.c | 6 +++---
xen/include/xen/vm_event.h | 3 ---
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/xen/common
Decouple implementation from interface to allow vm_event_check to be
used regardless of the vm_event underlying implementation.
Signed-off-by: Petre Pircalabu
---
xen/arch/arm/mem_access.c | 2 +-
xen/arch/x86/mm/mem_access.c | 4 ++--
xen/arch/x86/mm/mem_paging.c | 2 +-
xen/common
Split xen-access in order to accommodate both vm_event interfaces
(legacy and NG). By default, the legacy vm_event is selected but
this can be changed by adding the '-n' flag in the command line.
Signed-off-by: Petre Pircalabu
---
tools/tests/xen-access/Makefile | 7 +-
tools
The vm_event_domain members are not accessed outside vm_event.c so it's
better to hide de implementation details.
Signed-off-by: Petre Pircalabu
---
xen/common/vm_event.c | 27 +++
xen/include/xen/sched.h | 27 +--
2 files changed, 28 inser
xc_memshr_ring_enable/disable and xc_memshr_domain_resume.
Signed-off-by: Petre Pircalabu
---
tools/libxc/include/xenctrl.h | 49 +
tools/libxc/xc_mem_paging.c | 23 +---
tools/libxc/xc_memshr.c | 34 ---
tools/libxc
ff-by: Petre Pircalabu
Acked-by: Razvan Cojocaru
---
Changes from v1:
- Removed unnecessary casts
---
xen/common/vm_event.c | 37 -
xen/include/xen/vm_event.h | 2 --
2 files changed, 12 insertions(+), 27 deletions(-)
diff --git a/xen/common/vm_even
ff-by: Petre Pircalabu
---
xen/common/vm_event.c | 37 -
xen/include/xen/vm_event.h | 2 --
2 files changed, 12 insertions(+), 27 deletions(-)
diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c
index 19c983c..746b040 100644
--- a/xen/common/vm_ev
Makefile using the
TEST-EXTRA-INFO variable.
Signed-off-by: Petre Pircalabu
---
Makefile | 6 +-
build/common.mk | 22 ++-
build/files.mk| 3 +
build/gen.mk | 12 ++
common/report.c | 8 -
docs/all-tests.dox| 3 +
The Executable test class runs on host (dom0). The class spawns a
process and searches the program output(stdio) for a specific pattern.
Signed-off-by: Petre Pircalabu
---
xtf/__init__.py| 2 +-
xtf/executable_test.py | 83 ++
xtf
tance. Simple test which loads a XEN DomU
and checks the output for a specific pattern.
- toolstack abstraction using a wrapper class (e.g.
(xtf.xl_domu.XLDomU)
Signed-off-by: Petre Pircalabu
---
build/gen.mk | 13 ++-
build/mkinfo.py | 84 +++---
xtf-runner| 334
Extend the framework to support (simple) monitor related tests.
Changes from v2
- Check the returned value from xc_translate_foreign_address.
Changes from v1:
- Refactored the monitor test (cleanup)
- Replace the "emul-unimplemented" test with a simpler mem_access test
Petre Pi
The monitor application resets the execute permisions on a specific page
of the DOMU and handles the generated vm_event request.
Signed-off-by: Petre Pircalabu
---
docs/all-tests.dox | 1 +
tests/monitor-mem-access/Makefile | 14
tests/monitor-mem-access/main.c| 37
Currently, the VM_EVENT_INTERFACE_VERSION is determined at runtime, by
inspecting the corresponding field in a vm_event_request. This helper
opcode will query the hypervisor supported version before the vm_event
related structures and layout are set-up.
Signed-off-by: Petre Pircalabu
Currently, the VM_EVENT_INTERFACE_VERSION is determined at runtime, by
inspecting the corresponding field in a vm_event_request. This helper
opcode will query the hypervisor supported version before the vm_event
related structures and layout are set-up.
Signed-off-by: Petre Pircalabu
---
tools
Extend the framework to support (simple) monitor related tests.
Changes from v1:
- Refactored the monitor test (cleanup)
- Replace the "emul-unimplemented" test with a simpler mem_access test
Petre Pircalabu (4):
xtf-runner: split into logical components
xtf: Add executable test c
Makefile using the
TEST-EXTRA-INFO variable.
Signed-off-by: Petre Pircalabu
---
Makefile | 6 +-
build/common.mk | 22 ++-
build/files.mk| 3 +
build/gen.mk | 12 ++
common/report.c | 8 -
docs/all-tests.dox| 3 +
The Executable test class runs on host (dom0). The class spawns a
process and searches the program output(stdio) for a specific pattern.
Signed-off-by: Petre Pircalabu
---
xtf/__init__.py| 2 +-
xtf/executable_test.py | 83 ++
xtf
tance. Simple test which loads a XEN DomU
and checks the output for a specific pattern.
- toolstack abstraction using a wrapper class (e.g.
(xtf.xl_domu.XLDomU)
Signed-off-by: Petre Pircalabu
---
build/gen.mk | 13 ++-
build/mkinfo.py | 84 +++---
xtf-runner| 334
The monitor application resets the execute permisions on a specific page
of the DOMU and handles the generated vm_event request.
Signed-off-by: Petre Pircalabu
---
docs/all-tests.dox | 1 +
tests/monitor-mem-access/Makefile | 14
tests/monitor-mem-access/main.c| 37
Decouple the VM Event interface from the ring implementation.
---
xen/arch/arm/mem_access.c | 2 +-
xen/arch/x86/mm/mem_access.c | 4 +-
xen/arch/x86/mm/mem_paging.c | 2 +-
xen/arch/x86/mm/mem_sharing.c | 5 +-
xen/arch/x86/mm/p2m.c | 10 +-
xen/common/mem_access.c |
Signed-off-by: Petre Pircalabu
---
tools/libxc/xc_private.c | 3 +++
xen/common/kernel.c | 3 +++
xen/include/public/version.h | 3 +++
3 files changed, 9 insertions(+)
diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c
index 90974d5..9b983e0 100644
--- a/tools/libxc
foreignmemory_map_resource interface. Unlike the current implementation,
the allocated pages are not part of the target DomU, so they will not be
reclaimed when the vm_event domain is disabled.
Signed-off-by: Petre Pircalabu
---
tools/libxc/include/xenctrl.h | 11 +
tools/libxc/xc_monitor.c | 36 +++
tools
Define the type for each of the supported vm_event rings (paging,
monitor and sharing) and replace the ring param field with this type.
Replace XEN_DOMCTL_VM_EVENT_OP_ occurrences with their corresponding
XEN_VM_EVENT_TYPE_ counterpart.
Signed-off-by: Petre Pircalabu
---
tools/libxc
xc_memshr_ring_enable/disable and xc_memshr_domain_resume.
Signed-off-by: Petre Pircalabu
---
tools/libxc/include/xenctrl.h | 49 +
tools/libxc/xc_mem_paging.c | 23 +---
tools/libxc/xc_memshr.c | 34 ---
tools/libxc
your feedback would be a great
assistance.
Petre Pircalabu (6):
tools/libxc: Consistent usage of xc_vm_event_* interface
tools/libxc: Define VM_EVENT type
vm_event: Refactor vm_event_domain implementation
vm_event: Use slotted channels for sync requests.
xen-access: add support for
Signed-off-by: Petre Pircalabu
---
tools/tests/xen-access/xen-access.c | 545 +---
1 file changed, 441 insertions(+), 104 deletions(-)
diff --git a/tools/tests/xen-access/xen-access.c
b/tools/tests/xen-access/xen-access.c
index 6aaee16..b09be6c 100644
--- a
The Executable test class runs on host (dom0). The class spawns a
process and searches the program output(stdio) for a specific pattern.
Signed-off-by: Petre Pircalabu
---
xtf/__init__.py| 2 +-
xtf/executable_test.py | 83 ++
xtf
Makefile using the
TEST-EXTRA-INFO variable.
Signed-off-by: Petre Pircalabu
---
Makefile | 6 +-
build/common.mk | 22 ++-
build/files.mk| 3 +
build/gen.mk | 12 ++
docs/all-tests.dox| 5 +
include/monitor/
EMUL_UNIMPLEMENTED
request which will be handled by enabling execution on that specific
page (altp2m) and singlestepping that instruction.
The test will be successfull if the instruction can be executed
correctly.
Signed-off-by: Petre Pircalabu
---
docs/all-tests.dox | 2 +-
tests
Extend the framework to support (simple) monitor related tests.
Petre Pircalabu (4):
xtf-runner: split into logical components
xtf: Add executable test class
xtf: Add monitor test class
xtf: Add emul-unimpl test
Makefile | 6 +-
build/common.mk
tance. Simple test which loads a XEN DomU
and checks the output for a specific pattern.
- toolstack abstraction using a wrapper class (e.g.
(xtf.xl_domu.XLDomU)
Signed-off-by: Petre Pircalabu
---
build/gen.mk | 13 ++-
build/mkinfo.py | 84 +++---
xtf-runner| 334
On Tue, 2018-09-18 at 06:58 -0600, Jan Beulich wrote:
> > > > On 13.09.18 at 17:02, wrote:
> >
> > --- a/xen/arch/x86/domain_page.c
> > +++ b/xen/arch/x86/domain_page.c
> > @@ -331,10 +331,9 @@ void *__map_domain_pages_global(const struct
> > page_info *pg, unsigned int nr)
> > {
> > mfn_t
On Mon, 2018-09-17 at 15:41 +0100, Andrew Cooper wrote:
> On 13/09/18 16:02, Petre Pircalabu wrote:
> > In high throughput introspection scenarios where lots of monitor
> > vm_events are generated, the ring buffer can fill up before the
> > monitor
> > application gets
On Vi, 2018-09-14 at 03:09 -0600, Jan Beulich wrote:
> >
> > >
> > > >
> > > > On 13.09.18 at 17:01, wrote:
> > The missing uninstall target breaks the top 'tools' uninstall
> > target.
> Missing?
>
> >
> > --- a/tools/tests/x86_emulator/Makefile
> > +++ b/tools/tests/x86_emulator/Makefile
>
On Vi, 2018-09-14 at 03:14 -0600, Jan Beulich wrote:
> >
> > >
> > > >
> > > > On 13.09.18 at 17:01, wrote:
> > --- a/xen/include/public/domctl.h
> > +++ b/xen/include/public/domctl.h
> > @@ -757,10 +757,17 @@ struct xen_domctl_gdbsx_domstatus {
> >
> > /*
> > * There are currently three r
On Jo, 2018-09-13 at 10:42 -0600, Tamas K Lengyel wrote:
> On Thu, Sep 13, 2018 at 9:02 AM Petre Pircalabu
> wrote:
> >
> >
> > In high throughput introspection scenarios where lots of monitor
> > vm_events are generated, the ring buffer can fill up before the
>
This series enables the vm_event ring to use buffers larger than 4K.
Petre Pircalabu (4):
x86_emulator: Add PHONY uninstall target
tools/libxc: Define VM_EVENT type
x86: Add map_domain_pages_global
vm_event: Add support for multi-page ring buffer
tools/libxc/include/xenctrl.h
Define the type for each of the supported vm_event rings (paging,
monitor and sharing) and replace the ring param field with this type.
Signed-off-by: Petre Pircalabu
---
tools/libxc/xc_monitor.c| 2 +-
tools/libxc/xc_private.h| 6 +--
tools/libxc/xc_vm_event.c | 90
aimed when the monitor is
disabled.
Signed-off-by: Petre Pircalabu
---
tools/libxc/include/xenctrl.h | 2 +
tools/libxc/xc_monitor.c| 7 +
tools/libxc/xc_private.h| 3 +
tools/libxc/xc_vm_event.c | 49 +++
tools/tests/xen-access/xen-access.c
The missing uninstall target breaks the top 'tools' uninstall target.
Signed-off-by: Petre Pircalabu
---
tools/tests/x86_emulator/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/tests/x86_emulator/Makefile
b/tools/tests/x86_emulator/Makefile
index e8a3e90..8696
Create a single mapping for multiple domain pages.
Signed-off-by: Petre Pircalabu
---
tools/libxc/xc_vm_event.c | 2 +-
xen/arch/x86/domain_page.c| 22 ++
xen/include/xen/domain_page.h | 9 +
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a
- to alter these settings), in the absence of an
official position on the issue from the original altp2m designers.
Signed-off-by: Razvan Cojocaru
Signed-off-by: Petre Pircalabu
Acked-by: Wei Liu
---
Changed since v2:
* Added support for compat arguments translation
Changed since v3
- to alter these settings), in the absence of an
official position on the issue from the original altp2m designers.
Signed-off-by: Razvan Cojocaru
Signed-off-by: Petre Pircalabu
---
Changed since v2:
* Added support for compat arguments translation
Changed since v3:
* Replaced
- to alter these settings), in the absence of an
official position on the issue from the original altp2m designers.
Signed-off-by: Razvan Cojocaru
Signed-off-by: Petre Pircalabu
---
Changed since v2:
* Added support for compat arguments translation
Changed since v3:
* Replaced
64 matches
Mail list logo