Magnetic vortex chirality switching driven by a spin-polarized current