CLion

2017-02-20 Thread Waldek Kozaczuk
Does anybody have experience developing OSv using CLion from JetBrains? Waldek -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegrou

Re: OVA image no longer working on ESX

2017-02-20 Thread Nadav Har'El
Hi, I don't have access to any version of VMware so I can't test this myself, but I can ask you guys questions: On Fri, Feb 10, 2017 at 1:49 PM, wrote: > > Here is what worked for us: > > 1. Download the VMware workstation image from http://downloads.osv.io.s3. > amazonaws.com/cloudius/osv/osv-v

[PATCH 7/8] osv: xen_intr: do not use unmask_evtchn() in IRQ handler

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
unmask_evtchn() has side effect of setting evtchn_upcall_pending and triggering interrupt from Xen if unmasked port is pending. This works fine when unmasking new port, but in case of calling it from IRQ handler can lead to race and lost interrupt. do_irq() already handles pending interrupts, ther

[PATCH 6/8] osv: xen_intr: use evtchn.h

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
Replace local declaration of unmask_evtchn() and evtchn_from_irq() with inclusion of evtchn.h where they're declared. Additionally declare evtchn_from_irq() in header, as it's used in Xen core interrupt handler. Include evtchn driver into common build, so that aarch64 code can link. Signed-off-b

[PATCH 4/8] bsd: xen: add synch_bitops.h and xen-os.h for AARCH64

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
evtchn and gnttab drivers use these operations extensively. Signed-off-by: Sergiy Kibrik --- bsd/aarch64/machine/xen/synch_bitops.h | 59 +++ bsd/aarch64/machine/xen/xen-os.h | 132 + 2 files changed, 191 insertions(+) create mode 100644 bsd/aa

[PATCH 3/8] bsd: xen: move common headers outside of x64/machine/xen

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
xenvar.h and xenpmap.h can be used for aarch64 as well without modification. Signed-off-by: Sergiy Kibrik --- bsd/sys/machine/xen/xenpmap.h | 227 ++ bsd/sys/machine/xen/xenvar.h | 120 ++ bsd/x64/machine/xen/xenpmap.h | 227 --

[PATCH 5/8] osv: generic bitops

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
Semantics of bsrq()/fls() differs on x64 and aarch64, e.g. following sample inputs produce different results: x64:aarch64: bsrq(0x1) = 0 bsrq(0x1) = 63 bsrq(0x) = 63 bsrq(0x) = 0 bsrq(0x8000) = 63 bsrq(0

[PATCH 8/8] osv: xen: make shared structures arch-independent

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
xen_shared_info & xen_vcpu_info are different on x64/aarch64, so couple of fixes needed so that shared data is consistent with what hypervisor presumes. Signed-off-by: Sergiy Kibrik --- bsd/sys/xen/interface/arch-aarch64.h | 1 + include/osv/xen.hh | 5 ++--- 2 files changed, 3

aarch64: xen event channels support

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
hi OSv developers, Let me present patches that allow OSv to work with Xen event channels on aarch64 platform. This series contains some clean up work -- to remove unused (and probably unneeded) code, and to re-use some generic parts of x64 code, but there're also rather intrusive changes to core

[PATCH 1/8] bsd: evtchn: unused code cleanup

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
Remove evtchn_do_upcall() and related code, which isn't used anywhere else and probably never will be. xen_irq::do_irq() already handles events in OSv-specific way, while bsd code just contributes duplication and causes some confusion. Signed-off-by: Sergiy Kibrik --- bsd/aarch64/machine/intr_m

[PATCH 2/8] bsd: remove unused xenfunc.h header

2017-02-20 Thread 'Sergiy Kibrik' via OSv Development
It contains definitions of non-existing (in OSv tree) routines, which had been used in original BSD code and have absolutely no traces of use in OSv. Signed-off-by: Sergiy Kibrik --- bsd/sys/dev/xen/blkfront/blkfront.cc | 1 - bsd/sys/dev/xen/netfront/netfront.cc | 1 - bsd/x64/machine/xen/xen

Re: [PATCH] httpserver: optionaly start app in new ELF namespace

2017-02-20 Thread Nadav Har'El
On Mon, Feb 20, 2017 at 9:49 AM, Justin Cinkelj wrote: > > BTW, looking at wiki (https://github.com/cloudius-systems/osv/wiki/Trace- > analysis-using-trace.py I think), some examples are a bit outdated. Not > very outdated, only a little - after copy-paste you have to read error > message / try t