Re: [PATCH] tools: Improve signal handling in xen-vmtrace

2021-02-26 Thread Hubert Jasudowicz
On 2021-02-26, Hubert Jasudowicz wrote: > Make sure xen-vmtrace exits cleanly in case SIGPIPE is sent. This can > happen when piping the output to some other program. > > Additionaly, add volatile qualifier to interrupted flag to avoid > it being optimized away by the compiler. >

[PATCH] tools: Improve signal handling in xen-vmtrace

2021-02-26 Thread Hubert Jasudowicz
Make sure xen-vmtrace exits cleanly in case SIGPIPE is sent. This can happen when piping the output to some other program. Additionaly, add volatile qualifier to interrupted flag to avoid it being optimized away by the compiler. Signed-off-by: Hubert Jasudowicz --- tools/misc/xen-vmtrace.c | 5

[PATCH][4.15] tools: Fix typo in xc_vmtrace_set_option comment

2021-02-25 Thread Hubert Jasudowicz
Signed-off-by: Hubert Jasudowicz --- tools/include/xenctrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/xenctrl.h b/tools/include/xenctrl.h index 0efcdae8b4..318920166c 100644 --- a/tools/include/xenctrl.h +++ b/tools/include/xenctrl.h @@ -1644,7 +1644,7

Re: [PATCH] x86/vmx: Remove IO bitmap from minimal VMX requirements

2021-01-20 Thread Hubert Jasudowicz
On 2021-01-19, Jan Beulich wrote: > On 15.01.2021 15:44, Roger Pau Monné wrote: > > On Fri, Jan 15, 2021 at 03:30:50PM +0100, Hubert Jasudowicz wrote: > >> This patch is a result of a downstream bug report[1]. Xen fails to > >> create a HVM domain while running under VMw

[PATCH] x86/vmx: Remove IO bitmap from minimal VMX requirements

2021-01-15 Thread Hubert Jasudowicz
Apple hypervisor API doesn't support this feature[2]. Move this bit from minimal required features to optional. [1] https://github.com/CERT-Polska/drakvuf-sandbox/issues/418 [2] https://developer.apple.com/documentation/hypervisor/cpu_based_io_bitmaps Signed-off-by: Hubert Jasudowicz --- xen

[PATCH] tools/firmware: Fix typo in uninstall target

2020-08-18 Thread Hubert Jasudowicz
When ipxe.bin is missing, make uninstall will fail due to wrong switch (-r) passed to rm command. Replace it with -f. Signed-off-by: Hubert Jasudowicz --- tools/firmware/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware/Makefile b/tools/firmware

Re: [PATCH] x86/cpuid: Expose number of vCPUs in CPUID.1.EBX

2020-07-03 Thread Hubert Jasudowicz
On 6/30/20 10:49 PM, Andrew Cooper wrote: > On 19/06/2020 15:19, Hubert Jasudowicz wrote: >> On 6/18/20 6:51 PM, Andrew Cooper wrote: >>> On 18/06/2020 17:22, Hubert Jasudowicz wrote: >>>> When running under KVM (or presumably other hypervisors) we enable >&

Re: [PATCH v4 00/10] Implement support for external IPT monitoring

2020-06-30 Thread Hubert Jasudowicz
t; xen/include/public/domctl.h | 27 ++ > xen/include/public/memory.h | 1 + > xen/include/xen/domain.h| 2 + > xen/include/xen/sched.h | 4 + > 31 files changed, 1094 insertions(+), 4 deletions(-) > create mode 100644 tools/libxc/xc_vmtrace.c > create mode 100644 tools/proctrace/COPYING > create mode 100644 tools/proctrace/Makefile > create mode 100644 tools/proctrace/proctrace.c > FYI, this patchset is also available at: https://github.com/icedevml/xen/tree/ipt-patch-v4 Hubert Jasudowicz

Re: [PATCH] x86/cpuid: Expose number of vCPUs in CPUID.1.EBX

2020-06-19 Thread Hubert Jasudowicz
On 6/18/20 6:51 PM, Andrew Cooper wrote: > On 18/06/2020 17:22, Hubert Jasudowicz wrote: >> When running under KVM (or presumably other hypervisors) we enable >> the CPUID.1.EDX.HTT flag, thus indicating validity of CPUID.1.EBX[23:16] >> - maximum number of logical processors

[PATCH] x86/cpuid: Expose number of vCPUs in CPUID.1.EBX

2020-06-18 Thread Hubert Jasudowicz
fixes running nested Windows (tested on 7 and 10) with KVM as L0 hypervisor, by setting the value to maximum number of vCPUs in domain. Signed-off-by: Hubert Jasudowicz --- xen/arch/x86/cpuid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/cpuid.c b/xen/arch