Re: [RFC] aarch64: basic Xen support

2017-01-20 Thread Dor Laor
On Fri, Jan 20, 2017 at 8:57 AM, Roman Shaposhnik wrote: > Hi Sergiy! > > this is super cool -- I've been very interested in seeing resurrected support for OSv on Xen/ARM > +1! > for a different project I'm working on. Would love to take a look at your > code. > >

Re: [RFC] aarch64: basic Xen support

2017-01-20 Thread Roman Shaposhnik
Hi Sergiy! this is super cool -- I've been very interested in seeing resurrected support for OSv on Xen/ARM for a different project I'm working on. Would love to take a look at your code. Speaking of which -- did you forget to attach a patch or a link to your GH repo? The only link I see is the

[PATCH 10/10] aarch64: choose early console driver at runtime

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
In case Xen is detected use xenconsole driver for output, otherwise fallback to pl011 for backwards compatibility. Signed-off-by: Sergiy Kibrik --- Makefile | 2 ++ arch/aarch64/arch-setup.cc| 20 ++--

[PATCH 05/10] aarch64: mmu: extend device memory range for GIC

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
Start device range from 0x300 so that aarch64 Xen guest can map gic. This seems to be lowest address required. Signed-off-by: Sergiy Kibrik --- arch/aarch64/arch-mmu.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 06/10] aarch64: add Xen hypercalls

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
Signed-off-by: Sergiy Kibrik --- arch/aarch64/hypercall.S | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 arch/aarch64/hypercall.S diff --git a/arch/aarch64/hypercall.S b/arch/aarch64/hypercall.S new file mode 100644 index

[PATCH 07/10] bsd: xen: add headers for aarch64 support

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
Signed-off-by: Sergiy Kibrik --- bsd/aarch64/machine/xen/hypercall.h | 73 bsd/sys/xen/interface/arch-aarch64.h | 52 + bsd/sys/xen/interface/xen.h | 2 + 3 files changed, 127 insertions(+)

[PATCH 08/10] osv: add Xen console basic driver

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
Primitive driver that uses HYPERVISOR_console_io hypercall to provide early console. Signed-off-by: Sergiy Kibrik --- drivers/xenconsole.cc | 36 drivers/xenconsole.hh | 31 +++ 2 files changed, 67

[PATCH 04/10] aarch64: make PCI optional

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
Continue boot if PCI host not found in DTB, as not every platform provides it, namely non-x86 Xen guests doesn't seem to support PV PCI yet. Signed-off-by: Sergiy Kibrik --- arch/aarch64/arch-dtb.cc | 1 - arch/aarch64/arch-setup.cc | 64

[PATCH 03/10] osv: use __ASSEMBLER__ instead of ASSEMBLER

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
__ASSEMBLER__ definition is used extensively throughout bsd/ tree so make ASFLAGS compatible with its usage. Signed-off-by: Sergiy Kibrik --- Makefile | 2 +- compiler/include/intrinsics.hh | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 02/10] bsd: xen: console_io hypercall accepts constant string

2017-01-20 Thread 'Sergiy Kibrik' via OSv Development
Modify HYPERVISOR_console_write() interface to accept const *char as argument, so it is compliant with console::console_driver::write() interface. Xen does not mangle input buffer upon CONSOLEIO_write hypercall. Signed-off-by: Sergiy Kibrik ---