freebsd-skq/sys
Neel Natu 9c4d547896 Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup().
Prior to this change both functions returned 0 for success, -1 for failure
and +1 to indicate that an exception was injected into the guest.

The numerical value of ERESTART also happens to be -1 so when these functions
returned -1 it had to be translated to a positive errno value to prevent the
VM_RUN ioctl from being inadvertently restarted. This made it easy to introduce
bugs when writing emulation code.

Fix this by adding an 'int *guest_fault' parameter and setting it to '1' if
an exception was delivered to the guest. The return value is 0 or EFAULT so
no additional translation is needed.

Reviewed by:	tychon
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D2428
2015-05-06 16:25:20 +00:00
..
amd64 Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup(). 2015-05-06 16:25:20 +00:00
arm Add new CP15 operations and DB_SHOW_COMMAND to print CP15 registers 2015-05-06 15:17:28 +00:00
arm64 Move the point we attach the ofw driver on arm64 to nexus.c. This will 2015-05-05 11:13:16 +00:00
boot Add FDT to the list of known GUIDs. 2015-05-05 11:07:43 +00:00
bsm
cam Revert r282227. It is clearly incorrect as it frees an object that is still 2015-04-29 17:18:41 +00:00
cddl zfs: do not hold an extra reference on a root vnode while a filesystem is mounted 2015-05-05 11:01:06 +00:00
compat Fix an error in r281551, part of the getfsstat() / kern_getfsstat() 2015-05-05 05:14:12 +00:00
conf Add DEV_ACPI to opt_acpi.h to be used to detect when ACPI is enabled in 2015-05-05 14:19:22 +00:00
contrib Move ALTQ from contrib to net/altq. The ALTQ code is for many years 2015-04-16 20:22:40 +00:00
crypto In the version of gcc in the FreeBSD tree, this modification was made to 2015-04-16 17:42:52 +00:00
ddb
dev AcpiGbl_FACS will not be defined when building using the reduced hardware 2015-05-06 14:14:14 +00:00
fs Fix the NFS server's handling of a bogus NFSv2 ROOT RPC. 2015-04-25 00:58:24 +00:00
gdb
geom Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme. 2015-05-05 09:33:02 +00:00
gnu The GNU Amlogic DTS files have some errors (e.g. bad register 2015-04-11 08:17:39 +00:00
i386 Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
isa
kern Implement a mechanism for making changes in the kernel<->driver PPS 2015-05-04 17:59:39 +00:00
kgssapi
libkern Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
mips The add_bounce_page() function can be called when loading physical 2015-04-28 06:12:37 +00:00
modules Include makefiles necessary to make ixgbe build with the new code. 2015-04-30 22:56:43 +00:00
net Pass mtag argument into m_tag_locate() to continue the search from 2015-05-06 14:02:57 +00:00
net80211 Fix string concatenation - "wlan_##name" -> "wlan_" #name 2015-05-04 00:47:22 +00:00
netgraph Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
netinet Add a state transition call to show that we have entered TIME_WAIT. 2015-05-01 12:49:03 +00:00
netinet6 Remove #ifdef IFT_FOO. 2015-05-02 20:31:27 +00:00
netipsec Fix the comment. We will not do SPD lookup again, because 2015-04-28 11:03:47 +00:00
netnatm
netpfil Fix panic when prepare_batch_buffer() returns error. 2015-05-06 07:53:43 +00:00
netsmb
nfs Avoid closing unallocated socket in case socreate fails. 2015-02-28 20:30:29 +00:00
nfsclient Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
nfsserver Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nlm
ofed Don't drop the idr lock before verifying that the newly-inserted element 2015-05-02 00:26:38 +00:00
opencrypto Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
pc98 Fix kernel build ${MACHINE} path 2015-04-16 22:34:10 +00:00
powerpc Missed ofw_machdep.c in r282264. 2015-04-30 03:15:07 +00:00
rpc Remove hard limits on number of accepting NFS connections. 2015-04-07 10:25:27 +00:00
security cred: add proc_set_cred helper 2015-03-16 00:10:03 +00:00
sparc64 Update this driver to not save copies of registers that are no longer used 2015-04-24 13:12:04 +00:00
sys Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme. 2015-05-05 09:33:02 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools
ufs Limit the number of cylinder groups that will be searched when 2015-04-24 23:27:50 +00:00
vm Fix the KASSERT and improve wording in r282426. 2015-05-06 08:07:11 +00:00
x86 Add macros for AMD-specific bits in MSR_EFER: LMSLE, FFXSR and TCE. 2015-05-06 05:12:29 +00:00
xdr
xen Use SYSCTL_OUT_STR() to return strings. 2015-03-14 21:40:24 +00:00
Makefile