Commit Graph

262763 Commits

Author SHA1 Message Date
skrll
b75df58e07 Trailing whitespace 2018-10-10 19:13:51 +00:00
christos
f84d9921ff Add the EC_GFp_nistp*_method's 2018-10-10 14:57:31 +00:00
msaitoh
5f7328fe3c Fix m_examine_tcp() to print TCP header length (th_off) correctly. 2018-10-10 10:54:30 +00:00
roy
65c1447580 curses: test terminal capabilities for drawing in the bottom right corner
If auto margins are present, we need to turn them off or enter
an insert mode to "push" the character we want into the corner.
If pushing a wide character of greater than one cell, we need something
more than ich1, othewise the bottom right corner will remain blank.

Follow on fix for PR# 30978.

OK jdc@
2018-10-10 09:40:11 +00:00
martin
c822cfe197 On 32bit platforms set OPENSSL_NO_EC_NISTP_64_GCC_128 again, the non
standard __uint128_t is required for the code, but only provided by gcc
on 64bit archs.
2018-10-10 06:16:55 +00:00
cherry
b221fa3a5b In xen_atomic_test_and_clear_bit()
Use the appropriate sized variable for inline assembler.
2018-10-10 04:16:58 +00:00
cherry
82604ecb94 Do not re-expose the innards of evtchn.c, now that we have a way
to register interrupts via intr.c:intr_establish_xname()

evtchn.c is going to get refactored soon, so use the latter method.
2018-10-10 03:54:54 +00:00
cherry
1c86563b2e Do not export the 'irq<->vector' abstraction outside of pintr.c
anymore. We now think of them as a unified thing called 'gsi',
which is generated by mpacpi/mpbios
2018-10-10 02:34:08 +00:00
cherry
45f4e63747 Since GSIs are invented by the mpbios/mpacpi interrupt routing probe code,
it's possible for shared GSIs to popup even outside the original
legacy_irq range.

Relax this latter, older assumption.

Thanks to Brad Spencer for extensive trialing on interesting hardware.
2018-10-10 02:16:34 +00:00
christos
34a6ee4275 enable OPENSSL_NO_EC_NISTP_64_GCC_128, requested by wiz 2018-10-10 01:29:25 +00:00
kamil
b50859a9e1 Drop Pad functions from sha2(3)
This man-page first appeared before porting all the features to NetBSD and
actually Pad ones were never ported. Keeping it in the documentation is
misleading and actually caused bugs in handling of these functions in 3rd
party software.
2018-10-09 11:36:35 +00:00
kre
397150f671 Fix stupid edit botch in previous, pointed out by leot@ (thanks). 2018-10-09 02:53:11 +00:00
kre
0db5b60ce4 When (about to) send the -x output for the end of a compound command
(which has redirects, and so is included in -x output) use the -x/+x
setting that existed when the comoound started, so if the state of
xtrace changes during the command we don't end up with just half of
the -x output (either the intro, or the conclusion, depending on
which way the change happened).   [this also happens to avoid a core
dump in the previous code, but that could have been done other ways,
this way actually simplifies things (less code)]
2018-10-09 02:43:41 +00:00
kre
4fa65b6b18 PR port-evbarm/53661
Always quote RESTARTCMD when eval'ing it.   Whatever script does it...
2018-10-09 01:28:35 +00:00
roy
7b8fbc2d04 terminfo: if $TERMINFO.cdb doesn't exist, try $TERMINFO
This allows this command sequence to work:
tic -o /tmp/foo foo
TERMINFO=/tmp/foo TERM=foo infocmp
2018-10-08 20:44:34 +00:00
christos
be750853ee elide a warning that triggers on arm/clang 2018-10-08 18:01:23 +00:00
christos
3e91c6b972 comment out unused function (clang) 2018-10-08 17:58:52 +00:00
martin
7264592563 Bring back support for enhanced descriptor format in newer core versions.
Fix a few endian bugs and check the main core version before trying to
read the hardware feature mask. Only read the hardware feature register
if core version reported is >= 3.5 (all my older hardware reports 0).
With some hints and patches from jared, and ok from aymeric
2018-10-08 17:09:31 +00:00
christos
006807b168 Skip man pages that conflict (but have different case with libc: {hmac,md5}.3
and libdes: des_random_key.3)
2018-10-08 16:31:35 +00:00
kre
4113b4f7c0 PR port-evbarm/53661 (which has nothing particular to do with port-evbarm)
When eval'ing RESTARTCMD don't field split it, only to join the words
again (by eval) - that converts newlines and tabs to spaces, and the
first of those causes sh syntax errors with the way that the various
RESTARTCMDs are now written (but it was always dangerous, as filename
expansions could also have happened, which is not wanted, I believe.)

Also correct a translation error.
2018-10-08 14:09:38 +00:00
skrll
c8f5f5aa5f Trialing whitespace 2018-10-08 11:28:22 +00:00
skrll
6ed19e44e8 Sort options.
No functional change.
2018-10-08 10:22:17 +00:00
skrll
e98b931ccb Remove a build dependency on SOC_EXYNOS4 and SOC_EXYNOS5. Now runtime. 2018-10-08 08:16:59 +00:00
cherry
db0f12923a Clean up XEN specific stuff from the apic code, and move to intr.c
No functional change.
2018-10-08 08:05:08 +00:00
cherry
be45e2c4c4 Convert the last remaining users of event_set_handler() to
intr_establish_xname(,&xen_pic,...)
2018-10-08 05:42:44 +00:00
rillig
32c623ff75 When listing aliases, sort them alphabetically. 2018-10-07 23:17:52 +00:00
wiz
f244ebf64d Sort options. 2018-10-07 20:30:50 +00:00
christos
8e212b8902 Handle the SATA to USB external enclosure sold by "Sabrent" and
made by JMicro (vendor=0x152d product=0x0578). This bridge does
not understand FUA, so add a quirk for it.
2018-10-07 18:14:32 +00:00
martin
7b4eb06deb Support .tar.xz sets 2018-10-07 18:07:00 +00:00
skrll
e04b47a914 Don't use a magic number for COHERENCY_UNIT use COHERENCY_UNIT 2018-10-07 18:03:59 +00:00
cherry
88a57bff03 In the case of a shared GSI, bind will fail, so we do not attempt this.
The sharing is accomplished by demultiplexing the port event of the first
bind. This is accomplished in intr.c:intr_establish_xname()

Note that the pic_delroute() is buggy (commented suitably) for the shared
gsi case, since it will unbind reset it unconditionally, leaving the other
shared callbacks stranded.

This problem will go awaywhen we unify further with native code, as this
case is taken care of appropriately in that case.
2018-10-07 16:36:36 +00:00
christos
a0e7897afd Disable __int128 checks if we are not building on a 64 bit host (
this is suboptimal, but it is the easiest way).
2018-10-07 14:20:01 +00:00
mlelstv
4ceeb5eaf7 Use IO_DIRECT for file I/O to reduce buffer cache contention.
Restore old behaviour to flush pages only when usage exceeds 1MB.

No longer use PGO_SYNCIO, regular writes to the device do not require
the data to reach stable storage, the DIOCCACHESYNC ioctl is used
for that.
2018-10-07 12:00:07 +00:00
mlelstv
eff8919f63 Calculate a missing cylinder count in the geometry spec from image size. 2018-10-07 11:54:14 +00:00
mlelstv
803c93c66f Add flag to enforce file I/O even when bmap/strategy would be possible.
This makes it easier to compare both modes, it also allows coherent
operation between vnd device and image file.
2018-10-07 11:51:26 +00:00
mlelstv
138fd13404 Support bootspec. 2018-10-07 11:25:55 +00:00
mlelstv
96652353da Set rootdev for wedges. 2018-10-07 11:24:16 +00:00
martin
503ca6cef6 Support .tar.xz format for sets. 2018-10-07 10:33:44 +00:00
maxv
c7c9fc5a6c Make it clear that you need to disable SVS if you enable USER_LDT. I could
make SVS compatible with it, but there has to be someone doing Wine work
first, to justify the effort.
2018-10-07 08:00:49 +00:00
skrll
86a0a60a1a Remove a space that snuck in 2018-10-07 07:51:54 +00:00
skrll
7966e4627c Whitespace consistency.
{make,}options<space><tab>
everything else just <tab?
2018-10-07 07:48:43 +00:00
cherry
5d5e7872ca While we're here, fix pic->pic_delroute() to DTRT on XEN and
cleanup after itself.
2018-10-07 05:28:51 +00:00
cherry
6cc641e843 Switch over to a "GSI" concept for guest irqs.
On XEN there is a namespace called GSI which includes:

i) legacy_irq (0 - 16)
ii) "gsi" (16-nr_irqs_gsi)
iii) msi

We try to mirror this in guest space, but are mindful that legacy_irq
is 1:1 bound to actual hardware legacy_irq. Apart from this, XEN doesn't
really care what number scheme we use, as long as it doesn't encroach
on the MSI space, which is TBD for us.

Thus we trust the mpbios.c/mpacpi.c code to correctly map the pic,pin
tuples into the correct global gsi space, which we then register with
xen. As we now do, we allow for duplicate gsi registrations, in case
any hardware shares the same (pic,pin);

This enables us to now use the (pic,pin) tuple as the canonical reference
for device interrupt addresses, and leave any global mappings to specific
code. Thus xen_pic_to_gsi().

Note that this requires separate support for MSI, which I will get around to
once things stabilise - however the API change facilitates this nicely.

I note that the msi addroute() function does not use the "pin" parameter.
This can be made use of, to encode the gsi number, for XEN. This is however
TBD.

We further tweak the xen_vec_alloc() code to be uniform for the NIOAPICS
and other cases, and ensure that i8259.c DTRT wrt to route().

This will allow us to use pic->pic_addroute() without needing to worry about
pic specific issues.

The next step is to consolidate the pic_addroute() XEN related #ifdefs into
a -DXEN specific file, so that we don't clutter x86/ code with #ifdef XENs.

This change has functional implications, and there is likely breakage coming
especially on bespoke platforms that I haven't been able to test yet.

I am especially interested in bug reports from platforms with legacy (esp. i386)
and with multiple ioapics.
2018-10-07 05:23:01 +00:00
christos
e0a9077d02 use the right type. 2018-10-06 23:48:00 +00:00
martin
fed74b7300 Remove duplicate conditional assignment in previous - pointed out by wiz@ 2018-10-06 18:52:59 +00:00
martin
8775572996 Switch amd64, sparc64 and alpha to .tar.xz sets 2018-10-06 18:47:29 +00:00
martin
0ef20e9266 Support sets in .tar.xz format 2018-10-06 18:45:37 +00:00
skrll
4b1529b74c Whitespace 2018-10-06 17:46:46 +00:00
cherry
575e141483 Change the name of xen_pirq_alloc() to xen_vec_alloc() to reflect
its actual job.

The idea is that we will strip this down until it is as close to
idt_vec_alloc() as possible.
2018-10-06 16:49:54 +00:00
cherry
83e3a8ca2e Move the pic->pic_addroute() call from within pintr.c:xen_pirq_alloc() to
intr.c:intr_establish_xname()

xen_pirq_alloc() now returns a vector value, as is intended by
the semantics of the call to the hypervisor, PHYSDEVOP_ASSIGN_VECTOR.

This also brings our usage closer to native.
2018-10-06 16:44:55 +00:00