I've read some papers which mentioned plant can get resistance to the virus by transferring some genes of the certain virus. One of the famous example is papaya can fight against papaya ringspot virus by being transferred with the virus' coat protein gene. Even though I still don't understand the mechanism of it.