Diarrhoea is the most common problem among people with HIV. HIV itself, along with malnutrition and some drugs, can cause diarrhoea. If water is not replaced as quickly as it is lost from the stool, it will lead to dehydration. Diarrhoea also weakens the gut, making it less able to absorb food and drugs. The vicious cycle carries on as the less food and drug absorbed, the more severe diarrhoea might become.

Nevertheless, diarrhoea will go away naturally if it is well managed. People often stop eating as they experience discomfort - but you must eat more than usual as you are not absorbing as much. Carefully wash and cook your food thoroughly to reduce the risks of further infection.
Eat more soluble fibre, such as oats, white rice, pasta and legumes, as they help with absorbing water and make the stool bulkier. At the same time avoid insoluble fibre, such as whole wheat bread and cereal, skins of fruits, seeds and nuts, as they have the opposite effect. Drink plenty of fluid between meals to prevent dehydration. Avoid fatty, oily and sugary foods and drinks.
Furthermore, you could try the B.R.A.T. (banana, rice, apple sauce and toast) diet. It is a famous remedy for controlling diarrhoea. Probiotic yoghurts might help reduce the duration of diarrhoea.