Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-09-08 | If you use sys/param.h, you don't need sys/types.h | Theo de Raadt | |
2017-08-10 | Don't forget to call va_end in xen_hypercall | Mike Belopuhov | |
Coverity CID 1453343 | |||
2017-08-10 | Prevent an unlikely resource leak | Mike Belopuhov | |
Coverity CID 1453069; Severity: unlikely, not user-visible. | |||
2017-08-10 | sector_count is uninitialized if the SCSI cmdlen is not 6, 10, 12 or | Reyk Floeter | |
16 bytes long. This cannot happen. But it is good to silence the uninitialized variable warning. Coverity CID 1453104; Severity: Insignificant OK mikeb@ | |||
2017-08-10 | Fix copy-paste error in the error path of vio_alloc_mem() that checked | Reyk Floeter | |
the wrong variable (sc_tx_dmamaps[i] instead of sc_rx_dmamaps[i]). Coverity CID 1452937; Severity: Minor OK mikeb@ | |||
2017-08-10 | Add missing comma that caused a concatenated string. Fixes printing of | Reyk Floeter | |
the device names of "9P Transport" and "mac80211 wlan" virtio devices. Coverity CID 1453254; Severity: Insignificant OK mikeb@ | |||
2017-08-10 | Correct the upper bound for the command size before the passthrough | Mike Belopuhov | |
Coverity CID 1453317; Severity: unlikely, not user-visible. | |||
2017-08-10 | Buffer size for the SCSI vendor string should be 8 char long | Mike Belopuhov | |
A vendor and part of the product string got copied into a larger on-stack buffer as a result of an out-of-bounds access, however only 4 characters are meaningful in this context. Coverity CID 1453206; Severity: insignificant. | |||
2017-08-10 | Fixup upper bound for the completion descriptor identifier | Mike Belopuhov | |
Coverity CID 1452864; Severity: unlikely, not user-visible. | |||
2017-08-10 | Fail if unknown type of an address family was specified | Mike Belopuhov | |
Coverity CID 1452981; Severity: unlikely, not user-visible. | |||
2017-07-21 | Replace MD _bus_dmamap_* function calls with MI ones | Mike Belopuhov | |
2017-07-19 | Turn this into a panic since there's no way to recover from it | Mike Belopuhov | |
2017-07-17 | Forbid overwriting a grant table entry currently in use | Mike Belopuhov | |
2017-07-17 | Reduce amount of CAS attempts in a busy-wait loop by a factor of 100 | Mike Belopuhov | |
2017-07-17 | Pick the correct TX buffer when unrolling | Mike Belopuhov | |
2017-07-17 | Reimplement mbuf/map to descriptor mapping | Mike Belopuhov | |
Previously descriptors have referenced DMA maps too loosely which led to bus_dmamap_unload being called before all fragments have been completed. This eliminates the last instance of excessive looping while waiting for a grant table entry to become available. | |||
2017-07-17 | Grant table entries must be disassociated once CCB is complete | Mike Belopuhov | |
Attempting to unload the map before all chunks are done may lead to unnecessary looping. | |||
2017-07-14 | Spacing | Mike Belopuhov | |
2017-07-14 | Reduce the number of CAS loops from ludicrous to ridiculous | Mike Belopuhov | |
Now that the source of the delay with releasing grant table entries has been identified and fixed the number of attempts to CAS entry flags can be substantially reduced and while it's decreased by a factor of 100000, it should go down at least a 100 more in the future. | |||
2017-07-14 | Silence the interrupt source until the interrupt task has done its job | Mike Belopuhov | |
This small change significantly improves performance under load and halves the number of received interrupts. | |||
2017-07-14 | Support out-of-order TX completion notifications | Mike Belopuhov | |
Apparently, just like the disk interface, the network backend may post TX completions out-of-order, i.e. the ring position doesn't determine which descriptor is being completed and the code must look at the response id inside the completion message. It might seem obvious, but since networking hardware doesn't usually work this way, it was something that has been overlooked. Based on instability reports from Kirill Miazine <km at krot ! org>, thanks! | |||
2017-07-13 | Add a comment explaining why pciide(4) must skip attaching disks | Mike Belopuhov | |
Requested by kettenis@. | |||
2017-07-12 | Prefer paravirtualized interface for IDE disks as well | Mike Belopuhov | |
2017-06-27 | Provide a handler stub for the "channel rescind" message | Mike Belopuhov | |
2017-06-27 | Avoid testing an uninitialised variable in the SCSI_BUSY/SCSI_QUEUE_FULL | Jonathan Gray | |
paths of hvs_scsi_cmd_done(). ok mikeb@ | |||
2017-06-26 | Minor cleanup; when polling delay before calling the interrupt handler | Mike Belopuhov | |
2017-06-26 | Rework the deferred interrupt loop | Mike Belopuhov | |
By performing a task_add an interrupt handler can rely on the taskq_thread to invoke it again with an additional benefit of being able to sched_pause when required. In the long run more than 99.8% of calls do not require an additional iteration. | |||
2017-06-23 | Event interrupt handler should call hv_channel_schedule now | Mike Belopuhov | |
2017-06-23 | Request deferred interrupt processing | Mike Belopuhov | |
2017-06-23 | Introduce deferred interrupt processing capability | Mike Belopuhov | |
Hyper-V interrupts seem to be sometimes delivered before the message becomes available on the channel ring. This is reproducible on hvs(4) under load. This change is modelled on the workaround found in the Linux driver. | |||
2017-06-23 | s/membar_sync/virtio_membar_sync/ | Mike Belopuhov | |
2017-06-23 | Finish up minor changes in the output and clear the BATCHED channel flag | Mike Belopuhov | |
2017-06-22 | Add a hypervisor-specific function pointer in pvbus(4) that gets called during | Jonathan Matthew | |
cpu_hatch() on each cpu, allowing initialization of per-cpu features on each cpu as it starts up. input from reyk@ and mikeb@ ok mikeb@ | |||
2017-06-21 | Don't confuse SCSI command status and transfer error code. | Mike Belopuhov | |
While here, make SCSI command completion routine more robust. | |||
2017-06-21 | Return early from NVS command submission if no response is required | Mike Belopuhov | |
2017-06-21 | Include the request id in the I/O debug output | Mike Belopuhov | |
2017-06-15 | Don't defer attaching PV devices | Mike Belopuhov | |
Now that both hvn(4) and hvs(4) can perform VMBus channel operations during autoconf, it's no longer necessary to defer their attachment. | |||
2017-06-15 | Make sure we can free GPA handles when cold | Mike Belopuhov | |
2017-06-15 | Support executing NVSP and RNDIS commands during autoconf | Mike Belopuhov | |
2017-06-15 | Provide storage for the response message in each CCB | Mike Belopuhov | |
2017-06-15 | Remove the structure definition for an old (pre Win8) I/O request type | Mike Belopuhov | |
since the new one is backwards compatible and the correct length of the request can be specified w/o an actual definition. | |||
2017-06-15 | Put back copying of the response message into the polling callback | Mike Belopuhov | |
The response message is allocated on the stack of hvs_intr and its content is valid during a single message processing loop iteration. Due to the fact that polled transfers finish completion in a callee context, the cached pointer to the response message becomes stale very quickly. To avoid this situation the poll completion callback needs to make sure the content of the response is provided to the next completion routine. | |||
2017-06-15 | Correct the number of targets vs number of LUNs | Mike Belopuhov | |
jsg@ has found out that the number of targets wasn't correct and it turns out that the device supports up to 2 targets and 1 or 64 LUNs depending on whether it's taking over an IDE device or is a virtual SCSI. While here make sure the command response is copied back only for synchronous commands that are issued during initialization phase. | |||
2017-06-14 | Borrow some of dlg's smarts to make this look like a real SCSI driver | Mike Belopuhov | |
2017-06-14 | Special handling for request 0 clashes with CCB 0 | Mike Belopuhov | |
2017-06-14 | Increase the maximum amount of requests and do some cleanup | Mike Belopuhov | |
2017-06-14 | Hookup hvs(4) | Mike Belopuhov | |
2017-06-14 | Hyper-V storage driver | Mike Belopuhov | |
Based on the FreeBSD driver, attaches only to emulated SCSI controllers. | |||
2017-06-14 | Add another type of a scatter-gather list operation used by StorVSC | Mike Belopuhov | |
Obtained from FreeBSD. | |||
2017-06-12 | ifq_start does OACTIVE and RUNNING checks for the driver | Mike Belopuhov | |
Reminded by dlg@. |