[Xen-devel] [linux-3.18 test] 112942: trouble: blocked/broken/fail/pass

2017-08-29 Thread osstest service owner
flight 112942 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/112942/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-pvops 3 capture-logs broken REGR. vs. 112102

Re: [Xen-devel] [PATCH v2 04/15] x86: implement data structure and CPU init flow for MBA

2017-08-29 Thread Yi Sun
On 17-08-29 07:58:04, Jan Beulich wrote: > >>> On 29.08.17 at 15:44, wrote: > > On Thu, Aug 24, 2017 at 09:14:38AM +0800, Yi Sun wrote: > >> @@ -80,9 +86,23 @@ enum psr_feat_type { > >> * cos_reg_val[1] (Code). > >> */ > >> struct feat_node { > >> -/* cos_max and cbm_len are

Re: [Xen-devel] [PATCH v2 03/15] x86: rename 'cbm_type' to 'psr_val_type' to make it general

2017-08-29 Thread Yi Sun
On 17-08-29 13:15:24, Roger Pau Monn� wrote: > On Thu, Aug 24, 2017 at 09:14:37AM +0800, Yi Sun wrote: > > This patch renames 'cbm_type' to 'psr_val_type' to make it be general. > > I'm unsure whether the '_val_' is really needed here. AFAICT it > doesn't add any meaningful information to the defi

Re: [Xen-devel] [RFC PATCH 0/5] Extend resources to support more vcpus in single VM

2017-08-29 Thread Lan Tianyu
On 2017年08月29日 16:49, Jan Beulich wrote: On 29.08.17 at 06:38, wrote: >> On 2017年08月25日 22:10, Meng Xu wrote: >>> How many VCPUs for a single VM do you want to support with this patch set? >> >> Hi Meng: >> Sorry for later response. We hope to increase max vcpu number to 512. >> This als

Re: [Xen-devel] [PATCH v2 05/15] x86: implement get hw info flow for MBA

2017-08-29 Thread Yi Sun
On 17-08-29 16:01:00, Roger Pau Monn� wrote: > On Thu, Aug 24, 2017 at 09:14:39AM +0800, Yi Sun wrote: > > diff --git a/xen/arch/x86/sysctl.c b/xen/arch/x86/sysctl.c > > index df54d38..cbab85a 100644 > > --- a/xen/arch/x86/sysctl.c > > +++ b/xen/arch/x86/sysctl.c > > @@ -214,6 +214,25 @@ long arch_

Re: [Xen-devel] [PATCH v2 04/15] x86: implement data structure and CPU init flow for MBA

2017-08-29 Thread Yi Sun
On 17-08-29 14:44:32, Roger Pau Monn� wrote: > On Thu, Aug 24, 2017 at 09:14:38AM +0800, Yi Sun wrote: > > +#define MBA_LINEAR (1u << 2) > > Why is this shifted by 2? > This is used to mask ECX register to know if MBA linear mode is set or not. > > +union { > > +struct { > >

Re: [Xen-devel] [PATCH v2 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-08-29 Thread Yi Sun
On 17-08-29 13:00:19, Roger Pau Monn� wrote: > On Thu, Aug 24, 2017 at 09:14:36AM +0800, Yi Sun wrote: > > --- a/xen/arch/x86/domctl.c > > +++ b/xen/arch/x86/domctl.c > > @@ -1439,60 +1439,60 @@ long arch_do_domctl( > > } > > break; > > > > -case XEN_DOMCTL_psr_cat_op: > > -

Re: [Xen-devel] [PATCH v2 01/15] docs: create Memory Bandwidth Allocation (MBA) feature document

2017-08-29 Thread Yi Sun
Thanks a lot for the review comments! On 17-08-29 12:46:49, Roger Pau Monn� wrote: > On Thu, Aug 24, 2017 at 09:14:35AM +0800, Yi Sun wrote: > > +# Overview > > + > > +The Memory Bandwidth Allocation (MBA) feature provides indirect and > > approximate > > +control over memory bandwidth available

Re: [Xen-devel] Unable to boot Dom0 on Hikey

2017-08-29 Thread Saeed Mirzamohammadi
I just got it to work. As that link said I disabled USB_DWC2 in the kernel and now it boots! I hope it works fine later. Thanks. -- Saeed Mirzamohammadi Ph.D. candidate Computer Science Department University of California, Irvine On Tue, Aug 29, 2017 at 11:55 AM, Saeed Mirzamohammadi wrote: > T

[Xen-devel] [seabios test] 112938: tolerable FAIL - PUSHED

2017-08-29 Thread osstest service owner
flight 112938 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/112938/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-win7-amd64 17 guest-stopfail like 111687 test-amd64-amd64-xl-qemuu-ws16-amd64 10 w

[Xen-devel] [xen-unstable test] 112937: regressions - trouble: blocked/broken/fail/pass

2017-08-29 Thread osstest service owner
flight 112937 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/112937/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu 7 xen-bootfail REGR. vs. 112809 test-amd64-i386-xl

Re: [Xen-devel] [PATCH 00/13] mmu_notifier kill invalidate_page callback

2017-08-29 Thread Jerome Glisse
On Tue, Aug 29, 2017 at 05:11:24PM -0700, Linus Torvalds wrote: > On Tue, Aug 29, 2017 at 4:54 PM, Jérôme Glisse wrote: > > > > Note this is barely tested. I intend to do more testing of next few days > > but i do not have access to all hardware that make use of the mmu_notifier > > API. > > Than

Re: [Xen-devel] [PATCH 00/13] mmu_notifier kill invalidate_page callback

2017-08-29 Thread Linus Torvalds
On Tue, Aug 29, 2017 at 4:54 PM, Jérôme Glisse wrote: > > Note this is barely tested. I intend to do more testing of next few days > but i do not have access to all hardware that make use of the mmu_notifier > API. Thanks for doing this. > First 2 patches convert existing call of mmu_notifier_in

[Xen-devel] [PATCH 11/13] xen/gntdev: update to new mmu_notifier semantic

2017-08-29 Thread Jérôme Glisse
Call to mmu_notifier_invalidate_page() are replaced by call to mmu_notifier_invalidate_range() and thus call are bracketed by call to mmu_notifier_invalidate_range_start()/end() Remove now useless invalidate_page callback. Signed-off-by: Jérôme Glisse Cc: Konrad Rzeszutek Wilk Cc: Roger Pau Mon

[Xen-devel] [PATCH 00/13] mmu_notifier kill invalidate_page callback

2017-08-29 Thread Jérôme Glisse
(Sorry for so many list cross-posting and big cc) Please help testing ! The invalidate_page callback suffered from 2 pitfalls. First it used to happen after page table lock was release and thus a new page might have been setup for the virtual address before the call to invalidate_page(). This is

[Xen-devel] [linux-linus test] 112920: tolerable trouble: blocked/broken/fail/pass - PUSHED

2017-08-29 Thread osstest service owner
flight 112920 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/112920/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-xl-qemuu-win7-amd64 17 guest-stop fail REGR. vs. 112910 Tests which did not succeed,

[Xen-devel] [ovmf baseline-only test] 72036: all pass

2017-08-29 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 72036 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72036/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 2f208e59e4b994978a1a24affc306eb694a00327 baseline v

[Xen-devel] Mailing List Broken? Unsubscribed?

2017-08-29 Thread Gary R Hook
Hm. For some odd reason I stopped receiving xen-devel mail a while ago. I never unsubscribed, never turned anything off (to the best of my knowledge). Now a co-worker is unable to subscribe. What's up with that? Any ideas? Gary ___ Xen-devel mailing

[Xen-devel] [xen-unstable-smoke test] 112945: tolerable trouble: broken/pass - PUSHED

2017-08-29 Thread osstest service owner
flight 112945 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/112945/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 1 build-check(1) blocked n/a build-arm64-pvops 2 hos

[Xen-devel] [PATCH v2 1/2] Fix util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-08-29 Thread Konrad Rzeszutek Wilk
Commit d33045ce7ffcb7c1e4a60c14d5ca64b36e3c5abe introduced the support for this, but it does not work under x86 (as it stops 20_linux_xen from running). The 20_linux_xen is run under a shell and any exits from within it: (For example on x86): + /usr/bin/grub2-file --is-arm64-efi /boot/xen-4.9.0.g

[Xen-devel] [PATCH v2] Fix ARM multiboot2 breaking Fedora.

2017-08-29 Thread Konrad Rzeszutek Wilk
Since v1 [http://lists.gnu.org/archive/html/grub-devel/2017-08/msg00073.html] - Fixed up patch with failing invocation, - Redid patch #2 per Daniel's instructions. Hey, The first patch: [PATCH 1/2] Fix util/grub.d/20_linux_xen.in: Add xen_boot command is a fix discovered on Fedora rawhide wh

[Xen-devel] [PATCH v2 2/2] Use grub-file to figure out whether multiboot2 should be used for Xen.gz

2017-08-29 Thread Konrad Rzeszutek Wilk
The multiboot2 is much more preferable than multiboot. Especiall if booting under EFI where multiboot does not have the functionality to pass ImageHandler. Signed-off-by: Konrad Rzeszutek Wilk --- v2: Rebase on top of d33045ce7ffcb7c1e4a60c14d5ca64b36e3c5abe v3: Add 'else' in the conditional.

[Xen-devel] [ovmf test] 112919: all pass - PUSHED

2017-08-29 Thread osstest service owner
flight 112919 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112919/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 2f208e59e4b994978a1a24affc306eb694a00327 baseline version: ovmf 51ce27fd8c58384548085

[Xen-devel] [xen-4.7-testing test] 112917: regressions - trouble: blocked/broken/fail/pass

2017-08-29 Thread osstest service owner
flight 112917 xen-4.7-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/112917/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-xtf-amd64-amd64-4 48 xtf/test-hvm64-lbr-tsx-vmentry fail REGR. vs. 112851 Tests which are

Re: [Xen-devel] [Xen-users] UEFI Secure Boot Xen 4.9

2017-08-29 Thread Daniel Kiper
Hey Tamas, Sorry for late reply. I was on vacation. On Tue, Aug 22, 2017 at 09:01:06PM -0600, Tamas K Lengyel wrote: > On Tue, May 16, 2017 at 5:04 AM, Daniel Kiper wrote: [...] > > UEFI will verify shim secure boot signature then shim will verify GRUB2 > > signature then GRUB2 will verify (wi

Re: [Xen-devel] x86: PIE support and option to extend KASLR randomization

2017-08-29 Thread Thomas Garnier
On Fri, Aug 25, 2017 at 8:05 AM, Thomas Garnier wrote: > On Fri, Aug 25, 2017 at 1:04 AM, Ingo Molnar wrote: >> >> * Thomas Garnier wrote: >> >>> With the fix for function tracing, the hackbench results have an >>> average of +0.8 to +1.4% (from +8% to +10% before). With a default >>> configurat

[Xen-devel] [libvirt test] 112918: tolerable trouble: blocked/broken/pass - PUSHED

2017-08-29 Thread osstest service owner
flight 112918 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/112918/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-libvirt-xsm 1 build-check(1) blocked n/a build-arm64-libvirt 1 build-check(1)

Re: [Xen-devel] [PATCH 2/2] Use grub-file to figure out whether multiboot2 should be used for Xen.gz

2017-08-29 Thread Daniel Kiper
On Mon, Aug 28, 2017 at 02:40:15PM -0400, Konrad Rzeszutek Wilk wrote: > The multiboot2 is much more preferable than multiboot. Especiall > if booting under EFI where multiboot does not have the functionality > to pass ImageHandler. > > Signed-off-by: Konrad Rzeszutek Wilk > --- > v2: Rebase on to

Re: [Xen-devel] [PATCH 1/2] Fix util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-08-29 Thread Daniel Kiper
On Mon, Aug 28, 2017 at 02:42:18PM -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Aug 28, 2017 at 02:40:14PM -0400, Konrad Rzeszutek Wilk wrote: > > Commit d33045ce7ffcb7c1e4a60c14d5ca64b36e3c5abe introduced > > the support for this, but it does not work under x86 (as it stops > > 20_linux_xen from

Re: [Xen-devel] Unable to boot Dom0 on Hikey

2017-08-29 Thread Saeed Mirzamohammadi
Thanks for your feedback. Yes, I'm using "HiKey" that I recently bought. I tried RELEASE-4.9.0 and RELEASE-4.8.0 and RELEASE-4.7.3. None of them boots. There were little differences. Xen 4.8 printed one line more and stopped: ~~~ ... (XEN) Freed 268kB init memory. (XEN) Hardware Dom0 sh

[Xen-devel] [xen-unstable-smoke test] 112941: tolerable trouble: broken/pass - PUSHED

2017-08-29 Thread osstest service owner
flight 112941 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/112941/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 1 build-check(1) blocked n/a build-arm64-pvops 2 hos

[Xen-devel] [xen-4.8-testing test] 112916: regressions - trouble: blocked/broken/fail/pass

2017-08-29 Thread osstest service owner
flight 112916 xen-4.8-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/112916/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-xtf-amd64-amd64-1 48 xtf/test-hvm64-lbr-tsx-vmentry fail REGR. vs. 112871 Regressions whi

[Xen-devel] [xen-4.9-testing test] 112915: regressions - trouble: blocked/broken/fail/pass

2017-08-29 Thread osstest service owner
flight 112915 xen-4.9-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/112915/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-win7-amd64 16 guest-localmigrate/x10 fail REGR. vs. 112872 Regressio

Re: [Xen-devel] [PATCH v5] common/vm_event: Initialize vm_event lists on domain creation

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 11:38:12AM -0600, Tamas K Lengyel wrote: > On Tue, Aug 29, 2017 at 9:59 AM, Wei Liu wrote: > > On Tue, Aug 29, 2017 at 05:17:05PM +0300, Alexandru Isaila wrote: > > [...] > >> > >> /** > >> diff --git a/xen/common/domain.c b/xen/common/domain.c > >> index b22aacc..30f507b

Re: [Xen-devel] [PATCH v5] common/vm_event: Initialize vm_event lists on domain creation

2017-08-29 Thread Tamas K Lengyel
On Tue, Aug 29, 2017 at 9:59 AM, Wei Liu wrote: > On Tue, Aug 29, 2017 at 05:17:05PM +0300, Alexandru Isaila wrote: > [...] >> >> /** >> diff --git a/xen/common/domain.c b/xen/common/domain.c >> index b22aacc..30f507b 100644 >> --- a/xen/common/domain.c >> +++ b/xen/common/domain.c >> @@ -363,9 +

[Xen-devel] [linux-3.18 test] 112914: trouble: blocked/broken/fail/pass

2017-08-29 Thread osstest service owner
flight 112914 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/112914/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-pvops 3 capture-logs broken REGR. vs. 112102

Re: [Xen-devel] [PATCH] xen/mmu: set MMU_NORMAL_PT_UPDATE in remap_area_mfn_pte_fn

2017-08-29 Thread Boris Ostrovsky
On 08/29/2017 06:27 AM, Wei Liu wrote: > No functional change because MMU_NORMAL_PT_UPDATE is in fact 0. Set it > to make the code consistent with similar code in mmu_pv.c > > Signed-off-by: Wei Liu > --- > arch/x86/xen/mmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[Xen-devel] [PATCH 1/5] mm: Initialize lowmem virq when boot-time scrubbing is disabled

2017-08-29 Thread Boris Ostrovsky
scrub_heap_pages() does early return if boot-time scrubbing is disabled, neglecting to initialize lowmem VIRQ. Because setup_low_mem_virq() doesn't logically belong in scrub_heap_pages() we put them both into the newly added heap_init_late(). Signed-off-by: Boris Ostrovsky --- CC: Julien Grall

[Xen-devel] [PATCH 5/5] mm: Don't hold heap lock in alloc_heap_pages() longer than necessary

2017-08-29 Thread Boris Ostrovsky
Once pages are removed from the heap we don't need to hold the heap lock. It is especially useful to drop it for an unscrubbed buddy since we will be scrubbing it. Signed-off-by: Boris Ostrovsky Reviewed-by: Jan Beulich --- Changes in v2: * Moved spin_unlock() after d->last_alloc_node assignment

[Xen-devel] [PATCH 0/5] Scrubbing updates

2017-08-29 Thread Boris Ostrovsky
First patch fixes a long-standing bug where a low memory monitor is not initialized if boottime scrubbing is turned off. Patch 2 is new. The other threee patches are performace and readability optimizations. Boris Ostrovsky (5): mm: Initialize lowmem virq when boot-time scrubbing is disabled

[Xen-devel] [PATCH 2/5] mm: Change boot_scrub_done definition

2017-08-29 Thread Boris Ostrovsky
Rename it to the more appropriate scrub_debug and define as a macro for !CONFIG_SCRUB_DEBUG. This will allow us to get rid of some ifdefs (here and in the subsequent patch). Signed-off-by: Boris Ostrovsky Suggested-by: Jan Beulich --- New in v2 xen/common/page_alloc.c | 15 ++- 1 f

[Xen-devel] [PATCH 3/5] mm: Don't poison a page if scrub_debug is off

2017-08-29 Thread Boris Ostrovsky
If scrub_debug is off we don't check pages in check_one_page(). Thus there is no reason to ever poison them. Signed-off-by: Boris Ostrovsky Reviewed-by: Wei Liu --- Changes in v2: * s/boot_scrub_done/scrub_debug xen/common/page_alloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen

[Xen-devel] [PATCH 4/5] mm: Don't request scrubbing until dom0 is running

2017-08-29 Thread Boris Ostrovsky
There is no need to scrub pages freed during dom0 construction since heap will be scrubbed once dom0 is ready (by scrub_heap_pages()). Signed-off-by: Boris Ostrovsky --- Changes in v2: * Removed '#ifdef CONFIG_SCRUB_DEBUG' xen/common/page_alloc.c | 6 +- 1 file changed, 1 insertion(+), 5 de

[Xen-devel] [PATCH v4] hvmloader, libxl: use the correct ACPI settings depending on device model

2017-08-29 Thread Igor Druzhinin
We need to choose ACPI tables properly depending on the device model version we are running. Previously, this decision was made by BIOS type specific code in hvmloader, e.g. always load QEMU traditional specific tables if it's ROMBIOS and always load QEMU Xen specific tables if it's SeaBIOS. This

Re: [Xen-devel] [PATCH v3 6/6] xen: try to prevent idle timer from firing too often.

2017-08-29 Thread George Dunlap
On 08/18/2017 07:04 PM, Dario Faggioli wrote: > Idea is: the more CPUs are still active in a grace period, > the more we can wait to check whether it's time to invoke > the callbacks (on those CPUs that have already quiesced, > are idle, and have callbacks queued). > > What we're trying to avoid i

Re: [Xen-devel] [PATCH v3 5/6] xen: RCU: avoid busy waiting until the end of grace period.

2017-08-29 Thread George Dunlap
On 08/22/2017 02:04 PM, Jan Beulich wrote: On 18.08.17 at 20:04, wrote: >> --- a/xen/arch/x86/cpu/mwait-idle.c >> +++ b/xen/arch/x86/cpu/mwait-idle.c >> @@ -741,9 +741,8 @@ static void mwait_idle(void) >> } >> >> cpufreq_dbs_timer_suspend(); >> - >> sched_tick_suspend(); >> -

Re: [Xen-devel] [PATCH v3 5/6] xen: RCU: avoid busy waiting until the end of grace period.

2017-08-29 Thread George Dunlap
On 08/18/2017 07:04 PM, Dario Faggioli wrote: > On the CPU where a callback is queued, cpu_is_haltable() > returns false (due to rcu_needs_cpu() being itself false). > That means the CPU would spin inside idle_loop(), continuously > calling do_softirq(), and, in there, continuously checking > rcu_p

Re: [Xen-devel] [PATCH v5] common/vm_event: Initialize vm_event lists on domain creation

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 05:17:05PM +0300, Alexandru Isaila wrote: [...] > > /** > diff --git a/xen/common/domain.c b/xen/common/domain.c > index b22aacc..30f507b 100644 > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -363,9 +363,6 @@ struct domain *domain_create(domid_t domid, unsig

[Xen-devel] [PATCH v2 2/5] x86/pv: map_ldt_shadow_page() cleanup

2017-08-29 Thread Andrew Cooper
Switch the return value from int to bool, to match its semantics. Switch its parameter from a frame offset to a byte offset (simplifying the sole caller) and allowing for an extra sanity check that the fault is within the LDT limit. Drop the unnecessary gmfn and okay local variables, and correct

Re: [Xen-devel] [PATCH v5] common/vm_event: Initialize vm_event lists on domain creation

2017-08-29 Thread Alexandru Stefan ISAILA
On Ma, 2017-08-29 at 09:14 -0600, Tamas K Lengyel wrote: > On Tue, Aug 29, 2017 at 8:17 AM, Alexandru Isaila > wrote: > > > > The patch splits the vm_event into three structures:vm_event_share, > > vm_event_paging, vm_event_monitor. The allocation for the > > structure is moved to vm_event_enable

[Xen-devel] [xen-unstable-smoke test] 112940: tolerable trouble: broken/pass - PUSHED

2017-08-29 Thread osstest service owner
flight 112940 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/112940/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 1 build-check(1) blocked n/a build-arm64-pvops 2 hos

Re: [Xen-devel] [PATCH v5] common/vm_event: Initialize vm_event lists on domain creation

2017-08-29 Thread Tamas K Lengyel
On Tue, Aug 29, 2017 at 8:17 AM, Alexandru Isaila wrote: > The patch splits the vm_event into three structures:vm_event_share, > vm_event_paging, vm_event_monitor. The allocation for the > structure is moved to vm_event_enable so that it can be > allocated/init when needed and freed in vm_event_di

Re: [Xen-devel] [PATCH v10] x86/hvm: Allow guest_request vm_events coming from userspace

2017-08-29 Thread Tamas K Lengyel
On Tue, Aug 29, 2017 at 3:23 AM, Alexandru Isaila wrote: > In some introspection usecases, an in-guest agent needs to communicate > with the external introspection agent. An existing mechanism is > HVMOP_guest_request_vm_event, but this is restricted to kernel usecases > like all other hypercalls

Re: [Xen-devel] [PATCH v10] x86/hvm: Allow guest_request vm_events coming from userspace

2017-08-29 Thread Tamas K Lengyel
On Tue, Aug 29, 2017 at 3:36 AM, Jan Beulich wrote: On 29.08.17 at 11:23, wrote: >> In some introspection usecases, an in-guest agent needs to communicate >> with the external introspection agent. An existing mechanism is >> HVMOP_guest_request_vm_event, but this is restricted to kernel use

Re: [Xen-devel] [PATCH v2 06/15] x86: implement get value interface for MBA

2017-08-29 Thread Roger Pau Monné
On Thu, Aug 24, 2017 at 09:14:40AM +0800, Yi Sun wrote: > This patch implements get value domctl interface for MBA. > > Signed-off-by: Yi Sun Reviewed-by: Roger Pau Monné Just one minor comment... > --- > xen/arch/x86/domctl.c | 7 +++ > xen/include/public/domctl.h | 1 + > 2 files

Re: [Xen-devel] [PATCH v2 05/15] x86: implement get hw info flow for MBA

2017-08-29 Thread Roger Pau Monné
On Thu, Aug 24, 2017 at 09:14:39AM +0800, Yi Sun wrote: > diff --git a/xen/arch/x86/sysctl.c b/xen/arch/x86/sysctl.c > index df54d38..cbab85a 100644 > --- a/xen/arch/x86/sysctl.c > +++ b/xen/arch/x86/sysctl.c > @@ -214,6 +214,25 @@ long arch_do_sysctl( > break; > } > > +

Re: [Xen-devel] [PATCH v3 4/6] xen: RCU: don't let a CPU with a callback go idle.

2017-08-29 Thread George Dunlap
On 08/18/2017 07:04 PM, Dario Faggioli wrote: > If a CPU has a callback queued, it must be ready to invoke > it, as soon as all the other CPUs involved in the grace period > has gone through a quiescent state. > > But if we let such CPU go idle, we can't really tell when (if!) > it will realize th

Re: [Xen-devel] [PATCH v3 3/6] xen: RCU/x86/ARM: discount CPUs that were idle when grace period started.

2017-08-29 Thread George Dunlap
On 08/18/2017 07:04 PM, Dario Faggioli wrote: > Xen is a tickless (micro-)kernel, i.e., when a CPU becomes > idle there is no timer tick that will periodically wake the > CPU up. > OTOH, when we imported RCU from Linux, Linux was (on x86) a > ticking kernel, i.e., there was a periodic timer tick al

Re: [Xen-devel] [PATCH 2/5] x86/pv: map_ldt_shadow_page() cleanup

2017-08-29 Thread Andrew Cooper
On 29/08/17 15:14, Jan Beulich wrote: On 29.08.17 at 13:19, wrote: >> --- a/xen/arch/x86/mm.c >> +++ b/xen/arch/x86/mm.c >> @@ -667,45 +667,49 @@ static int alloc_segdesc_page(struct page_info *page) >> } >> >> >> -/* Map shadow page at offset @off. */ >> -int map_ldt_shadow_page(unsigne

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread Paul Durrant
> -Original Message- > From: George Dunlap > Sent: 29 August 2017 15:38 > To: Paul Durrant > Cc: Stefano Stabellini ; Wei Liu > ; Andrew Cooper ; Tim > (Xen.org) ; Jan Beulich ; Ian Jackson > ; xen-de...@lists.xenproject.org; Roger Pau > Monne > Subject: Re: [Xen-devel] [PATCH v2 REPOST 1

Re: [Xen-devel] Is:livepatch-build-tools.git declare it supported? Was:Re: [PATCH for-4.9] livepatch: Declare live patching as a supported feature

2017-08-29 Thread George Dunlap
On 08/29/2017 03:44 PM, Konrad Rzeszutek Wilk wrote: > .giant snip.. >> Indeed; and as I think I said before, I think we need to move forward >> with getting a statement on livepatching in, and since most of the >> voices involved in this conversation seem to be in favor of saying >> livepatch-tool

Re: [Xen-devel] Is:livepatch-build-tools.git declare it supported? Was:Re: [PATCH for-4.9] livepatch: Declare live patching as a supported feature

2017-08-29 Thread Andrew Cooper
On 29/08/17 15:44, Konrad Rzeszutek Wilk wrote: > .giant snip.. >> Indeed; and as I think I said before, I think we need to move forward >> with getting a statement on livepatching in, and since most of the >> voices involved in this conversation seem to be in favor of saying >> livepatch-tools are

Re: [Xen-devel] Is:livepatch-build-tools.git declare it supported? Was:Re: [PATCH for-4.9] livepatch: Declare live patching as a supported feature

2017-08-29 Thread Konrad Rzeszutek Wilk
.giant snip.. > Indeed; and as I think I said before, I think we need to move forward > with getting a statement on livepatching in, and since most of the > voices involved in this conversation seem to be in favor of saying > livepatch-tools are *not* supported, I won't object. I'm only still Than

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread George Dunlap
On Tue, Aug 29, 2017 at 3:31 PM, Paul Durrant wrote: >> -Original Message- > [snip] >> >> I'm not terribly happy with allocating out-of-band pages either. One >> >> of the advantages of the way things are done now (with the page >> >> allocated to the guest VM) is that it is more resilien

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Roger Pau Monne
On Tue, Aug 29, 2017 at 03:26:11PM +0100, Igor Druzhinin wrote: > > > On 29/08/17 14:42, Jan Beulich wrote: > On 29.08.17 at 15:24, wrote: > >> On 29/08/17 09:50, Roger Pau Monne wrote: > >>> Commit 149c6b unmasked an issue long present in Xen: the control/event > >>> block addresses provid

Re: [Xen-devel] [GIT PULL] (xen) stable/for-jens-4.13.. for 4.13-rc7 or 4.14-rc1 if you would like

2017-08-29 Thread Jens Axboe
On 08/28/2017 01:43 PM, Konrad Rzeszutek Wilk wrote: > > Hey Jens, > > Please git pull the following branch: > > git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git > stable/for-jens-4.13 > > .. which as a bug-fix when shutting down xen block backend driver with > multiple queues and

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread Paul Durrant
> -Original Message- [snip] > >> I'm not terribly happy with allocating out-of-band pages either. One > >> of the advantages of the way things are done now (with the page > >> allocated to the guest VM) is that it is more resilient to unexpected > >> events: If the domain dies before the

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread George Dunlap
On Tue, Aug 29, 2017 at 3:10 PM, Paul Durrant wrote: >> -Original Message- >> From: George Dunlap >> Sent: 29 August 2017 14:40 >> To: Paul Durrant >> Cc: Roger Pau Monne ; Stefano Stabellini >> ; Wei Liu ; Andrew Cooper >> ; Tim (Xen.org) ; Jan Beulich >> ; Ian Jackson ; xen- >> de...@li

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Igor Druzhinin
On 29/08/17 14:42, Jan Beulich wrote: On 29.08.17 at 15:24, wrote: >> On 29/08/17 09:50, Roger Pau Monne wrote: >>> Commit 149c6b unmasked an issue long present in Xen: the control/event >>> block addresses provided in the ACPI FADT table where hardcoded to the >>> V1 version. This was pape

Re: [Xen-devel] [PATCH 3/4] mm: Don't request scrubbing until dom0 is running

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 16:20, wrote: >> Yes, but please consider the "#define boot_scrub_done 0" approach >> too. > > Yes, I'll do that but I will rename boot_scrub_done to scrub_debug since > having boot_scrub_done=0 in non-debug case will not convey what it > actually is supposed to mean. Yeah, I

Re: [Xen-devel] [PATCH 5/5] x86/percpu: Misc cleanup

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 15:44, wrote: > On Tue, Aug 29, 2017 at 12:19:16PM +0100, Andrew Cooper wrote: >> * Drop unnecessary brackets. >> * Add spaces around binary operators. >> * Insert appropriate blank lines. >> * Insert a local variable block at the end. >> >> Signed-off-by: Andrew Cooper >

Re: [Xen-devel] [PATCH 4/5] x86/pv: Simplify access to the LDT/GDT ptes

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 13:19, wrote: > Rename gdt_ldt_ptes() to pv_gdt_ptes() and drop the domain parameter, as it is > incorrect to use the helper with d != v->domain. Indeed, but it was still done this way for a reason: > --- a/xen/include/asm-x86/domain.h > +++ b/xen/include/asm-x86/domain.h > @@

[Xen-devel] ARM64:Porting xen to new hardware

2017-08-29 Thread bharat gohil
Hello All I am trying to run Xen on new hardware which has two A35 and one A72 core. Xen booted intially but it hangs at *smp_call_function(setup_virt_paging_one, (void *)val, 1) *function call. Find following log of Xen booting,

Re: [Xen-devel] [PATCH 3/4] mm: Don't request scrubbing until dom0 is running

2017-08-29 Thread Boris Ostrovsky
> Yes, but please consider the "#define boot_scrub_done 0" approach > too. Yes, I'll do that but I will rename boot_scrub_done to scrub_debug since having boot_scrub_done=0 in non-debug case will not convey what it actually is supposed to mean. -boris __

Re: [Xen-devel] [PATCH 3/5] x86/pv: Consistently use typesafe helpers in all files

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 15:39, wrote: > On Tue, Aug 29, 2017 at 12:19:14PM +0100, Andrew Cooper wrote: >> Rather than having a mix of code behaviour. This requires updating >> pagetable_{get,from}_page() to use the non-overridden helpers. >> >> This requires some adjustments in priv_op_{read,write}_c

[Xen-devel] [PATCH v5] common/vm_event: Initialize vm_event lists on domain creation

2017-08-29 Thread Alexandru Isaila
The patch splits the vm_event into three structures:vm_event_share, vm_event_paging, vm_event_monitor. The allocation for the structure is moved to vm_event_enable so that it can be allocated/init when needed and freed in vm_event_disable. Signed-off-by: Alexandru Isaila --- Changes since V4:

Re: [Xen-devel] [PATCH 2/5] x86/pv: map_ldt_shadow_page() cleanup

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 13:19, wrote: > --- a/xen/arch/x86/mm.c > +++ b/xen/arch/x86/mm.c > @@ -667,45 +667,49 @@ static int alloc_segdesc_page(struct page_info *page) > } > > > -/* Map shadow page at offset @off. */ > -int map_ldt_shadow_page(unsigned int off) > +/* > + * Map a guests LDT page (a

Re: [Xen-devel] Unable to boot Dom0 on Hikey

2017-08-29 Thread Konrad Rzeszutek Wilk
On Mon, Aug 28, 2017 at 06:23:41PM -0700, Saeed Mirzamohammadi wrote: > Hi, > > I'm following instructions on https://wiki.xenproject.org/wiki/HiKey and > https://github.com/Jeeppler/xen-note/blob/master/ > arm64/hikey/hikey-xen-centos.md. And just to make sure, you are using HiKey not Hikey960.

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread Paul Durrant
> -Original Message- > From: George Dunlap > Sent: 29 August 2017 14:40 > To: Paul Durrant > Cc: Roger Pau Monne ; Stefano Stabellini > ; Wei Liu ; Andrew Cooper > ; Tim (Xen.org) ; Jan Beulich > ; Ian Jackson ; xen- > de...@lists.xenproject.org > Subject: Re: [Xen-devel] [PATCH v2 REPOST

Re: [Xen-devel] [PATCH v2 1/6] xen: in do_softirq() sample smp_processor_id() once and for all.

2017-08-29 Thread Dario Faggioli
Il 29 Ago 2017 4:03 PM, George Dunlap ha scritto: On Wed, Aug 16, 2017 at 5:45 PM, Dario Faggioli wrote: > In fact, right now, we read it at every iteration of the loop. > The reason it's done like this is how context switch was handled > on IA64 (see commit ae9bfcdc, "[XEN] Various softirq clean

Re: [Xen-devel] [PATCH v2 1/6] xen: in do_softirq() sample smp_processor_id() once and for all.

2017-08-29 Thread George Dunlap
On Wed, Aug 16, 2017 at 5:45 PM, Dario Faggioli wrote: > In fact, right now, we read it at every iteration of the loop. > The reason it's done like this is how context switch was handled > on IA64 (see commit ae9bfcdc, "[XEN] Various softirq cleanups" [1]). > > However: > 1) we don't have IA64 any

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 02:53:56PM +0100, Igor Druzhinin wrote: > On 29/08/17 14:51, Wei Liu wrote: > > On Tue, Aug 29, 2017 at 02:37:50PM +0100, Igor Druzhinin wrote: > >> On 29/08/17 14:33, Wei Liu wrote: > >>> On Tue, Aug 29, 2017 at 02:24:49PM +0100, Andrew Cooper wrote: > On 29/08/17 09:5

Re: [Xen-devel] [PATCH 1/5] x86/pv: Switch {fill, zap}_ro_mpt() to using mfn_t

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 13:19, wrote: > And update all affected callers. Fix the fill_ro_mpt() prototype to be bool > like its implementation. > > Signed-off-by: Andrew Cooper Acked-by: Jan Beulich ___ Xen-devel mailing list Xen-devel@lists.xen.org ht

Re: [Xen-devel] [RFC PATCH v2 1/7] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-08-29 Thread Konrad Rzeszutek Wilk
On Tue, Aug 29, 2017 at 11:46:35AM +, Yang Zhang wrote: > So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called in > idle path which will polling for a while before we enter the real idle > state. > > In virtualization, idle path includes several heavy operations > includes tim

Re: [Xen-devel] [PATCH v2 04/15] x86: implement data structure and CPU init flow for MBA

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 15:44, wrote: > On Thu, Aug 24, 2017 at 09:14:38AM +0800, Yi Sun wrote: >> @@ -80,9 +86,23 @@ enum psr_feat_type { >> * cos_reg_val[1] (Code). >> */ >> struct feat_node { >> -/* cos_max and cbm_len are common values for all features so far. */ >> +/* c

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 15:46, wrote: > On Tue, Aug 29, 2017 at 07:43:41AM -0600, Jan Beulich wrote: >> >>> On 29.08.17 at 15:33, wrote: >> > If I don't get a new fix by the end of today I'm going to revert Igor's >> > patch (but keep Roger's patch in tree). >> >> I'm not convinced keep the non-confl

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Igor Druzhinin
On 29/08/17 14:51, Wei Liu wrote: > On Tue, Aug 29, 2017 at 02:37:50PM +0100, Igor Druzhinin wrote: >> On 29/08/17 14:33, Wei Liu wrote: >>> On Tue, Aug 29, 2017 at 02:24:49PM +0100, Andrew Cooper wrote: On 29/08/17 09:50, Roger Pau Monne wrote: > Commit 149c6b unmasked an issue long prese

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 02:37:50PM +0100, Igor Druzhinin wrote: > On 29/08/17 14:33, Wei Liu wrote: > > On Tue, Aug 29, 2017 at 02:24:49PM +0100, Andrew Cooper wrote: > >> On 29/08/17 09:50, Roger Pau Monne wrote: > >>> Commit 149c6b unmasked an issue long present in Xen: the control/event > >>> bl

[Xen-devel] [xen-unstable-smoke test] 112939: tolerable trouble: broken/pass - PUSHED

2017-08-29 Thread osstest service owner
flight 112939 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/112939/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 1 build-check(1) blocked n/a build-arm64-pvops 2 hos

Re: [Xen-devel] [PATCH] x86/pv: Fill all Xen slots in init_guest_l4_table()

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 12:24, wrote: > There is a bug when using highmem-start= where some L4 directmap slots are not > audited in alloc_l4_table(), and not overwritten by init_guest_l4_table(). > > As highmem_start is only available in debug builds of the hypervisor, this > does not constitute a sec

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 07:43:41AM -0600, Jan Beulich wrote: > >>> On 29.08.17 at 15:33, wrote: > > If I don't get a new fix by the end of today I'm going to revert Igor's > > patch (but keep Roger's patch in tree). > > I'm not convinced keep the non-conflicting parts of Roger's patch > is going

Re: [Xen-devel] [PATCH v2 04/15] x86: implement data structure and CPU init flow for MBA

2017-08-29 Thread Roger Pau Monné
On Thu, Aug 24, 2017 at 09:14:38AM +0800, Yi Sun wrote: > This patch implements main data structures of MBA. > > Like CAT features, MBA HW info has cos_max which means the max thrtl > register number, and thrtl_max which means the max throttle value > (delay value). It also has a flag to represent

Re: [Xen-devel] [PATCH 5/5] x86/percpu: Misc cleanup

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 12:19:16PM +0100, Andrew Cooper wrote: > * Drop unnecessary brackets. > * Add spaces around binary operators. > * Insert appropriate blank lines. > * Insert a local variable block at the end. > > Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 15:33, wrote: > If I don't get a new fix by the end of today I'm going to revert Igor's > patch (but keep Roger's patch in tree). I'm not convinced keep the non-conflicting parts of Roger's patch is going to work; see the other reply just sent. Jan __

Re: [Xen-devel] [PATCH 4/5] x86/pv: Simplify access to the LDT/GDT ptes

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 12:19:15PM +0100, Andrew Cooper wrote: > Rename gdt_ldt_ptes() to pv_gdt_ptes() and drop the domain parameter, as it is > incorrect to use the helper with d != v->domain. > > Introduce pv_ldt_ptes() to abstract away the fact that the LDT mapping is 16 > slots after the GDT,

Re: [Xen-devel] [PATCH v5] xen: rtds: only tickle non-already tickled CPUs

2017-08-29 Thread George Dunlap
On 08/03/2017 03:13 AM, Meng Xu wrote: > When more than one idle VCPUs that have the same PCPU as their > previous running core invoke runq_tickle(), they will tickle the same > PCPU. The tickled PCPU will only pick at most one VCPU, i.e., the > highest-priority one, to execute. The other VCPUs wil

Re: [Xen-devel] [PATCH] acpi: set correct address of the control/event blocks in the FADT

2017-08-29 Thread Jan Beulich
>>> On 29.08.17 at 15:24, wrote: > On 29/08/17 09:50, Roger Pau Monne wrote: >> Commit 149c6b unmasked an issue long present in Xen: the control/event >> block addresses provided in the ACPI FADT table where hardcoded to the >> V1 version. This was papered over because hvmloader would also always

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread George Dunlap
On Fri, Aug 25, 2017 at 10:46 AM, Paul Durrant wrote: >> > +/* >> > + * Allocated IOREQ server pages are assigned to the emulating >> > + * domain, not the target domain. This is because the emulator is >> > + * likely to be destroyed after the target domain has been torn >> > +

Re: [Xen-devel] [PATCH RFC 00/12] Nested p2m: allow sharing between vCPUs

2017-08-29 Thread Sergey Dyasli
On Mon, 2017-08-28 at 18:03 +0100, George Dunlap wrote: > On 07/18/2017 11:34 AM, Sergey Dyasli wrote: > > Nested p2m (shadow EPT) is an object that stores memory address > > translations from L2 GPA directly to L0 HPA. This is achieved by > > combining together L1 EPT tables with L0 EPT during L2

Re: [Xen-devel] [PATCH 3/5] x86/pv: Consistently use typesafe helpers in all files

2017-08-29 Thread Wei Liu
On Tue, Aug 29, 2017 at 12:19:14PM +0100, Andrew Cooper wrote: > Rather than having a mix of code behaviour. This requires updating > pagetable_{get,from}_page() to use the non-overridden helpers. > > This requires some adjustments in priv_op_{read,write}_cr(), which is most > easily done by swit

  1   2   >