Merge pull request #11 from hschauhan/x86-next

[x86] HPET and Interrupt handling code revamp.
[x86] Fix compile error for arch_defterm_init()

Signed-off-by: Anup Patel <anup@brainfault.org>
Merge branch 'master' of github.com:avpatel/xvisor-next
[CORE] Improve semaphore initialization macros

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Improved vmm_panic() and BUG_ON() implementation

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] net: Add vmm_netport_free() API

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Add mult and shift calculator for both clksource and chip.

This patch adds function vmm_clocks_calc_mult_shift which, as the
name suggests, calculate both the shift and the multiplication factor
based on clock frequency and guaranteed runtime conversion range.

This has been taken as is from Linux's clocks_calc_mult_shift.

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] Made icmp_echo related APIs to be netstack interface specific

Signed-off-by: Anup Patel <anup@brainfault.org>
Merge pull request #12 from hschauhan/x86-next

[x86] Change mult and shift calculation
[CORE] net: Randomly generate mac address for dummy netport at time of port registration

This patch moves the random genration of mac address for dummy netport from port addition time to port registration time.

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Simplify ARCH_SPIN_LOCK_INITIALIZER expected from architecture specific code

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] netstack: Rename UIP netport name

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] netstack: Added lwIP optional network stack support

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] netstack: Deprecate UIP network stack

uIP (micor IP) is a very primitive network stack.

We had done lot of changes to uIP get is working but, the socket APIs of uIP are very primitive.

Further uIP is not tailored for multi-threaded applications.

For all our purposes, lwIP suits well and lwIP is highly-portable and proven with many projects using it.

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] netstack: Replace string.h with libs/stringlib.h in lwIP source

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] netstack: suppress warnings for using char as array subscripts in lwIP

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Increase default values of MAX_VCPU_COUNT and MAX_GUEST_COUNT

The MAX_VCPU_COUNT and MAX_GUEST_COUNT were too low. We have doubled both the limits.

If required we will increase this values even further but gradually.

Signed-off-by: Anup Patel <anup@brainfault.org>
[DAEMONS] mterm: Minor fixes

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Don't allow same function to be registered twice as recevier to a vserial port

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] netstack: Added socket API interface and implemented it for lwIP

Signed-off-by: Anup Patel <anup@brainfault.org>