Re: [Xen-devel] [RFC PATCH v3 02/24] x86: NUMA: Clean up: Fix coding styles and drop unused code

2017-07-20 Thread Vijay Kilari
On Wed, Jul 19, 2017 at 9:53 PM, Julien Grall wrote: > Hi Vijay, > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> Fix coding style, trailing spaces, tabs in NUMA code. >> Also drop unused macros and functions. >> There is no functional change. >> >> Signed-off

Re: [Xen-devel] [RFC PATCH v3 01/24] NUMA: Make number of NUMA nodes configurable

2017-07-20 Thread Vijay Kilari
On Wed, Jul 19, 2017 at 9:25 PM, Julien Grall wrote: > Hi Vijay, > > > On 19/07/2017 08:00, Vijay Kilari wrote: >> >> On Tue, Jul 18, 2017 at 11:25 PM, Julien Grall >> wrote: >>> >>> Hi, >>> >>> >>> On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K In

Re: [Xen-devel] [RFC PATCH v3 05/24] x86: NUMA: Add accessors for nodes[] and node_memblk_range[] structs

2017-07-20 Thread Vijay Kilari
On Wed, Jul 19, 2017 at 10:48 PM, Julien Grall wrote: > > > On 19/07/17 07:40, Vijay Kilari wrote: >> >> On Tue, Jul 18, 2017 at 8:59 PM, Wei Liu wrote: >>> >>> On Tue, Jul 18, 2017 at 05:11:27PM +0530, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Add accessors for node

[Xen-devel] [PATCH v3] Add option to xenconsole to always forward console input

2017-07-20 Thread Felix Schmoll
Currently the default behaviour of the xenconsole client is to ignore any input to stdin, unless stdin and stdout are both ttys. The new option allows to manually overwrite this, causing the client to forward input regardless. Signed-off-by: Felix Schmoll --- Changed since v2: * change name of

[Xen-devel] [PATCH XTF v3] Implement pv_read_some

2017-07-20 Thread Felix Schmoll
Implement reading from PV console. Making use of polling. Signed-off-by: Felix Schmoll --- Changed since v2: * Change function name from pv_read to pv_read_some * Add comment to function name * Remove unnecessary code --- common/console.c | 24 include/xtf/conso

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

2017-07-20 Thread osstest service owner
flight 112039 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112039/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 79aac4dd756bb2809cdcb74f7d2ae8a630457c99 baseline version: ovmf 5fc3889bb3c64f8cd81d7

Re: [Xen-devel] [PATCH v3] Add option to xenconsole to always forward console input

2017-07-20 Thread Wei Liu
On Thu, Jul 20, 2017 at 09:47:48AM +0200, Felix Schmoll wrote: > Currently the default behaviour of the xenconsole client is to > ignore any input to stdin, unless stdin and stdout are both > ttys. The new option allows to manually overwrite this, causing the > client to forward input regardless. >

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Roger Pau Monné
On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: > Hi Punit, > > On 7/19/2017 8:11 PM, Punit Agrawal wrote: > > I took some notes for the PCI Passthrough design discussion at Xen > > Summit. Due to the wide range of topics covered, the notes got sparser > > towards the end of the sess

[Xen-devel] USB Passthrough in X86

2017-07-20 Thread ajmalmalib4u
Hi, I am trying to do USB passthrough in x86_64. I have Ubuntu as Dom0 and DomU.   Dom0 : Linux teltvm0881 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux DomU : Linux xen-guest-pv 4.12.0-custom #4 SMP Tue Jul 11 17:14:53 IST 2017 x86_64 GNU/L

Re: [Xen-devel] Pass through in Xen

2017-07-20 Thread Roger Pau Monné
On Thu, Jul 20, 2017 at 12:06:18PM +0530, ajmalmalib4u wrote: > Hi, >>> > Can anyone please explain or point me to a thread where I can read >about >>> > the internals of PCI passthrough or How passthrough actually works? >>> >>> For PV: >>> >>> > http://elixir.f

Re: [Xen-devel] [PATCH 4.12 26/84] x86/xen/efi: Initialize only the EFI struct members used by Xen

2017-07-20 Thread Ingo Molnar
* Daniel Kiper wrote: > Hey Greg, > > On Wed, Jul 19, 2017 at 11:43:32AM +0200, Greg Kroah-Hartman wrote: > > 4.12-stable review patch. If anyone has any objections, please let me know. > > Why did you skip this patch for 4.11? IMO it should be applied there too. The thing is, this patch sho

Re: [Xen-devel] Notes on stubdoms and latency on ARM

2017-07-20 Thread Dario Faggioli
On Mon, 2017-07-17 at 10:25 +0100, George Dunlap wrote: > On 07/12/2017 07:14 AM, Dario Faggioli wrote: > > > > That being said, I personally have never liked rate-limiting, it > > always > > looked to me like the wrong solution. > > In fact, I *think* the only reason it may have been introduced

Re: [Xen-devel] [RFC PATCH v3 08/24] NUMA: x86: Move numa code and make it generic

2017-07-20 Thread Vijay Kilari
On Wed, Jul 19, 2017 at 11:11 PM, Julien Grall wrote: > Hi Vijay, > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> Move code from xen/arch/x86/numa.c to xen/common/numa.c >> so that it can be used by other archs. >> >> The following changes are done: >> - Few

[Xen-devel] [RFC v2 01/12] docs: create Memory Bandwidth Allocation (MBA) feature document.

2017-07-20 Thread Yi Sun
This patch creates MBA feature document in doc/features/. It describes key points to implement MBA which is described in details in Intel SDM "Introduction to Memory Bandwidth Allocation". Signed-off-by: Yi Sun --- docs/features/intel_psr_mba.pandoc | 244 + 1

[Xen-devel] [RFC v2 06/12] x86: implement get value interface for MBA.

2017-07-20 Thread Yi Sun
This patch implements get value domctl interface for MBA. Signed-off-by: Yi Sun --- xen/arch/x86/domctl.c | 7 +++ xen/include/public/domctl.h | 1 + 2 files changed, 8 insertions(+) diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index 850742a..fa5e6d4 100644 --- a/xen/arc

[Xen-devel] [RFC v2 00/12] Enable Memory Bandwidth Allocation in Xen

2017-07-20 Thread Yi Sun
Hi, all, We plan to bring a new PSR (Platform Shared Resource) feature called Intel Memory Bandwidth Allocation (MBA) to Xen. Besides the MBA enabling, we change some interfaces to make them more general but not only for CAT. The implementation bases on below patch set which is being reviewed. [

[Xen-devel] [RFC v2 04/12] x86: implement data structure and CPU init flow for MBA.

2017-07-20 Thread Yi Sun
This patch implements main data structures of MBA. Like CAT features, MBA HW info has cos_max which means the max cos registers number, and thrtl_max which means the max throttle value (delay value). It also has a flag to represent if the throttle value is linear or not. One COS register of MBA s

[Xen-devel] [RFC v2 03/12] x86: rename 'cbm_type' to 'psr_val_type' to make it general.

2017-07-20 Thread Yi Sun
This patch renames 'cbm_type' to 'psr_val_type' to make it be general. Then, we can reuse this for all psr allocation features. Signed-off-by: Yi Sun --- xen/arch/x86/domctl.c | 16 ++--- xen/arch/x86/psr.c| 59 +-- xen/arch/x86/sys

[Xen-devel] [RFC v2 05/12] x86: implement get hw info flow for MBA.

2017-07-20 Thread Yi Sun
This patch implements get HW info flow for MBA including its callback function and sysctl interface. Signed-off-by: Yi Sun --- xen/arch/x86/psr.c | 13 - xen/arch/x86/sysctl.c | 19 +++ xen/include/asm-x86/psr.h | 2 ++ xen/include/public/sysctl.h |

[Xen-devel] [RFC v2 08/12] tools: create general interfaces to support psr allocation features.

2017-07-20 Thread Yi Sun
This patch creates general interfaces in libxl to support all psr allocation features. Add 'LIBXL_HAVE_PSR_MBA' to indicate interface change. Please note, the functionality cannot work until later patches are applied. Signed-off-by: Yi Sun --- tools/libxl/libxl.h | 34 +

[Xen-devel] [RFC v2 11/12] tools: implemet new set value interface suitable for all psr allocation features.

2017-07-20 Thread Yi Sun
This patch implements a new set value interface in tools suitable for all psr allocation features and the whole flow. It also enables MBA support to set MBA value in tools. Signed-off-by: Yi Sun --- tools/libxc/include/xenctrl.h | 6 ++--- tools/libxc/xc_psr.c | 9 --- tools/libxl

[Xen-devel] [RFC v2 07/12] x86: implement set value flow for MBA.

2017-07-20 Thread Yi Sun
This patch implements set value flow for MBA including its callback function and domctl interface. It also changes the memebers in 'cos_write_info' to transfer the feature array, feature properties array and value array. Then, we can write all features values on the cos id into MSRs. Signed-off-b

[Xen-devel] [RFC v2 12/12] docs: add MBA description in docs..

2017-07-20 Thread Yi Sun
This patch adds MBA description in related documents. Signed-off-by: Yi Sun --- docs/man/xl.pod.1.in | 33 ++ docs/misc/xl-psr.markdown | 60 +++ 2 files changed, 93 insertions(+) diff --git a/docs/man/xl.pod.1.in b/docs/m

[Xen-devel] [RFC v2 09/12] tools: implement the new get hw info interface suitable to all psr allocation features.

2017-07-20 Thread Yi Sun
This patch implements a new get hw info interface suitable for all psr allocation features and the whole flow. It also enables MBA support in tools to get MBA HW info. Signed-off-by: Yi Sun --- tools/libxc/include/xenctrl.h | 30 +++- tools/libxc/xc_psr.c | 46 + tool

[Xen-devel] [RFC v2 02/12] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general.

2017-07-20 Thread Yi Sun
This patch renames PSR sysctl/domctl interfaces and related xsm policy to make them be general for all resource allocation features but not only for CAT. Then, we can resuse the interfaces for all allocation features. Signed-off-by: Yi Sun --- tools/flask/policy/modules/dom0.te | 4 ++-- tools

[Xen-devel] [RFC v2 10/12] tools: implemet new get value interface suitable for all psr allocation features.

2017-07-20 Thread Yi Sun
This patch implements a new get value interface in tools suitable for all psr allocation features and the whole flow. It also enables MBA support in tools to get MBA value. Signed-off-by: Yi Sun --- tools/libxc/include/xenctrl.h | 13 +- tools/libxc/xc_psr.c | 11 +- tools/libxl/libxl

Re: [Xen-devel] Notes on stubdoms and latency on ARM

2017-07-20 Thread Dario Faggioli
On Mon, 2017-07-17 at 12:28 +0100, George Dunlap wrote: > Most schedulers have one runqueue per logical cpu.  Credit2 has the > option of having one runqueue per logical cpu, one per core (i.e., > hyperthreads share a runqueue), one runqueue per socket (i.e., all > cores > on the same socket share

Re: [Xen-devel] Xen 4.10 Development Update

2017-07-20 Thread Yi Sun
On 17-07-17 14:26:22, Julien Grall wrote: Hi, Julien, Please check latest versions of mine. > * Enable L2 Cache Allocation Technology (v8) > - XEN-37 > - Yi Sun > v14: https://lists.xenproject.org/archives/html/xen-devel/2017-07/msg01379.html > * Enable Memory Bandwidth Allocation (

Re: [Xen-devel] [PATCH 4.12 26/84] x86/xen/efi: Initialize only the EFI struct members used by Xen

2017-07-20 Thread Greg Kroah-Hartman
On Thu, Jul 20, 2017 at 10:39:10AM +0200, Ingo Molnar wrote: > > * Daniel Kiper wrote: > > > Hey Greg, > > > > On Wed, Jul 19, 2017 at 11:43:32AM +0200, Greg Kroah-Hartman wrote: > > > 4.12-stable review patch. If anyone has any objections, please let me > > > know. > > > > Why did you skip

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

2017-07-20 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 71703 xen-unstable real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71703/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-examine 10 examine-serial/

[Xen-devel] [distros-debian-wheezy test] 71704: tolerable trouble: broken/pass

2017-07-20 Thread Platform Team regression test user
flight 71704 distros-debian-wheezy real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71704/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: build-arm64 2 hosts-allocate broken like 71687 build-arm64-pvops

Re: [Xen-devel] [RFC PATCH v3 12/24] ARM: NUMA: DT: Parse CPU NUMA information

2017-07-20 Thread Vijay Kilari
On Wed, Jul 19, 2017 at 11:56 PM, Julien Grall wrote: > Hi, > > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> Parse CPU node and fetch numa-node-id information. >> For each node-id found, update nodemask_t mask. >> Refer to Documentation/devicetree/bindings/n

Re: [Xen-devel] Notes on stubdoms and latency on ARM

2017-07-20 Thread Dario Faggioli
On Wed, 2017-07-19 at 12:21 +0100, Julien Grall wrote: > On 17/07/17 12:28, George Dunlap wrote: > > Just checking -- you do mean its own core, as opposed to its own > > socket? > >  (Or NUMA node?) > > I don't know much about the scheduler, so I might say something > stupid  > here :). Below the

Re: [Xen-devel] [RFC PATCH v3 07/24] ARM: NUMA: Add existing ARM numa code under CONFIG_NUMA

2017-07-20 Thread Vijay Kilari
On Tue, Jul 18, 2017 at 11:36 PM, Julien Grall wrote: > Hi Vijay, > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> Right now CONFIG_NUMA is not enabled for ARM and >> existing code in asm-arm/numa.h is for !CONFIG_NUMA. >> Hence put this code under #ifndef CON

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Manish Jaggi
Hi Roger, On 7/20/2017 1:54 PM, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: Hi Punit, On 7/19/2017 8:11 PM, Punit Agrawal wrote: I took some notes for the PCI Passthrough design discussion at Xen Summit. Due to the wide range of topics covered, the not

Re: [Xen-devel] [PATCH XTF] Functional: Add a UMIP test

2017-07-20 Thread Andrew Cooper
On 20/07/17 06:29, Boqun Feng (Intel) wrote: Add a "umip" test for the User-Model Instruction Prevention. The test simply tries to run sgdt/sidt/sldt/str/smsw in guest user-mode with CR4_UMIP = 1. Signed-off-by: Boqun Feng (Intel) Thankyou very much for providing a test. As a general remark,

Re: [Xen-devel] [PATCH XTF v3] Implement pv_read_some

2017-07-20 Thread Andrew Cooper
On 20/07/17 09:09, Felix Schmoll wrote: Implement reading from PV console. Making use of polling. Signed-off-by: Felix Schmoll --- Changed since v2: * Change function name from pv_read to pv_read_some * Add comment to function name * Remove unnecessary code --- common/console.c |

Re: [Xen-devel] [PATCH 00/25 v6] SBSA UART emulation support in Xen

2017-07-20 Thread Bhupinder Thakur
Hi Julien, The issue seems to be that domain_vpl011_deinit() is not getting called when we destroy the domain. On further debugging, i found that domain_relinquish_resources was failing in domain_kill() function. I believe that issue could be that arch_domain_destroy() (from where domain_vpl011_d

Re: [Xen-devel] [PATCH 4.12 26/84] x86/xen/efi: Initialize only the EFI struct members used by Xen

2017-07-20 Thread Ingo Molnar
* Greg Kroah-Hartman wrote: > On Thu, Jul 20, 2017 at 10:39:10AM +0200, Ingo Molnar wrote: > > > > * Daniel Kiper wrote: > > > > > Hey Greg, > > > > > > On Wed, Jul 19, 2017 at 11:43:32AM +0200, Greg Kroah-Hartman wrote: > > > > 4.12-stable review patch. If anyone has any objections, please

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

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

Re: [Xen-devel] [PATCH 00/25 v6] SBSA UART emulation support in Xen

2017-07-20 Thread Julien Grall
On 20/07/17 10:40, Bhupinder Thakur wrote: Hi Julien, Hi Bhupinder, The issue seems to be that domain_vpl011_deinit() is not getting called when we destroy the domain. On further debugging, i found that domain_relinquish_resources was failing in domain_kill() function. I believe that issue c

Re: [Xen-devel] [PATCH v3] Add option to xenconsole to always forward console input

2017-07-20 Thread Ian Jackson
Felix Schmoll writes ("[PATCH v3] Add option to xenconsole to always forward console input"): > Currently the default behaviour of the xenconsole client is to > ignore any input to stdin, unless stdin and stdout are both > ttys. The new option allows to manually overwrite this, causing the > clien

Re: [Xen-devel] [RFC PATCH] tools/libxl : add struct and parsing utils for the 'static_shm' xl config entry

2017-07-20 Thread Zhongze Liu
2017-07-20 9:43 GMT+08:00 Zhongze Liu : > Hi Stefano, > > 2017-07-20 3:24 GMT+08:00 Stefano Stabellini : >> On Wed, 19 Jul 2017, Zhongze Liu wrote: >>> Add a new struct libxl_static_shm in the libxl IDL for the proposed new xl >>> config entry 'static_shm' (see [1]), which allow the user to set up

Re: [Xen-devel] [PATCH v4 3/9] x86/physdev: enable PHYSDEVOP_pci_mmcfg_reserved for PVH Dom0

2017-07-20 Thread Roger Pau Monne
On Fri, Jul 14, 2017 at 04:32:19AM -0600, Jan Beulich wrote: > >>> On 30.06.17 at 17:01, wrote: > > So that hotplug (or MMCFG regions not present in the MCFG ACPI table) > > can be added at run time by the hardware domain. > > I think the emphasis should be the other way around. I'm rather certai

Re: [Xen-devel] [RFC PATCH v3 10/24] NUMA: Allow numa initialization with DT

2017-07-20 Thread Vijay Kilari
On Wed, Jul 19, 2017 at 11:28 PM, Julien Grall wrote: > Hi Vijay, > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> The common code allows numa initialization only when >> ACPI_NUMA config is enabled. Allow initialization when >> NUMA config is enabled for DT.

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Roger Pau Monné
On Thu, Jul 20, 2017 at 03:02:19PM +0530, Manish Jaggi wrote: > Hi Roger, > > On 7/20/2017 1:54 PM, Roger Pau Monné wrote: > > On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: > > > Hi Punit, > > > > > > On 7/19/2017 8:11 PM, Punit Agrawal wrote: > > > > I took some notes for the PCI

Re: [Xen-devel] [XenSummit 2017] Notes from the 5-level-paging session

2017-07-20 Thread Yu Zhang
On 7/17/2017 6:53 PM, Juergen Gross wrote: Hey, I took a few notes at the 5-level-paging session at the summit. I hope there isn't any major stuff missing... Participants (at least naming the active ones): Andrew Cooper, Jan Beulich, Yu Zhang and myself (the list is just from my memory). The

Re: [Xen-devel] [RFC PATCH v3 13/24] ARM: NUMA: DT: Parse memory NUMA information

2017-07-20 Thread Vijay Kilari
On Thu, Jul 20, 2017 at 12:09 AM, Julien Grall wrote: > Hi Vijay, > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> Parse memory node and fetch numa-node-id information. >> For each memory range, store in node_memblk_range[] >> along with node id. >> >> When bo

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Julien Grall
On 20/07/17 10:32, Manish Jaggi wrote: Hi Roger, On 7/20/2017 1:54 PM, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: Hi Punit, On 7/19/2017 8:11 PM, Punit Agrawal wrote: I took some notes for the PCI Passthrough design discussion at Xen Summit. Due to

Re: [Xen-devel] [XenSummit 2017] Notes from the 5-level-paging session

2017-07-20 Thread Andrew Cooper
On 20/07/17 11:10, Yu Zhang wrote: On 7/17/2017 6:53 PM, Juergen Gross wrote: Hey, I took a few notes at the 5-level-paging session at the summit. I hope there isn't any major stuff missing... Participants (at least naming the active ones): Andrew Cooper, Jan Beulich, Yu Zhang and myself (th

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

2017-07-20 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Igor Druzhinin > Sent: 19 July 2017 22:20 > To: xen-devel@lists.xen.org > Cc: Igor Druzhinin ; Ian Jackson > ; Wei Liu ; > jbeul...@suse.com; Andrew Cooper > Subject: [Xen-devel] [PATCH] hvmloade

[Xen-devel] [linux-linus test] 112019: regressions - FAIL

2017-07-20 Thread osstest service owner
flight 112019 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/112019/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 7 xen-boot fail REGR. vs. 110515 test-amd64

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Julien Grall
On 20/07/17 11:29, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 03:02:19PM +0530, Manish Jaggi wrote: Hi Roger, On 7/20/2017 1:54 PM, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: Hi Punit, On 7/19/2017 8:11 PM, Punit Agrawal wrote: I took some not

Re: [Xen-devel] [RFC PATCH v3 01/24] NUMA: Make number of NUMA nodes configurable

2017-07-20 Thread Julien Grall
Hi Vijay, On 20/07/17 08:30, Vijay Kilari wrote: On Wed, Jul 19, 2017 at 9:25 PM, Julien Grall wrote: Also, you likely want to set to 1 if NUMA is not enabled. I don't see any dependency of NR_NODES with NUMA config. So it is always set to default value. Isn't? Well, what is the point

Re: [Xen-devel] [XenSummit 2017] Notes from the 5-level-paging session

2017-07-20 Thread Yu Zhang
On 7/20/2017 6:42 PM, Andrew Cooper wrote: On 20/07/17 11:10, Yu Zhang wrote: On 7/17/2017 6:53 PM, Juergen Gross wrote: Hey, I took a few notes at the 5-level-paging session at the summit. I hope there isn't any major stuff missing... Participants (at least naming the active ones): Andre

Re: [Xen-devel] [RFC PATCH v3 02/24] x86: NUMA: Clean up: Fix coding styles and drop unused code

2017-07-20 Thread Julien Grall
Hi Vijay, On 20/07/17 08:00, Vijay Kilari wrote: On Wed, Jul 19, 2017 at 9:53 PM, Julien Grall wrote: Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Fix coding style, trailing spaces, tabs in NUMA code. Also drop unused macros and functions. There is no fu

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Manish Jaggi
HI Julien, On 7/20/2017 4:11 PM, Julien Grall wrote: On 20/07/17 10:32, Manish Jaggi wrote: Hi Roger, On 7/20/2017 1:54 PM, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: Hi Punit, On 7/19/2017 8:11 PM, Punit Agrawal wrote: I took some notes for the

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Manish Jaggi
Hi Roger, On 7/20/2017 3:59 PM, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 03:02:19PM +0530, Manish Jaggi wrote: Hi Roger, On 7/20/2017 1:54 PM, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: Hi Punit, On 7/19/2017 8:11 PM, Punit Agrawal wrote: I t

Re: [Xen-devel] [RFC PATCH v3 05/24] x86: NUMA: Add accessors for nodes[] and node_memblk_range[] structs

2017-07-20 Thread Julien Grall
On 20/07/17 08:41, Vijay Kilari wrote: On Wed, Jul 19, 2017 at 10:48 PM, Julien Grall wrote: On 19/07/17 07:40, Vijay Kilari wrote: On Tue, Jul 18, 2017 at 8:59 PM, Wei Liu wrote: On Tue, Jul 18, 2017 at 05:11:27PM +0530, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Add acces

[Xen-devel] [PATCH 0/4] Drop uninformative messages from bootlog

2017-07-20 Thread Punit Agrawal
Hi, While booting v4.13-rc1 on an arm64 system, I noticed some messages that clutter the boot log without providing any useful information. This series trims some of the obvious offenders. The patches are spread across a few sub-systems - arm64/mm, mailbox, APEI and xen, and can be independently

[Xen-devel] [PATCH 4/4] xen: Drop un-informative message during boot

2017-07-20 Thread Punit Agrawal
On systems that are not booted as a Xen domain, the xenfs driver prints the following message during boot. [3.460595] xenfs: not registering filesystem on non-xen platform As the user chose not to boot a Xen domain, this message does not provide useful information. Drop this message. Signed-

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Roger Pau Monné
On Thu, Jul 20, 2017 at 11:47:04AM +0100, Julien Grall wrote: > > > Slide 18 shows only for DomU ? > > > > ARM folks believe this is not needed for Dom0 in the ARM case, I don't > > have an opinion, I know it's certainly mandatory for x86 PVH Dom0. > > That was 8 months ago, you managed to convin

Re: [Xen-devel] [RFC PATCH v3 07/24] ARM: NUMA: Add existing ARM numa code under CONFIG_NUMA

2017-07-20 Thread Julien Grall
Hi Vijay, On 20/07/17 10:31, Vijay Kilari wrote: On Tue, Jul 18, 2017 at 11:36 PM, Julien Grall wrote: Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Right now CONFIG_NUMA is not enabled for ARM and existing code in asm-arm/numa.h is for !CONFIG_NUMA. Henc

Re: [Xen-devel] [RFC PATCH v3 08/24] NUMA: x86: Move numa code and make it generic

2017-07-20 Thread Julien Grall
Hi Vijay, On 20/07/17 09:55, Vijay Kilari wrote: On Wed, Jul 19, 2017 at 11:11 PM, Julien Grall wrote: Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Move code from xen/arch/x86/numa.c to xen/common/numa.c so that it can be used by other archs. The follow

Re: [Xen-devel] [RFC PATCH v3 09/24] NUMA: x86: Move common code from srat.c

2017-07-20 Thread Julien Grall
Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Move code from xen/arch/x86/srat.c to xen/common/numa.c so that it can be used by other archs. Apart from moving the code the following changes are done - Coding style of code moved to numa.c is changed to xen st

Re: [Xen-devel] [RFC PATCH v3 10/24] NUMA: Allow numa initialization with DT

2017-07-20 Thread Julien Grall
Hi Vijay, On 20/07/17 11:28, Vijay Kilari wrote: On Wed, Jul 19, 2017 at 11:28 PM, Julien Grall wrote: Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K The common code allows numa initialization only when ACPI_NUMA config is enabled. Allow initialization whe

Re: [Xen-devel] [RFC PATCH v3 13/24] ARM: NUMA: DT: Parse memory NUMA information

2017-07-20 Thread Julien Grall
Hi Vijay, On 20/07/17 11:37, Vijay Kilari wrote: On Thu, Jul 20, 2017 at 12:09 AM, Julien Grall wrote: This code looks fairly similar to some bits of acpi_numa_memory_affinity_init. Is there any way we could introduce a common helper? Yes some bit of code is similar, But acpi_numa_memory_aff

Re: [Xen-devel] [XenSummit 2017] Notes from the 5-level-paging session

2017-07-20 Thread Andrew Cooper
On 20/07/17 11:36, Yu Zhang wrote: On 7/20/2017 6:42 PM, Andrew Cooper wrote: On 20/07/17 11:10, Yu Zhang wrote: On 7/17/2017 6:53 PM, Juergen Gross wrote: Hey, I took a few notes at the 5-level-paging session at the summit. I hope there isn't any major stuff missing... Participants (at

Re: [Xen-devel] [RFC PATCH v3 13/24] ARM: NUMA: DT: Parse memory NUMA information

2017-07-20 Thread Julien Grall
On 19/07/17 19:39, Julien Grall wrote: cell = (const __be32 *)prop->data; banks = fdt32_to_cpu(prop->len) / (reg_cells * sizeof (u32)); -for ( i = 0; i < banks && bootinfo.mem.nr_banks < NR_MEM_BANKS; i++ ) +for ( i = 0; i < banks; i++ ) { device_tree_get_reg(&c

[Xen-devel] [PATCH] docs: fix superpage default value

2017-07-20 Thread Wei Liu
The code says it defaults to false. Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- docs/misc/xen-command-line.markdown | 2 +- 1 file changed, 1 insertion(+), 1

Re: [Xen-devel] [RFC PATCH v3 09/24] NUMA: x86: Move common code from srat.c

2017-07-20 Thread Vijay Kilari
Hi Julien, On Thu, Jul 20, 2017 at 4:47 PM, Julien Grall wrote: > Hi Vijay, > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> Move code from xen/arch/x86/srat.c to xen/common/numa.c >> so that it can be used by other archs. >> >> Apart from moving the code the

Re: [Xen-devel] [PATCH] docs: fix superpage default value

2017-07-20 Thread Roger Pau Monné
On Thu, Jul 20, 2017 at 12:35:56PM +0100, Wei Liu wrote: > The code says it defaults to false. > > Signed-off-by: Wei Liu > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Konrad Rzeszutek Wilk > Cc: Stefano Stabellini > Cc: Tim Deegan > Cc: Wei Liu >

Re: [Xen-devel] [PATCH] docs: fix superpage default value

2017-07-20 Thread Wei Liu
On Thu, Jul 20, 2017 at 12:45:38PM +0100, Roger Pau Monné wrote: > On Thu, Jul 20, 2017 at 12:35:56PM +0100, Wei Liu wrote: > > The code says it defaults to false. > > > > Signed-off-by: Wei Liu > > --- > > Cc: Andrew Cooper > > Cc: George Dunlap > > Cc: Ian Jackson > > Cc: Jan Beulich > > Cc

Re: [Xen-devel] [PATCH] docs: fix superpage default value

2017-07-20 Thread Andrew Cooper
On 20/07/17 12:47, Wei Liu wrote: On Thu, Jul 20, 2017 at 12:45:38PM +0100, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 12:35:56PM +0100, Wei Liu wrote: The code says it defaults to false. Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Julien Grall
On 20/07/17 12:06, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 11:47:04AM +0100, Julien Grall wrote: Slide 18 shows only for DomU ? ARM folks believe this is not needed for Dom0 in the ARM case, I don't have an opinion, I know it's certainly mandatory for x86 PVH Dom0. That was 8 months

Re: [Xen-devel] [RFC PATCH v3 02/24] x86: NUMA: Clean up: Fix coding styles and drop unused code

2017-07-20 Thread Vijay Kilari
On Thu, Jul 20, 2017 at 4:30 PM, Julien Grall wrote: > Hi Vijay, > > > On 20/07/17 08:00, Vijay Kilari wrote: >> >> On Wed, Jul 19, 2017 at 9:53 PM, Julien Grall >> wrote: >>> >>> Hi Vijay, >>> >>> On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Fix

Re: [Xen-devel] [RFC PATCH v3 02/24] x86: NUMA: Clean up: Fix coding styles and drop unused code

2017-07-20 Thread Julien Grall
On 20/07/17 13:05, Vijay Kilari wrote: On Thu, Jul 20, 2017 at 4:30 PM, Julien Grall wrote: Hi Vijay, On 20/07/17 08:00, Vijay Kilari wrote: On Wed, Jul 19, 2017 at 9:53 PM, Julien Grall wrote: Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Fix co

Re: [Xen-devel] Notes from PCI Passthrough design discussion at Xen Summit

2017-07-20 Thread Julien Grall
On 20/07/17 12:00, Manish Jaggi wrote: On 7/20/2017 4:11 PM, Julien Grall wrote: On 20/07/17 10:32, Manish Jaggi wrote: Hi Roger, On 7/20/2017 1:54 PM, Roger Pau Monné wrote: On Thu, Jul 20, 2017 at 09:24:36AM +0530, Manish Jaggi wrote: Hi Punit, On 7/19/2017 8:11 PM, Punit Agrawal wrot

Re: [Xen-devel] [XenSummit 2017] Notes from the 5-level-paging session

2017-07-20 Thread Yu Zhang
On 7/20/2017 7:24 PM, Andrew Cooper wrote: On 20/07/17 11:36, Yu Zhang wrote: On 7/20/2017 6:42 PM, Andrew Cooper wrote: On 20/07/17 11:10, Yu Zhang wrote: On 7/17/2017 6:53 PM, Juergen Gross wrote: Hey, I took a few notes at the 5-level-paging session at the summit. I hope there isn't

Re: [Xen-devel] [RFC PATCH v3 02/24] x86: NUMA: Clean up: Fix coding styles and drop unused code

2017-07-20 Thread Vijay Kilari
On Thu, Jul 20, 2017 at 5:39 PM, Julien Grall wrote: > > > On 20/07/17 13:05, Vijay Kilari wrote: >> >> On Thu, Jul 20, 2017 at 4:30 PM, Julien Grall >> wrote: >>> >>> Hi Vijay, >>> >>> >>> On 20/07/17 08:00, Vijay Kilari wrote: On Wed, Jul 19, 2017 at 9:53 PM, Julien Grall w

Re: [Xen-devel] [RFC PATCH v3 02/24] x86: NUMA: Clean up: Fix coding styles and drop unused code

2017-07-20 Thread Julien Grall
On 20/07/17 13:29, Vijay Kilari wrote: On Thu, Jul 20, 2017 at 5:39 PM, Julien Grall wrote: But still compilation issue comes from below code. where only asm/numa.h is included. --- a/xen/include/asm-x86/irq.h +++ b/xen/include/asm-x86/irq.h @@ -4,7 +4,7 @@ /* (C) 1992, 1993 Linus Torvalds,

Re: [Xen-devel] [PATCH 4.12 26/84] x86/xen/efi: Initialize only the EFI struct members used by Xen

2017-07-20 Thread Daniel Kiper
On Thu, Jul 20, 2017 at 11:16:39AM +0200, Greg Kroah-Hartman wrote: > On Thu, Jul 20, 2017 at 10:39:10AM +0200, Ingo Molnar wrote: > > > > * Daniel Kiper wrote: > > > > > Hey Greg, > > > > > > On Wed, Jul 19, 2017 at 11:43:32AM +0200, Greg Kroah-Hartman wrote: > > > > 4.12-stable review patch. If

Re: [Xen-devel] [PATCH] docs: fix superpage default value

2017-07-20 Thread Wei Liu
On Thu, Jul 20, 2017 at 12:49:37PM +0100, Andrew Cooper wrote: > On 20/07/17 12:47, Wei Liu wrote: > > On Thu, Jul 20, 2017 at 12:45:38PM +0100, Roger Pau Monné wrote: > > > On Thu, Jul 20, 2017 at 12:35:56PM +0100, Wei Liu wrote: > > > > The code says it defaults to false. > > > > > > > > Signed-

Re: [Xen-devel] [RFC PATCH v3 14/24] ARM: NUMA: DT: Parse NUMA distance information

2017-07-20 Thread Julien Grall
Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Parse distance-matrix and fetch node distance information. Store distance information in node_distance[]. Register dt_node_distance() function pointer with the ARM numa code. This approach can be later used for AC

[Xen-devel] [linux-linus bisection] complete test-amd64-amd64-xl-xsm

2017-07-20 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job test-amd64-amd64-xl-xsm testid guest-localmigrate Tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: qemu git://xenbits.xen.org/qemu-xen-tradition

Re: [Xen-devel] [PATCH 13/25 v6] xen/arm: vpl011: Add a new add_console_evtchn_fd function in xenconsole

2017-07-20 Thread Bhupinder Thakur
Hi Wei, >> >> +static void add_console_evtchn_fd(struct console *con, void *data) > > There is no need to use void *. Just use long long * here. Since this function is going to be passed in later patches as an argument to iter functions, I wanted to keep the type generic so that I could type cas

Re: [Xen-devel] [PATCH v4 5/9] xen/pci: split code to size BARs from pci_add_device

2017-07-20 Thread Roger Pau Monne
On Fri, Jul 14, 2017 at 04:33:20AM -0600, Jan Beulich wrote: > >>> On 30.06.17 at 17:01, wrote: > > So that it can be called from outside in order to get the size of regular > > PCI > > BARs. This will be required in order to map the BARs from PCI devices into > > PVH > > Dom0 p2m. > > > > Sign

Re: [Xen-devel] [PATCH v4 5/9] xen/pci: split code to size BARs from pci_add_device

2017-07-20 Thread Roger Pau Monne
On Thu, Jul 20, 2017 at 03:00:40PM +0100, Roger Pau Monne wrote: > On Fri, Jul 14, 2017 at 04:33:20AM -0600, Jan Beulich wrote: > > >>> On 30.06.17 at 17:01, wrote: > > > +if ( ret < 0 ) > > > +break; > > > > ASSERT(ret) ? > > Really? This is different from th

Re: [Xen-devel] [RFC 16/22] x86/percpu: Adapt percpu for PIE support

2017-07-20 Thread Thomas Garnier
On Wed, Jul 19, 2017 at 4:33 PM, H. Peter Anvin wrote: > On 07/19/17 11:26, Thomas Garnier wrote: >> On Tue, Jul 18, 2017 at 8:08 PM, Brian Gerst wrote: >>> On Tue, Jul 18, 2017 at 6:33 PM, Thomas Garnier wrote: Perpcu uses a clever design where the .percu ELF section has a virtual add

Re: [Xen-devel] [PATCH 1/2] x86/mm: Change default value for suppress #VE in set_mem_access()

2017-07-20 Thread George Dunlap
On Thu, Jun 15, 2017 at 7:49 PM, Tamas K Lengyel wrote: > On Fri, Jun 9, 2017 at 10:51 AM, Adrian Pop wrote: >> From: Vlad Ioan Topan >> >> The default value for the "suppress #VE" bit set by set_mem_access() >> currently depends on whether the call is made from the same domain (the >> bit is se

[Xen-devel] Paravitrualization drivers query

2017-07-20 Thread shishir tiwari
Hi I am trying understand Xen Pv drivers and i writing my own pv fronend and backend driver. 1. For driver internal communication how do i create/write node in backend driver and how to read in fronted drivers. 2.how do i create one shared page in backend driver to write/read data in frontend dri

Re: [Xen-devel] [PATCH 2/2] x86/altp2m: Add a hvmop for setting the suppress #VE bit

2017-07-20 Thread George Dunlap
On Thu, Jun 15, 2017 at 8:01 PM, Tamas K Lengyel wrote: > On Fri, Jun 9, 2017 at 10:51 AM, Adrian Pop wrote: >> Introduce a new hvmop, HVMOP_altp2m_set_suppress_ve, which allows a >> privileged domain to change the value of the #VE suppress bit for a >> page. >> >> Add a libxc wrapper for invokin

[Xen-devel] Missing bits for production usage (was: [PATCH v5 00...)

2017-07-20 Thread Roger Pau Monne
Hello, This is mostly relevant for Ian, but I'm writing it here in case anyone else is interested. So far the content of this series works fine in standalone mode, and in a limited way in production mode: new flights always use the same base image in order to do the base install of FreeBSD. Inst

[Xen-devel] xen/link: Move .data.rel.ro sections into .rodata for final link

2017-07-20 Thread David Woodhouse
From: David Woodhouse This includes stuff lke the hypercall tables which we really want to be read-only. And they were going into .data.read-mostly. Signed-off-by: David Woodhouse --- Build tested on x86_64 (you really don't want to know about what I *actually* tested it with), not at all teste

Re: [Xen-devel] [PATCH v7 12/14] arm/mem_access: Add long-descriptor based gpt

2017-07-20 Thread Julien Grall
Hi, On 18/07/17 13:25, Sergej Proskurin wrote: +/* + * The starting level is the number of strides (grainsizes[gran] - 3) + * needed to consume the input address (ARM DDI 0487B.a J1-5924). + */ +level = 4 - DIV_ROUND_UP((input_size - grainsizes[gran]), (grainsizes[gran] - 3)

Re: [Xen-devel] [PATCH] xen: credit2: enable per cpu runqueue creation

2017-07-20 Thread George Dunlap
On 04/11/2017 05:15 PM, Praveen Kumar wrote: > The patch introduces a new command line option 'cpu' that when used will > create > runqueue per logical pCPU. This may be useful for small systems, and also for > development, performance evalution and comparison. > > Signed-off-by: Praveen Kumar >

Re: [Xen-devel] Missing bits for production usage (was: [PATCH v5 00...)

2017-07-20 Thread Ian Jackson
Roger Pau Monne writes ("Missing bits for production usage (was: [PATCH v5 00...)"): > A script to mark/unmark a $flight.$job as blessed. Marking a > $flight.$job as blessed means that it's build output is never deleted > from osstest storage, a proposed command line would be: We can't call it "b

[Xen-devel] [PATCH v3 03/21] x86/mm: split HVM grant table code to hvm/grant_table.c

2017-07-20 Thread Wei Liu
Signed-off-by: Wei Liu --- xen/arch/x86/hvm/Makefile | 1 + xen/arch/x86/hvm/grant_table.c | 89 ++ xen/arch/x86/mm.c | 53 - 3 files changed, 90 insertions(+), 53 deletions(-) create mode 100644 xen/arch/x86/hvm/

[Xen-devel] [PATCH v3 01/21] x86/mm: carve out create_grant_pv_mapping

2017-07-20 Thread Wei Liu
And at once make create_grant_host_mapping an inline function. This requires making create_grant_{hvm,pv}_mapping non-static. Provide {hvm,pv}/grant_table.h. Include the headers where necessary. The two functions create_grant_{hvm,pv}_mapping will be moved later in a dedicated patch with all the

[Xen-devel] [PATCH v3 05/21] x86/mm: document the return values from get_page_from_l*e

2017-07-20 Thread Wei Liu
Signed-off-by: Wei Liu --- xen/arch/x86/mm.c | 24 1 file changed, 24 insertions(+) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 8d7ceff9c8..141d1fc046 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -894,6 +894,12 @@ static int print_mmio_emul_rang

  1   2   >