Setting up an STM32F103 8 MHz clock source
Nice way: Master Clock Out (MCO PA8).
Other way: APB2 Timer outputs (capable of 18 MHz). But there might be other factors that reduce this speed or limit other features in the chip if you want this.

All can be found in the Datasheet and the Reference manual.