I have a Pluggable brand switch which shares a single A via two B to A cables, I have one going to my gaming PC, and the other my Mac Mini, then I cheat a bit and have a compact 4-port hub plugged into the one shared A, which has mouse, kbd, webcam, and DAC in it. Works pretty smoothly, once in a while one machine or the other won't see one of the devices, but toggling the switch, or re-plugging the hub always perks things back up.