for grandfather he had a latter-day legend , khabul khan , whose most famous deed , possibly , was to have pulled the beard of the emperor of china over dinner at his court wherewith began the china wars .